/* =========================================================
   S y F Asesoría Fiscal y Contabilidad — estilos
   Paleta: tendencias 2025-2026 (Cloud Dancer, Mocha Mousse,
   lavanda digital, salvia, amarillo mantequilla, rubor, cielo)
   ========================================================= */
:root {
  --bg: #f4f1ec;          /* Cloud Dancer */
  --surface: #fffdfa;
  --ink: #2a2522;
  --ink-2: #5f5650;
  --muted: #8f857d;
  --line: #e8e1d8;

  --mocha: #a47864;       /* Mocha Mousse */
  --mocha-d: #7b5547;
  --lav: #e7e1f6;   --lav-d: #6c59a8;   /* lavanda digital */
  --sage: #dde8da;  --sage-d: #4c7653;  /* salvia */
  --butter: #faefc6; --butter-d: #8a6d10; /* amarillo mantequilla */
  --blush: #f5dfd8; --blush-d: #a9533f; /* rubor */
  --sky: #dbe8f1;   --sky-d: #3e6b8c;   /* cielo */

  --primary: var(--mocha-d);
  --primary-h: #66453a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px -14px rgba(90, 60, 45, .22);
  --shadow-lg: 0 28px 64px -24px rgba(90, 60, 45, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
/* textura de grano sutil (tendencia) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
h1 em { font-style: italic; font-weight: 500; color: var(--mocha-d); }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
.muted { color: var(--muted); }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.45em; border-radius: 999px; font: 600 .95rem var(--font);
  border: 1.5px solid transparent; cursor: pointer; transition: .25s ease;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(123, 85, 71, .8); }
.btn--primary:hover { background: var(--primary-h); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--sage-d); color: var(--sage-d); transform: translateY(-2px); }
.btn--sm { padding: .55em 1.1em; font-size: .88rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.wa-ic { width: 18px; fill: #25a35a; }

/* ---------- Navegación (barra flotante tipo píldora) ---------- */
.nav { position: sticky; top: 12px; z-index: 50; padding: 0 16px; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; height: 66px;
  width: min(1180px, 100%); padding: 0 12px 0 16px; border-radius: 999px;
  background: rgba(255, 253, 250, .72); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(232, 225, 216, .9); transition: box-shadow .3s;
}
.nav.is-scrolled .nav__inner { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--mocha) 0%, #c9a28e 100%); color: #fff;
  font: 600 .88rem var(--serif); letter-spacing: -.03em; white-space: nowrap; flex: none;
}
.brand__mark i { font-style: italic; font-weight: 500; opacity: .85; margin: 0 1px; }
.brand__name { display: flex; flex-direction: column; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand__name small { font-weight: 500; font-size: .74rem; color: var(--ink-2); }
.nav__links { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; font-size: .93rem; }
.nav__links a:not(.btn) { color: var(--ink-2); position: relative; padding: .3em 0; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--mocha); border-radius: 2px; transition: width .25s;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .75; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.blob--lav { width: 460px; height: 460px; background: var(--lav); top: -140px; right: -80px; }
.blob--sage { width: 380px; height: 380px; background: var(--sage); bottom: -160px; left: -120px; animation-delay: -5s; }
.blob--butter { width: 300px; height: 300px; background: var(--butter); top: 38%; left: 44%; animation-delay: -9s; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.08); } }

.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55em; padding: .45em 1em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--mocha-d); margin-bottom: 1.2rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-d); box-shadow: 0 0 0 4px var(--sage); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(221, 232, 218, .4); } }
.lead { font-size: 1.1rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; font-size: .8rem; font-weight: 800; }
.trust__ic--sage { background: var(--sage); color: var(--sage-d); }
.trust__ic--lav { background: var(--lav); color: var(--lav-d); font-family: var(--serif); font-style: italic; }
.trust__ic--butter { background: var(--butter); color: var(--blush-d); }

.hero__visual { position: relative; min-height: 420px; }
.dash { background: var(--surface); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 420px; margin-left: auto; animation: float 7s ease-in-out infinite; }
.dash__head { display: flex; align-items: center; gap: .8rem; font-weight: 700; margin-bottom: 18px; font-size: .95rem; }
.dash__dots { display: flex; gap: 5px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--blush); }
.dash__dots i:nth-child(2) { background: var(--butter); }
.dash__dots i:nth-child(3) { background: var(--sage); }
.dash__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mini { border-radius: var(--radius-sm); padding: 14px; }
.mini small, .float-card small, .dash__chart small { display: block; font-size: .75rem; color: var(--ink-2); }
.mini b { font-size: 1.02rem; }
.mini--sage { background: var(--sage); } .mini--sage b { color: var(--sage-d); }
.mini--lav { background: var(--lav); }   .mini--lav b { color: var(--lav-d); }
.dash__chart { background: #f9f6f1; border-radius: var(--radius-sm); padding: 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 10px; }
.bars span { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--mocha), #dcc2b3); transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.bars span:nth-child(even) { background: linear-gradient(180deg, #9a8ad0, var(--lav)); }
.bars span:nth-child(2) { animation-delay: .1s; } .bars span:nth-child(3) { animation-delay: .2s; }
.bars span:nth-child(4) { animation-delay: .3s; } .bars span:nth-child(5) { animation-delay: .4s; }
.bars span:nth-child(6) { animation-delay: .5s; }
@keyframes grow { from { transform: scaleY(0); } }
.float-card { position: absolute; background: rgba(255, 253, 250, .85); backdrop-filter: blur(10px); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: float 6s ease-in-out infinite; }
.float-card b { font-size: 1rem; }
.float-card--butter { left: 0; bottom: 40px; border-left: 4px solid #d9b63c; animation-delay: -2s; }
.float-card--sky { right: -10px; top: -10px; border-left: 4px solid var(--sky-d); animation-delay: -4s; }
.float-card--sky b { color: var(--sky-d); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--tint { background: linear-gradient(180deg, #efeae3 0%, #eef1ea 100%); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mocha-d); background: #efe3dc; padding: .38em .95em; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Servicios (cuadrícula bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; grid-auto-flow: dense; }
.bento .card { animation: fade .4s ease both; }
.card {
  --c: var(--lav); --cd: var(--lav-d);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.card::before { content: ""; position: absolute; inset: auto -50px -70px auto; width: 180px; height: 180px; border-radius: 50%; background: var(--c); opacity: .6; transition: transform .45s; }
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--c); outline: none; }
.card:hover::before { transform: scale(1.35); }
.card > * { position: relative; }
.card--wide { grid-column: span 2; background: linear-gradient(135deg, var(--surface) 40%, var(--c) 160%); }
.card--wide h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.card__icon { width: 52px; height: 52px; border-radius: 15px; background: var(--c); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 26px; stroke: var(--cd); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { font-size: .95rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: .2rem 0 1rem; padding: 0; list-style: none; }
.card__tags li { font-size: .78rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; background: var(--c); color: var(--cd); }
.card__foot { margin-top: auto; padding-top: .6rem; font-size: .9rem; font-weight: 700; color: var(--cd); }
.card[data-color="sage"]   { --c: var(--sage);   --cd: var(--sage-d); }
.card[data-color="butter"] { --c: var(--butter); --cd: var(--butter-d); }
.card[data-color="blush"]  { --c: var(--blush);  --cd: var(--blush-d); }
.card[data-color="sky"]    { --c: var(--sky);    --cd: var(--sky-d); }
.skeleton { min-height: 230px; background: linear-gradient(90deg, #efebe5 25%, #f8f5f0 50%, #efebe5 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; cursor: default; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Calculadoras ---------- */
.calc { background: var(--surface); border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; max-width: 920px; margin: 0 auto; }
.tabs { position: relative; display: inline-flex; background: #f1ece5; border-radius: 999px; padding: 5px; margin-bottom: 28px; max-width: 100%; }
.tab { position: relative; z-index: 1; border: 0; background: none; padding: .65em 1.4em; font: 600 .93rem var(--font); color: var(--ink-2); cursor: pointer; border-radius: 999px; transition: color .25s; white-space: nowrap; }
.tab.is-active { color: var(--ink); }
.tabs__ink { position: absolute; top: 5px; bottom: 5px; left: 5px; background: var(--surface); border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(90, 60, 45, .3); transition: .35s cubic-bezier(.3, .8, .3, 1); }
.calc__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; animation: fade .35s ease; }
.calc__panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.calc__form { display: flex; flex-direction: column; gap: 18px; }
.calc__result { display: grid; gap: 12px; align-content: start; }
.res { background: #faf7f3; border-radius: var(--radius-sm); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); }
.res small { color: var(--ink-2); font-size: .9rem; }
.res b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.res--accent { background: var(--lav); border-color: transparent; }
.res--accent b { color: var(--lav-d); }
.res b.flash { animation: flash .5s; }
@keyframes flash { 40% { transform: scale(1.06); } }

/* Campos */
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: 500 1rem var(--font); color: var(--ink); background: #fdfbf8;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8em 1em; transition: .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mocha); box-shadow: 0 0 0 4px #efe3dc; background: #fff; }
.field .is-invalid, .field input.is-invalid { border-color: var(--blush-d); box-shadow: 0 0 0 4px var(--blush); }
.field textarea { resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; color: var(--ink-2); transition: .2s; background: #fdfbf8; }
.seg input:checked + span { background: var(--lav); border-color: var(--lav-d); color: var(--lav-d); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px var(--lav); }
input[type="range"] { accent-color: var(--mocha-d); width: 100%; }

.isr__bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #f1ece5; margin-bottom: 12px; }
.isr__net { background: linear-gradient(90deg, #c5dcc1, #85ad8b); transition: width .5s ease; }
.isr__tax { background: linear-gradient(90deg, #d8b5a4, var(--mocha)); transition: width .5s ease; }
.isr__legend { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.isr__legend b { color: var(--ink); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.sw--sage { background: #85ad8b; } .sw--mocha { background: var(--mocha); }
.isr__table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.isr__table td { padding: .5em 0; border-bottom: 1px dashed var(--line); }
.isr__table td:last-child { text-align: right; font-weight: 600; }
.isr__table .total td { font-weight: 800; color: var(--mocha-d); font-size: 1.05rem; border-bottom: 0; }
.note { font-size: .8rem; color: var(--muted); margin: .2rem 0 0; font-weight: 500; }

/* ---------- Calendario ---------- */
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: .55em 1.2em; border-radius: 999px; font: 600 .9rem var(--font); color: var(--ink-2); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--mocha); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: grid; gap: 14px; }
.ev { display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; transition: .25s; animation: fade .4s ease both; }
.ev:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.ev__date { text-align: center; background: var(--lav); border-radius: 14px; padding: 8px 0; line-height: 1.1; }
.ev__date b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--lav-d); }
.ev__date small { text-transform: uppercase; font-size: .72rem; font-weight: 700; color: var(--ink-2); letter-spacing: .08em; }
.ev h3 { margin: 0 0 .15em; font-size: 1rem; }
.ev p { margin: 0; font-size: .88rem; }
.badge { font-size: .78rem; font-weight: 700; padding: .4em .9em; border-radius: 999px; white-space: nowrap; background: var(--sage); color: var(--sage-d); }
.badge--soon { background: var(--butter); color: var(--butter-d); }
.badge--urgent { background: var(--blush); color: var(--blush-d); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; margin-bottom: 14px; background: var(--lav); color: var(--lav-d); }
.steps li:nth-child(2) span { background: var(--sage); color: var(--sage-d); }
.steps li:nth-child(3) span { background: var(--butter); color: var(--butter-d); }
.steps li:nth-child(4) span { background: var(--blush); color: var(--blush-d); }
.steps p { font-size: .92rem; margin: 0; }

/* ---------- Formularios (citas / contacto) ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.checks li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: var(--sage-d); font-weight: 800; font-size: .85rem; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; align-items: center; }
.slots p { margin: 0; font-weight: 500; font-size: .9rem; }
.slot { border: 1.5px solid var(--line); background: #fdfbf8; padding: .55em 1em; border-radius: 10px; font: 600 .9rem var(--font); color: var(--ink-2); cursor: pointer; transition: .2s; }
.slot:hover { border-color: var(--sage-d); color: var(--sage-d); }
.slot.is-selected { background: var(--sage); border-color: var(--sage-d); color: var(--sage-d); }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .9rem; font-weight: 500; }
.contact-list li { display: flex; align-items: center; gap: .8rem; word-break: break-word; }
.contact-list a:hover { color: var(--mocha-d); text-decoration: underline; }
.ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
.ic--lav { background: var(--lav); color: var(--lav-d); }
.ic--sage { background: var(--sage); color: var(--sage-d); }
.ic--butter { background: var(--butter); color: var(--butter-d); }

.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mocha-d); flex: none; }
.consent input.is-invalid { outline: 2px solid var(--blush-d); outline-offset: 2px; }
.consent a, .footer a { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: .25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #dccbc0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #efe3dc; color: var(--mocha-d); font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

/* ---------- Modal ---------- */
.modal { border: 0; border-radius: 26px; padding: 34px; width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--surface); }
.modal::backdrop { background: rgba(42, 37, 34, .35); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.modal__close-wrap { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal__close { border: 0; background: #f1ece5; width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--ink-2); }
.modal ul { padding-left: 1.2em; color: var(--ink-2); }
.modal li { margin-bottom: .35em; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .8); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; fill: #fff; }

/* ---------- Asistente virtual ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; align-items: center; gap: .6rem;
  border: 0; cursor: pointer; padding: 14px 20px 14px 16px; border-radius: 999px;
  background: var(--primary); color: #fff; font: 600 .92rem var(--font);
  box-shadow: 0 14px 30px -12px rgba(123, 85, 71, .8); transition: transform .25s;
}
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab { padding: 6px 20px 6px 6px; }
.chat-fab__avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); flex: none; }
.chat-fab b { font-weight: 800; }
.chat-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }
.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 96; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .3s cubic-bezier(.2, .9, .3, 1.2);
}
.chat__head { display: flex; align-items: center; gap: .75rem; padding: 14px 16px; background: linear-gradient(135deg, #efe3dc, var(--lav)); }
.chat__head b { display: block; font-size: .98rem; }
.chat__head small { color: var(--ink-2); font-size: .78rem; }
.chat__avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 10px -4px rgba(90, 60, 45, .4); }
.chat__head b { font-family: var(--serif); font-size: 1.15rem; }
.chat__online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; margin-right: 6px; vertical-align: middle; }
.chat__close { margin-left: auto; border: 0; background: rgba(255, 255, 255, .7); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--ink-2); }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fbf9f6; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; animation: fade .25s ease; }
.msg p { margin: 0 0 .5em; color: inherit; } .msg p:last-child { margin: 0; }
.msg ul { margin: .2em 0 .5em; padding-left: 1.2em; } .msg ul:last-child { margin-bottom: 0; }
.msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg--error { border-color: var(--blush-d); background: var(--blush); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat__sugs { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; animation: fade .3s ease; }
.chat__sugs button { border: 1.5px solid var(--lav); background: var(--surface); border-radius: 999px; padding: .4em .9em; font: 600 .8rem var(--font); color: var(--lav-d); cursor: pointer; text-align: left; }
.chat__sugs button:hover { border-color: var(--lav-d); background: var(--lav); }
.chat__sugs button:disabled { opacity: .5; cursor: default; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; align-items: flex-end; }
.chat__form textarea { flex: 1; resize: none; max-height: 110px; border: 1.5px solid var(--line); border-radius: 16px; padding: .7em .9em; font: 500 .92rem var(--font); background: #fdfbf8; color: var(--ink); }
.chat__form textarea:focus { outline: none; border-color: var(--mocha); box-shadow: 0 0 0 3px #efe3dc; }
.chat__form button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); cursor: pointer; display: grid; place-items: center; }
.chat__form button:disabled { opacity: .5; cursor: progress; }
.chat__form svg { width: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat__legal { margin: 0; padding: 0 14px 10px; font-size: .7rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 640px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 5px; }
  .chat-fab__avatar { width: 50px; height: 50px; }
}

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 90px; z-index: 100; display: grid; gap: 10px; }
.toast { background: var(--surface); border-left: 5px solid var(--sage-d); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: 340px; animation: slidein .35s ease; }
.toast--error { border-color: var(--blush-d); }
.toast.out { animation: slidein .3s ease reverse forwards; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 90px; font-size: .88rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { gap: 1.1rem; font-size: .88rem; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .calc__panel { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; max-width: 460px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 74px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: 12px 18px 20px; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s ease;
  }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .grid2, .steps, .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .ev { grid-template-columns: 64px 1fr; }
  .ev .badge { grid-column: 2; justify-self: start; }
  .calc, .panel { padding: 20px; }
  .tab { padding: .6em 1em; }
  .brand__name small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
