/* DECA TRACKER · landing */

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { scroll-margin-top: 84px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
}
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--yellow); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ------------------------------------------------------------ Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -18px rgba(8, 43, 92, 0.5); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: 20px; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.main-nav a:hover { background: var(--soft); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .btn-private { color: var(--ink); }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .main-nav, .header-actions .btn-private { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 32px; }
}
@media (max-width: 520px) {
  .header-actions .btn-cta { display: none; }
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 20px 20px;
}
.mobile-menu.open { display: grid; gap: 4px; }
.mobile-menu a:not(.btn) {
  padding: 12px 4px; border-bottom: 1px solid var(--soft);
  font-weight: 600; color: var(--ink);
}
.mobile-menu .btn { margin-top: 10px; }

/* ------------------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(7, 87, 201, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--soft) 100%);
  border-bottom: 1px solid var(--border);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
  padding-block: 72px 88px;
}
.deadline {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; color: var(--ink); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.deadline b {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--yellow); color: #082b5c; font-weight: 700; font-size: 12.5px;
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  text-transform: uppercase;
}
.hero h1 span { color: var(--blue); display: block; }
@media (min-width: 521px) { .hero h1 span { white-space: nowrap; } }
.hero-lead { margin-top: 24px; font-size: 19px; color: var(--text-soft); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 36px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.hero-trust li { display: flex; gap: 8px; align-items: center; }
.hero-trust .icon { color: var(--blue); width: 20px; height: 20px; }
:where(ul.plain) { list-style: none; margin: 0; padding: 0; }

/* Composición del hero: carretera + documento + QR */
.hero-visual { position: relative; min-height: 540px; padding-bottom: 120px; }
.hero-road {
  position: absolute; left: -120px; bottom: -150px; width: 620px; height: auto;
  pointer-events: none;
}
.doc-mock {
  position: relative; z-index: 2;
  margin-left: auto; width: min(430px, 100%);
  padding: 24px 24px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.doc-mock-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.doc-mock-head img.logo { height: 26px; width: auto; }
.doc-mock-title { margin-top: 14px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--blue); }
.doc-mock h3 { font-size: 18px; margin-top: 4px; }
.doc-mock .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.doc-mock .qr-mini { width: 76px; height: 76px; border: 1px solid var(--border); border-radius: 8px; padding: 3px; flex: none; }
.doc-mock .road-rule { margin: 16px 0 14px; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc-cell { background: var(--soft); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; min-width: 0; }
.doc-cell small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.doc-cell b { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-route {
  margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 11.5px;
}
.doc-route div { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 8px 10px; align-items: center; }
.doc-route div + div { border-top: 1px solid var(--border); }
.doc-route .n { color: var(--blue); font-weight: 700; }
.doc-route .q { font-weight: 700; color: var(--ink); }
.doc-route .h { background: var(--blue-50); font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); text-transform: uppercase; }
.doc-foot { margin-top: 12px; display: flex; justify-content: space-between; font-size: 9.5px; color: var(--faint); }

.qr-card {
  position: absolute; z-index: 3; left: 0; bottom: -8px;
  width: 188px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.qr-card:hover { transform: translateY(-3px); }
.qr-card img { width: 100%; height: auto; border-radius: 6px; }
.qr-card .ok { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.qr-card .ok .icon { color: var(--ok); --icon-accent: var(--ok); width: 20px; height: 20px; }
.qr-card p { margin-top: 2px; font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 56px; gap: 40px; }
  .hero-visual { min-height: 0; padding-bottom: 150px; }
  .doc-mock { margin-inline: auto; }
  .qr-card { left: auto; right: 50%; transform: translateX(-10%); bottom: 0; width: 180px; }
  .qr-card:hover { transform: translateX(-10%) translateY(-3px); }
  .hero-road { left: -160px; bottom: -120px; width: 520px; }
}
@media (max-width: 520px) {
  .deadline { border-radius: 16px; padding: 8px 12px 10px 8px; }
  .hero-lead { font-size: 17px; }
  .hero-cta .btn { width: 100%; }
  .doc-mock { padding: 18px 16px 14px; }
  .qr-card { right: auto; left: 0; transform: none; width: 156px; padding: 12px; }
  .qr-card:hover { transform: translateY(-3px); }
  .qr-card p { display: none; }
}

/* ------------------------------------------------------------ Pasos */
.steps { padding-block: 88px 40px; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-line { position: absolute; left: 8%; right: 8%; top: 34px; height: 60px; z-index: 0; pointer-events: none; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-family: var(--font-brand); font-weight: 800; font-size: 26px; color: var(--blue);
}
.step:nth-child(4) .step-num { background: var(--yellow); border-color: var(--yellow); color: #082b5c; }
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) {
  .steps { padding-block: 64px 24px; }
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps-line { display: none; }
}

/* ------------------------------------------------------------ Cómo funciona */
.how { padding-block: 64px 96px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { padding: 22px; display: grid; gap: 18px; align-content: start; }
.how-card h3 { font-size: 20px; }
.how-card > p { color: var(--muted); font-size: 15.5px; margin-top: -8px; }
.screen {
  border-radius: 12px; background: var(--soft); border: 1px solid var(--border);
  padding: 14px; min-height: 216px; display: grid; gap: 9px; align-content: start;
  font-size: 12.5px;
}
.screen .s-label { font-size: 11px; font-weight: 600; color: var(--ink); }
.screen .s-input {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
}
.screen .s-input .icon { width: 16px; height: 16px; color: var(--blue); }
.screen .s-input.focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 87, 201, 0.12); }
.screen .s-ok { display: flex; gap: 6px; align-items: center; color: var(--ok); font-size: 11.5px; font-weight: 600; }
.screen .s-ok .icon { width: 15px; height: 15px; --icon-accent: var(--ok); }
.screen .s-btn {
  margin-top: 4px; height: 38px; border-radius: 8px; background: var(--yellow); color: #082b5c;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px;
}
.screen .s-btn .icon { width: 16px; height: 16px; --icon-accent: var(--navy); }
.progress { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #3b82f6); animation: fill 2.4s ease-in-out infinite; }
@keyframes fill { 0% { width: 12%; } 70%, 100% { width: 100%; } }
.gen-list { display: grid; gap: 8px; margin-top: 6px; }
.gen-list div { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.gen-list .icon { width: 17px; height: 17px; color: var(--ok); --icon-accent: var(--ok); }
.gen-list .pending .icon { color: var(--faint); --icon-accent: var(--faint); }
.phone-mini {
  justify-self: center; width: 150px; padding: 12px 10px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: grid; gap: 8px; justify-items: center; text-align: center;
}
.phone-mini .badge { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; color: var(--ok); }
.phone-mini .badge .icon { width: 15px; height: 15px; --icon-accent: var(--ok); }
.phone-mini img { width: 104px; height: 104px; }
.phone-mini .s-btn { width: 100%; height: 30px; font-size: 11.5px; margin: 0; background: #0757c9; color: #fff; }
.phone-mini small { font-size: 10.5px; color: var(--muted); }
@media (max-width: 980px) { .how-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ------------------------------------------------------------ El DeCA (normativa) */
.law { background: var(--navy); color: #d7e3f5; position: relative; overflow: hidden; padding-block: 96px; }
.law h2, .law h3 { color: #fff; }
.law .kicker { color: var(--yellow); }
.law .section-head p { color: #b8c9e3; }
.law-road { position: absolute; right: -120px; top: -30px; width: 560px; pointer-events: none; }
.law-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 26px 1fr; gap: 18px; padding-bottom: 28px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.14); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); background: var(--navy); display: grid; place-items: center; }
.tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.tl-item.now .tl-dot { border-color: var(--yellow); }
.tl-item.now .tl-dot::after { background: var(--yellow); }
.tl-date { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); }
.tl-item h3 { font-size: 19px; margin-top: 4px; }
.tl-item p { margin-top: 6px; font-size: 15px; color: #b8c9e3; }
.law-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 26px; }
.law-card h3 { font-size: 20px; }
.law-card > p { margin-top: 8px; font-size: 15px; color: #b8c9e3; }
.data-list { margin-top: 18px; display: grid; gap: 2px; }
.data-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 15px; color: #e7eef9; }
.data-list li:last-child { border-bottom: 0; }
.data-list b { color: var(--yellow); font-family: var(--font-brand); font-weight: 800; }
.law-note { margin-top: 18px; font-size: 13.5px; color: #9fb3d1; }
.law-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .law-grid { grid-template-columns: 1fr; } .law { padding-block: 72px; } }

/* ------------------------------------------------------------ QR / cumplimiento */
.qr-section { padding-block: 96px; }
.qr-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.phone {
  justify-self: center; position: relative;
  width: 300px; padding: 14px; border-radius: 42px; background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 30px; background: var(--surface); overflow: hidden; padding: 22px 18px 20px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.phone-notch { width: 90px; height: 22px; border-radius: 12px; background: var(--navy); margin: -8px auto 0; }
.phone-screen .top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.phone-screen .top img { height: 22px; width: auto; }
.phone-screen .code { font-family: var(--font-brand); font-weight: 800; color: var(--ink); font-size: 18px; }
.phone-screen .qr-big { width: 210px; height: 210px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; }
.phone-screen .ready { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ok); font-size: 14px; }
.phone-screen .ready .icon { --icon-accent: var(--ok); }
.phone-screen .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.phone-screen .row span { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.phone-screen .row .a { background: var(--yellow); color: #082b5c; --icon-accent: var(--navy); }
.phone-screen .row .b { background: var(--blue-50); color: var(--blue); }
.phone-screen .row .icon { width: 17px; height: 17px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.check-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
.check-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.check-item h3 { font-size: 16.5px; font-family: var(--font-ui); font-weight: 700; letter-spacing: -0.01em; }
.check-item p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 980px) { .qr-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } .phone { width: 270px; } .phone-screen .qr-big { width: 180px; height: 180px; } }

/* ------------------------------------------------------------ Para quién */
.who { padding-block: 32px 96px; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.who-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.who-card picture, .who-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.who-card div { padding: 18px 18px 20px; }
.who-card h3 { font-size: 18px; }
.who-card p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 1080px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Ventajas */
.features { padding-block: 96px; background: var(--soft); border-block: 1px solid var(--border); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 26px; }
.feat .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.feat .ico .icon { width: 24px; height: 24px; }
.feat h3 { font-size: 18.5px; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Precios */
.pricing { padding-block: 96px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price { padding: 26px 22px; display: grid; gap: 14px; grid-template-rows: auto auto auto 1fr auto; position: relative; }
.price.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.price .tag { position: absolute; top: -13px; left: 22px; }
.price h3 { font-size: 16px; font-family: var(--font-ui); font-weight: 700; color: var(--blue); letter-spacing: 0; }
.price .amount { font-family: var(--font-brand); font-weight: 800; color: var(--ink); font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.price .amount small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price .sub { font-size: 14px; color: var(--muted); margin-top: -6px; }
.price ul { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.price li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.price li .icon { width: 19px; height: 19px; color: var(--blue); margin-top: 2px; }
@media (max-width: 1080px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

.calc { margin-top: 28px; padding: 26px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.calc h3 { font-size: 20px; }
.calc p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.calc-range { margin-top: 22px; display: grid; gap: 10px; }
.calc-range output { font-family: var(--font-brand); font-weight: 800; font-size: 22px; color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--blue); height: 28px; }
.calc-result { background: var(--soft); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: grid; gap: 10px; }
.calc-result .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--muted); }
.calc-result .row b { color: var(--ink); }
.calc-result .total { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px; }
.calc-result .total b { font-family: var(--font-brand); font-size: 24px; font-weight: 800; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.pricing-note { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ------------------------------------------------------------ FAQ */
.faq { padding-block: 96px; background: var(--soft); border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 600; font-size: 16px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] { border-color: var(--border-strong); }
.faq .answer { padding: 0 20px 20px; color: var(--text-soft); font-size: 15.5px; display: grid; gap: 10px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ------------------------------------------------------------ Contacto / Empresa */
.contact { padding-block: 96px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { margin-top: 28px; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.contact-list b { display: block; color: var(--ink); }
.contact-list span { font-size: 14.5px; color: var(--muted); }
.contact-form { padding: 28px; display: grid; gap: 16px; }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .contact-form .two { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }

/* ------------------------------------------------------------ CTA final */
.final-cta { padding-block: 24px 96px; }
.final-box {
  position: relative; overflow: hidden;
  border-radius: 24px; background: #0757c9; color: #fff;
  padding: 64px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.final-box h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.final-box p { margin-top: 14px; font-size: 18px; color: #d8e6fb; max-width: 520px; }
.final-box .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.final-box .btn-light { background: #fff; color: #0757c9; }
.final-box .btn-light:hover { background: #eef4fd; }
.final-road { position: absolute; right: -80px; bottom: -120px; width: 460px; opacity: 0.9; pointer-events: none; }
@media (max-width: 900px) {
  .final-box { grid-template-columns: 1fr; padding: 44px 26px 160px; }
  .final-box .actions { justify-content: flex-start; }
  .final-road { width: 340px; right: -60px; bottom: -110px; }
}

/* ------------------------------------------------------------ Pie */
.site-footer { background: var(--navy); color: #b8c9e3; padding-block: 56px 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.footer-top img { height: 40px; width: auto; }
.footer-top .claim { margin-top: 16px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.28em; color: #fff; }
.footer-top p { margin-top: 12px; font-size: 14.5px; max-width: 320px; }
.footer-top h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer-top ul { margin-top: 14px; display: grid; gap: 10px; font-size: 14.5px; }
.footer-top a { color: #b8c9e3; }
.footer-top a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #8ea3c4; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Páginas legales */
.legal { padding-block: 56px 96px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { margin-top: 12px; color: var(--text-soft); }
.legal .todo { background: var(--yellow-50); border: 1px dashed var(--warn-border); border-radius: 8px; padding: 2px 6px; font-size: 0.95em; }

/* ------------------------------------------------------------ Cambio de tema y redes */
.header-actions .theme-toggle { width: 38px; height: 38px; border-radius: 9px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: #082b5c; }
.social .icon { width: 21px; height: 21px; }

/* ------------------------------------------------------------ Ajustes de móvil */
.who-card img { height: auto; }
@media (max-width: 640px) {
  /* La tarjeta del QR ya no se monta encima del documento de ejemplo */
  .hero-visual { padding-bottom: 0; }
  .qr-card, .qr-card:hover {
    position: relative; left: auto; right: auto; bottom: auto; transform: none;
    width: min(430px, 100%); margin: 14px auto 0; padding: 12px;
    display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; align-items: center;
  }
  .qr-card img { grid-row: 1 / span 2; }
  .qr-card .ok { margin-top: 0; align-self: end; }
  .qr-card p { display: block; align-self: start; }
  .hero-road { bottom: -60px; opacity: 0.6; }
  .doc-cell b { white-space: normal; overflow-wrap: anywhere; }
  .doc-route div { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .doc-foot { flex-wrap: wrap; gap: 4px 12px; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16.5px; }
  .how, .qr-section, .features, .pricing, .faq, .contact { padding-block: 64px; }
  .law { padding-block: 64px; }
  .who { padding-block: 16px 64px; }
  .law-road, .final-road { opacity: 0.45; }
  .law-card { padding: 20px; }
  .calc { padding: 20px; gap: 22px; }
  .final-cta { padding-block: 8px 64px; }
  .final-box .actions .btn { width: 100%; }
  .faq summary { padding: 16px; font-size: 15.5px; }
  .faq .answer { padding: 0 16px 16px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .header-actions { gap: 8px; }
  .wrap { width: min(1180px, 100% - 32px); }
}

/* ------------------------------------------------------------ Modo oscuro (portada) */
:root[data-theme="dark"] .hero-road { opacity: 0.18; }
:root[data-theme="dark"] .hero { background: radial-gradient(900px 480px at 85% 10%, rgba(74, 143, 245, 0.12), transparent 70%), linear-gradient(180deg, var(--bg) 0%, var(--soft) 100%); }
:root[data-theme="dark"] .law, :root[data-theme="dark"] .site-footer { background: #0a1f3f; }
:root[data-theme="dark"] .tl-dot { background: #0a1f3f; }
:root[data-theme="dark"] .phone { background: #1c3050; }
:root[data-theme="dark"] .phone-notch { background: #1c3050; }
:root[data-theme="dark"] .qr-mini, :root[data-theme="dark"] .qr-big, :root[data-theme="dark"] .qr-card img, :root[data-theme="dark"] .phone-mini img { background: #fff; }

/* ------------------------------------------------------------ DI de residuos */
.waste { padding-block: 8px 96px; }
.waste-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.waste h2 { margin-top: 10px; }
.waste .lead { margin-top: 14px; color: var(--muted); font-size: 17px; }
.waste-list { display: grid; gap: 12px; margin-top: 22px; }
.waste-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.waste-list .icon { width: 21px; height: 21px; color: var(--blue); margin-top: 1px; }
.waste-list b { color: var(--ink); }
.waste-cta { margin: 26px 0 12px; }
.waste-doc { padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow-lg); }
.waste-doc-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--yellow); }
.waste-doc-head > div { display: grid; gap: 4px; }
.waste-doc-head > div span { font-family: var(--font-brand); font-weight: 800; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 16px; }
.waste-doc-head > div b { font-size: 13px; color: var(--blue); }
.waste-qr { flex: none; display: grid; justify-items: center; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: #fff; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.waste-qr:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.waste-qr img { width: 92px; height: 92px; display: block; }
.waste-qr small { font-size: 10.5px; font-weight: 700; color: #082b5c; }
.waste-doc-link { justify-self: start; font-weight: 700; font-size: 14px; }
.waste-doc-row, .waste-doc-split > div { display: grid; gap: 2px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); }
.waste-doc span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.waste-doc-row b, .waste-doc-split b { color: var(--ink); font-size: 14.5px; }
.waste-doc-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 980px) { .waste-grid { grid-template-columns: 1fr; gap: 32px; } .waste { padding-block: 0 64px; } }
@media (max-width: 420px) { .waste-doc-split { grid-template-columns: 1fr 1fr; } }

/* Etiqueta «Novedad» en el menú */
.main-nav a.nav-new { position: relative; }
.new-badge {
  position: absolute; left: 50%; top: calc(100% - 4px); transform: translateX(-50%);
  padding: 1px 7px; border-radius: 99px; background: var(--yellow); color: #082b5c;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; line-height: 1.5;
}
.new-badge.inline { position: static; transform: none; margin-left: 6px; vertical-align: 2px; }

/* ------------------------------------------------------------ Antes / con DECA TRACKER */
.shift { padding-block: 96px; background: var(--soft); border-block: 1px solid var(--border); }
.shift-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.shift-tag { justify-self: start; display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: #fde8e8; color: #9b1c1c; }
.shift-tag.ok { background: var(--blue-50); color: var(--blue); }

.shift-before { position: relative; display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--radius-lg); border: 2px dashed var(--border-strong); }
.paper { justify-self: start; display: grid; gap: 2px; padding: 12px 16px; min-width: 230px; background: #fffbea; color: #3a3215; border: 1px solid #efe2a6; border-radius: 4px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.35); font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }
.paper small { font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a7a3d; }
.paper b { font-size: 16px; }
.paper s { color: #c62a2f; }
.paper .scribble { font-size: 14px; color: #6b5e2b; }
.paper-a { transform: rotate(-2.5deg); }
.paper-b { transform: rotate(1.8deg); margin-left: 40px; }
.bubble { justify-self: end; max-width: 300px; padding: 9px 12px 6px; border-radius: 12px 12px 2px 12px; background: #dcf8c6; color: #1f2c1a; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.3); }
.bubble small { font-weight: 700; color: #128c4b; font-size: 12px; }
.bubble p { margin: 2px 0 0; font-size: 14px; }
.bubble .time { display: block; text-align: right; font-size: 11px; color: #5d7a55; }
.missed { justify-self: start; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.missed .icon { color: #c62a2f; width: 20px; height: 20px; }
.missed b { color: #c62a2f; }
.shift-foot { margin-top: 4px; font-weight: 700; color: var(--muted); font-size: 14.5px; }

.shift-after { padding: 24px; display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow-lg); }
.flow { display: grid; gap: 14px; }
.flow-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.flow-step .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-brand); font-weight: 800; font-size: 14px; }
.flow-step small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.flow-field { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--blue); border-radius: 10px; box-shadow: 0 0 0 3px rgba(7, 87, 201, 0.12); background: var(--surface); font-weight: 600; color: var(--ink); }
.flow-field .icon { width: 18px; height: 18px; color: var(--blue); }
.flow-field em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); margin-left: auto; }
.flow-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-chips span { display: inline-flex; gap: 5px; align-items: center; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.flow-chips .icon { width: 14px; height: 14px; color: #e5a600; fill: currentColor; }
.flow-chips .on { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.flow-row { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-row b { padding: 6px 11px; border-radius: 8px; background: var(--soft); border: 1px solid var(--border); font-size: 13.5px; color: var(--ink); }
.flow-result { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--ok-50, #e8f6ee); border: 1px solid rgba(18, 140, 75, 0.25); }
.flow-result .icon { width: 26px; height: 26px; color: var(--ok); flex: none; }
.flow-result b { display: block; color: var(--ink); }
.flow-result span { font-size: 13.5px; color: var(--muted); }

.solved { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.solved .card { padding: 18px; }
.solved .q { display: block; font-family: var(--font-brand); font-weight: 800; color: var(--ink); font-size: 16px; }
.solved p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.shift-close { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: center; text-align: center; }
.shift-close p { font-family: var(--font-brand); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); }

@media (max-width: 980px) {
  .shift { padding-block: 64px; }
  .shift-grid { grid-template-columns: 1fr; }
  .solved { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .solved { grid-template-columns: 1fr; }
  .paper { min-width: 0; }
  .paper-b { margin-left: 16px; }
  .shift-before, .shift-after { padding: 18px; }
}
