/* =========================================================
   TIFENTECH SAS — Sitio informativo
   Identidad TIFENTECH (morado + verde + azul marino) para la empresa
   y turquesa de Lumira para el producto
   ========================================================= */
:root {
  --navy: #1f2a44;
  --navy-2: #2b3960;
  --purple: #7f5bf0;
  --purple-d: #6544dc;
  --green: #35bf84;
  --lav: #f4f1ff;
  --teal: #22d3b8;
  --teal-dark: #0fa892;
  --teal-soft: #e6faf6;
  --ink: #1b2540;
  --muted: #5d6882;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-tint: #f5f8fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 29, 58, .08);
  --shadow-lg: 0 24px 60px rgba(15, 29, 58, .16);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--purple); }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: .8rem;
}
.eyebrow--light { color: var(--green); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem var(--font-body);
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(127, 91, 240, .35); }
.btn--primary:hover { background: var(--purple-d); box-shadow: 0 12px 26px rgba(127, 91, 240, .45); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 29, 58, .05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand__icon { height: 34px; width: auto; }
.brand__text { font: 700 1.05rem var(--font-head); letter-spacing: .22em; }
.brand__text small { font-size: .72em; color: var(--purple); font-weight: 700; letter-spacing: .12em; }
.brand--light { color: #fff; }
.brand--light small { color: var(--green); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--purple); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }

.dd { position: relative; }
.dd__top { display: inline-flex; align-items: center; gap: .25rem; }
.dd__top svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .2s; }
.dd__menu {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 220px; padding: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: grid; opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd:hover .dd__menu, .dd:focus-within .dd__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd:hover .dd__top svg, .dd:focus-within .dd__top svg { transform: rotate(180deg); }
.nav .dd__menu a { padding: .65rem .9rem; border-radius: 10px; font-size: .92rem; }
.nav .dd__menu a::after { display: none; }
.nav .dd__menu a:hover { background: var(--lav); color: var(--purple); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 100px) 0 clamp(60px, 8vw, 110px);
  background:
    radial-gradient(circle at 85% 15%, rgba(127, 91, 240, .16), transparent 45%),
    radial-gradient(circle at 70% 85%, rgba(53, 191, 132, .12), transparent 40%),
    radial-gradient(circle at 5% 90%, rgba(31, 42, 68, .06), transparent 40%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.8rem; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__badges li {
  font-size: .82rem; font-weight: 500; color: var(--navy-2);
  background: #fff; border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px;
}
.hero__badges li::before { content: "● "; color: var(--green); }

.hero__visual { position: relative; }
.mock {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--line); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--navy); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock__bar img { height: 16px; width: auto; margin-left: 10px; }
.mock__bar span { margin-left: 6px; color: rgba(255, 255, 255, .7); font-size: .75rem; }
.mock__body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; }
.mock__side { background: var(--bg-tint); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.mock__side b { height: 28px; border-radius: 8px; background: #dfe6ef; }
.mock__side b.on { background: var(--teal); }
.mock__main { padding: 18px; }
.mock__row--title { height: 14px; width: 45%; border-radius: 6px; background: var(--navy); opacity: .85; margin-bottom: 16px; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mock__card em { display: block; font-style: normal; font-size: .68rem; color: var(--muted); }
.mock__card strong { font: 600 1.3rem var(--font-head); color: var(--navy); }
.mock__pulse { width: 100%; height: 56px; color: var(--teal); margin: 12px 0; }
.mock__pulse path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s ease-in-out infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }
.mock__list div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mock__list i { flex: 1; height: 8px; border-radius: 4px; background: #e7ecf3; }
.mock__list u { text-decoration: none; font-size: .72rem; color: var(--muted); }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); border: 2px solid var(--teal); }
.dot--2 { border-color: #7aa2ff; background: #eef3ff; }
.dot--3 { border-color: #ffb547; background: #fff6e6; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  background: #fff; padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: .85rem; font-weight: 500; color: var(--navy); white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.float-card--a { left: -28px; bottom: 40px; }
.float-card--b { right: -10px; top: -18px; animation-delay: -2.5s; }
.ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 700; }
.ok--blue { background: #dbe6ff; color: #2d5bd7; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Cifras ---------- */
.stats { background: var(--navy); color: #fff; padding: 34px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font: 700 1.9rem var(--font-head); color: var(--green); }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .75); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.section--dark h2 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.lumira-logo { width: min(380px, 80%); margin: 0 auto .6rem; }
.by-line { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; }
.by-line img { height: 18px; width: auto; }
.by-line b { color: var(--navy); letter-spacing: .18em; font-size: .78rem; }

/* ¿Quiénes somos? */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: center; margin-bottom: 3.5rem; }
.about__brand { display: grid; place-items: center; padding: 2.5rem; border-radius: 24px; background: var(--lav); }
.about__logo { height: auto; width: min(260px, 100%); margin: 0; }
.about__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--ink); }

.mvc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 3.5rem; }
.mvc__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: box-shadow .25s, transform .25s; }
.mvc__card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.mvc__card h3 { display: flex; align-items: center; gap: .7rem; }
.mvc__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: .9rem;
  background: var(--purple); color: #fff; font: 800 1.1rem var(--font-head);
}
.mvc__card p { color: var(--muted); font-size: .95rem; margin: 0; }

.values__head { text-align: center; margin-bottom: 1.6rem; }
.values__head h3 { font-size: 1.7rem; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.value-card { background: var(--lav); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--green); }
.value-card h4 { margin-bottom: .4rem; font-size: 1.1rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.value__icon, .feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark);
}
.value__icon { background: var(--lav); color: var(--purple); }
.value__icon svg, .feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Funcionalidades */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.eyebrow--teal { color: var(--teal-dark); }
.feature {
  background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon { margin-bottom: 1.1rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.tryout {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 2.8rem; padding: 1.8rem 2rem; border-radius: 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
}
.tryout h3 { color: #fff; margin-bottom: .3rem; }
.tryout p { margin: 0; color: rgba(255, 255, 255, .75); }
.tryout .btn:hover { background: #fff; color: var(--purple); }
.footer__meta { font-size: .85rem; color: rgba(255, 255, 255, .55); }
.platforms { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.8rem; color: var(--muted); font-weight: 500; }
.platforms__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; color: var(--navy); font-size: .9rem;
}
.chip svg { width: 18px; height: 18px; fill: none; stroke: var(--teal-dark); stroke-width: 1.8; }

/* Versiones */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; max-width: 960px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow);
}
.plan--featured { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .plan__list strong { color: #fff; }
.plan--featured p { color: rgba(255, 255, 255, .75); }
.plan--featured .plan__list li { color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .1); }
.plan__ribbon {
  position: absolute; top: 20px; right: 20px; background: var(--teal); color: var(--navy);
  font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.plan .plan__top { padding-top: 1.6rem; }
.plan__ribbon--live { background: var(--teal-soft); color: var(--teal-dark); }
.plan--soon .plan__ribbon { background: #ffb547; color: var(--navy); }
.plan__notice {
  margin: .4rem 0 1rem; padding: .8rem 1rem; border-radius: 12px; font-size: .9rem;
  background: rgba(255, 181, 71, .14); border: 1px dashed rgba(255, 181, 71, .7); color: rgba(255, 255, 255, .9);
}
.plan__notice strong { display: block; color: #ffc56e; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.btn--light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--navy); }
thead th small { display: block; font: 500 .72rem var(--font-body); color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
thead th:last-child small { color: #ffc56e; }
.plan__tag { font-size: .8rem; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; }
.plan--featured .plan__tag { color: var(--teal); }
.plan h3 { font-size: 2rem; margin: .5rem 0 .6rem; }
.plan h3 span { color: var(--teal); }
.plan p { color: var(--muted); }
.plan__list { list-style: none; padding: 0; margin: .6rem 0 2rem; flex: 1; }
.plan__list li { padding: .6rem 0 .6rem 1.9rem; border-top: 1px solid var(--line); position: relative; font-size: .95rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%230fa892' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan__list li:has(strong)::before { display: none; }
.plan__list li:has(strong) { padding-left: 0; }
.plan--featured .btn--primary:hover { background: #fff; color: var(--purple); }

.compare { max-width: 960px; margin: 3.5rem auto 0; }
.compare h3 { text-align: center; margin-bottom: 1.2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: .9rem 1.2rem; text-align: center; border-bottom: 1px solid var(--line); font-size: .95rem; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; }
tbody tr:nth-child(even) { background: var(--bg-tint); }
tbody tr:last-child td { border-bottom: 0; }
td.y { color: var(--teal-dark); font-weight: 600; }
td.n { color: #b0b8c9; }

/* RDA y FEV-RIPS */
.rda-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.rda-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  border-top: 4px solid var(--teal); transition: box-shadow .25s, transform .25s;
}
.rda-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.rda-card__badge {
  position: absolute; top: 1rem; right: 1rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: #dcf6ec; color: #16865a; padding: .2rem .6rem; border-radius: 999px;
}
.rda-card__k { display: block; font: 700 .78rem var(--font-head); letter-spacing: .12em; color: var(--teal-dark); margin-bottom: .5rem; }
.rda-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.fev {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.4rem;
  background: var(--teal-soft); border-radius: 20px; padding: 1.6rem 1.8rem;
}
.fev__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fff; color: var(--teal-dark); }
.fev__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fev__text { flex: 1 1 300px; }
.fev__text h3 { margin-bottom: .2rem; }
.fev__text p { margin: 0; color: var(--muted); }
.band {
  margin-top: 2.8rem; padding: 2.4rem; border-radius: 24px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--navy));
}
.band h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.band > p { color: rgba(255, 255, 255, .78); }
.band__feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; text-align: left; }
.band__feats div { display: flex; gap: .8rem; align-items: flex-start; background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 1rem; font-size: .93rem; }
.band__feats svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Normativa */
.explain { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 3rem; }
.explain__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.explain__card .value__icon, .explain__card .feature__icon { margin-bottom: 1rem; }
.explain__card p { color: var(--muted); margin: 0; }
.laws__head { margin-bottom: 1.2rem; }
.laws__head h3 { font-size: 1.6rem; }
.laws { display: grid; gap: .8rem; }
.law {
  display: grid; grid-template-columns: 210px 1fr auto; gap: 1.4rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem;
  transition: border-color .2s, box-shadow .2s;
}
.law:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.law__id { font: 700 1rem var(--font-head); color: var(--purple); }
.law h4 { margin: 0 0 .15rem; font-size: 1rem; }
.law p { margin: 0; color: var(--muted); font-size: .92rem; }
.law a { font-size: .88rem; font-weight: 600; color: var(--purple); text-decoration: none; white-space: nowrap; }
.law a:hover { text-decoration: underline; }
.laws__note { margin-top: 1.4rem; color: var(--muted); font-size: .88rem; }
.laws__note a { color: var(--purple); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { text-align: center; position: relative; padding: 0 .5rem; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px);
  border-top: 2px dashed #c8d3e2;
}
.steps span {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--purple); color: #fff; font: 700 1.3rem var(--font-head);
  box-shadow: 0 0 0 8px var(--lav);
}
.steps p { color: var(--muted); font-size: .93rem; }

/* FAQ */
.faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: .8rem; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.4rem; transition: box-shadow .25s; }
details[open] { box-shadow: var(--shadow); }
summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--purple); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 1.2rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; }
.contact__list a, .contact__list span:not(.ci) { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--purple); }
.ci { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--lav); color: var(--purple); }
.ci svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials { display: flex; gap: .7rem; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--purple); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form h3 { margin-bottom: .2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 500; color: var(--navy); }
.form input, .form select, .form textarea {
  font: 400 .95rem var(--font-body); color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-tint);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(127, 91, 240, .16);
}
.form .invalid { border-color: #e5484d; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--purple); }
.form__error { color: #c62f34; font-size: .88rem; margin: 0; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Pie */
.footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer__brand p { margin-top: 1rem; max-width: 300px; font-size: .92rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__inner > div:not(.footer__brand) { display: flex; flex-direction: column; gap: .5rem; }
.footer a:not(.brand) { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .92rem; }
.footer a:not(.brand):hover { color: var(--green); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Modal y toast */
.modal { border: 0; border-radius: 18px; padding: 2rem; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(15, 29, 58, .55); backdrop-filter: blur(3px); }
.modal p { color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); z-index: 70;
  background: var(--navy); color: #fff; padding: .9rem 1.4rem; border-radius: 12px; box-shadow: var(--shadow-lg);
  transition: transform .35s; font-size: .93rem; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .mock__pulse path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .about__brand { max-width: 360px; margin: 0 auto; width: 100%; }
  .features--4, .rda-grid, .values__grid { grid-template-columns: repeat(2, 1fr); }
  .mvc, .band__feats { grid-template-columns: 1fr; }
  .law { grid-template-columns: 1fr; gap: .4rem; }
  .hero__visual { max-width: 520px; margin: 1rem auto 0; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps li::after { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 16px 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .dd__top svg { display: none; }
  .dd__menu {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    border: 0; box-shadow: none; padding: 0 0 0 1rem; border-radius: 0; background: transparent;
  }
  .dd__menu::before { display: none; }
  .nav .dd__menu a { border-radius: 0; color: var(--muted); }
  .dd .dd__top { display: flex; }
}
@media (max-width: 640px) {
  .features, .features--4, .rda-grid, .values__grid, .explain, .plans, .form__row { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .float-card--a { left: 8px; bottom: -18px; }
  .float-card--b { right: 8px; }
  .plan, .form { padding: 1.6rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
