/* ==========================================================================
   Aunalo — estilos (base clara, azul vivo, mucho aire)
   ========================================================================== */

/* Fuentes propias (variables, subconjunto latino). Sin Google Fonts. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0131,U+0152-0153,U+2013-2014,U+2018-201E,U+2022,U+2026,U+20AC;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-var-latin.woff2') format('woff2');
  unicode-range: U+0020-007E,U+00A0-00FF,U+0131,U+0152-0153,U+2013-2014,U+2018-201E,U+2022,U+2026,U+20AC;
}

:root {
  --bg: #F8F6F2;
  --bg-soft: #F3F6FB;
  --bg-tint: #EEF4FF;
  --navy: #0B1F3A;
  --text: #0B1F3A;
  --muted: #4A5B78;
  --muted-2: #62718C;
  --accent: #A8ECC4;
  --accent-hover: #8FE3B3;
  --accent-strong: #3DBF84;
  --accent-text: #1FA86A;
  --accent-deep: #0F7A4F;
  --accent-soft: #E3F8EC;
  --navy-soft: #1A3458;
  --blue-700: #0B1F3A;
  --blue-600: #0B1F3A;
  --blue-300: #A8ECC4;
  --blue-100: #DDF7E8;
  --line: #E3EAF5;
  --line-strong: #C9D6EA;
  --line-dark: #2A3F63;
  --muted-dark: #B7C5DB;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --error: #B3261E;

  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;

  --max: 1200px;
  --gutter: clamp(28px, 7vw, 48px);
  --header-h: 76px;
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.only-sm { display: none; }
@media (max-width: 479px) { .only-sm { display: inline; } .only-lg { display: none; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(32px, 2vw + 18px, 50px); color: var(--navy); text-wrap: balance; max-width: 20ch;
}
.section__title--big { font-weight: 700; letter-spacing: -0.03em; line-height: .98; font-size: clamp(42px, 4.2vw + 10px, 76px); max-width: 14ch; }
.section__lead { color: var(--muted); font-size: clamp(16px, .3vw + 15px, 18px); max-width: 56ch; margin-top: 18px; }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); }
.accent { color: var(--accent-deep); }
.dot { color: var(--accent-text); font-size: 1.18em; line-height: 0; }
.section--navy .dot { color: var(--accent); }
.section--blue .dot { color: var(--accent-deep); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color 200ms, border-color 200ms, color 200ms, transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn__arrow { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 31, 58, .14); }
.btn--on-dark { background: var(--accent); color: var(--navy); }
.btn--on-dark:hover { background: var(--accent-hover); box-shadow: none; }
.btn--secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--line-strong); }
.btn--secondary:hover { border-color: var(--navy); }
.btn--ghost { padding: 0 6px; color: var(--navy); font-size: 17px; }
.btn--ghost:hover { color: var(--accent-text); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.header .btn--primary { background: var(--navy); color: var(--accent); }
.header .btn--primary:hover { background: var(--accent-deep); color: var(--white); transform: none; box-shadow: none; }

.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; font-size: 15px; color: var(--blue-700); }
.link span { transition: transform 200ms var(--ease); }
.link:hover { color: var(--navy); }
.link:hover span { transform: translateX(3px); }

/* Botón Menú: texto + icono */
.btn-menu {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 6px; border-radius: 8px;
  font-weight: 600; font-size: 15px; color: var(--navy);
  transition: color 200ms;
}
.btn-menu__icon line { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: transform 200ms var(--ease); }
.btn-menu:hover { color: var(--accent-text); }
.btn-menu:hover .btn-menu__icon line:last-child { transform: translateX(-3px); }
.btn-menu--close { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; color: var(--white); }
.btn-menu--close svg path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn-menu--close:hover { background: rgba(255, 255, 255, .1); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms, background-color 250ms;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(248, 246, 242, .88); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.header__nav { display: flex; align-items: center; gap: 18px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo__word { font-family: var(--font-logo); font-weight: 800; font-size: 23px; letter-spacing: -0.02em; line-height: 1; }
.logo__c--a { fill: var(--navy); }
.logo__c--b { fill: var(--accent); }
.logo--dark { color: var(--white); }
.logo__c { animation: logo-join 1.2s var(--ease) both; }
.logo__c--a { --from: -10px; }
.logo__c--b { --from: 10px; }
@keyframes logo-join { from { transform: translateX(var(--from)); } to { transform: translateX(0); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; }
.hero__inner {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px 56px;
}
@media (min-width: 640px) {
  .hero__inner { min-height: min(calc(100svh - var(--header-h)), 820px); }
}
.hero__copy { max-width: none; }
.hero__big { white-space: nowrap; }
.hero__title { color: var(--navy); }
.hero__big {
  display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: .98;
  font-size: clamp(52px, 7.6vw + 6px, 108px);
}
.hero__small {
  display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15;
  font-size: clamp(22px, 1.1vw + 14px, 32px); color: var(--muted); margin-top: 16px; max-width: 24ch; text-wrap: balance;
}
.hero__sub { color: var(--muted); font-size: clamp(17px, .4vw + 15px, 20px); max-width: 52ch; margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }

/* Palabra que se escribe: compras → ventas → … → todo. */
.swap { display: inline; white-space: nowrap; }
.swap__caret {
  display: inline-block; width: .07em; height: .82em; margin-left: .06em; vertical-align: -.04em;
  background: var(--accent-deep); border-radius: 2px;
  animation: caret-blink 1s step-end infinite;
}
.swap.is-done .swap__caret { animation-duration: 1.1s; }
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.fade-up { animation: fade-up .7s var(--ease) both; }
.fade-up--1 { animation-delay: 80ms; }
.fade-up--2 { animation-delay: 160ms; }
.fade-up--3 { animation-delay: 240ms; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Firma gráfica: los dos círculos del logo ---------- */
.hero__mark {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: min(40vw, 520px); height: auto; pointer-events: none; z-index: 0; overflow: visible;
}
.hero__mark-a { fill: var(--navy); fill-opacity: .07; animation: mark-join-a 1.6s var(--ease) both; }
.hero__mark-b { fill: var(--accent); fill-opacity: .55; animation: mark-join-b 1.6s var(--ease) both; }
@keyframes mark-join-a { from { transform: translateX(-6px); } to { transform: none; } }
@keyframes mark-join-b { from { transform: translateX(6px); } to { transform: none; } }
.hero__copy { position: relative; z-index: 1; }


/* ---------- Secciones ---------- */
.section { padding-block: clamp(48px, 5vw, 72px) 0; }
.section--soft { background: var(--bg-soft); padding-block: clamp(48px, 5vw, 72px); margin-top: clamp(48px, 5vw, 72px); }
.section--last { padding-bottom: 0; }
.section--blue {
  background: linear-gradient(180deg, var(--accent) 0%, #BDF2D3 100%); color: var(--navy);
  padding-block: clamp(56px, 6vw, 88px); margin-top: clamp(48px, 5vw, 72px);
}
.section--blue .eyebrow { color: var(--navy); opacity: .7; }
.section--blue .section__title { color: var(--navy); }
.section--blue :focus-visible { outline-color: var(--navy); }

/* Hablemos sobre azul */
.section--blue .contacto__title { color: var(--navy); }
.section--blue .section__lead { color: rgba(11, 31, 58, .8); }
.section--blue .contacto__links a { color: var(--navy); }
.section--blue .contacto__links a:hover { color: var(--white); }
.section--blue .contacto__arrow { color: var(--accent-deep); }
.section--blue .contacto__hours { color: var(--navy); opacity: .8; }
.section--blue .field label { color: var(--navy); }
.section--blue .field__hint { color: rgba(11, 31, 58, .7); }
.section--blue .field input, .section--blue .field textarea { color: var(--navy); border-bottom-color: rgba(11, 31, 58, .35); }
.section--blue .field input::placeholder, .section--blue .field textarea::placeholder { color: rgba(11, 31, 58, .45); }
.section--blue .field input:hover, .section--blue .field textarea:hover { border-bottom-color: rgba(11, 31, 58, .7); }
.section--blue .field input:focus, .section--blue .field textarea:focus { border-bottom-color: var(--navy); box-shadow: 0 1.5px 0 0 var(--navy); }
.section--blue .field.is-invalid input, .section--blue .field.is-invalid textarea { border-bottom-color: #8A1C14; }
.section--blue .field.is-invalid input:focus, .section--blue .field.is-invalid textarea:focus { box-shadow: 0 1.5px 0 0 #8A1C14; }
.section--blue .field__error { color: #8A1C14; }
.section--blue .form__status.is-error { background: rgba(255, 255, 255, .7); color: #8A1C14; }
.section--blue .form__status.is-success { background: var(--navy); color: var(--accent); }
.section--blue .form__note { color: var(--navy); opacity: .75; }
.section--blue .btn--primary { background: var(--navy); color: var(--white); }
.section--blue .btn--primary:hover { background: var(--white); color: var(--navy); transform: none; box-shadow: none; }
.section--blue.section--last { padding-bottom: clamp(56px, 6vw, 88px); }


/* Acompañamiento: manifiesto */
.acomp { display: grid; grid-template-columns: 1fr; gap: 40px 80px; align-items: start; }
.acomp__list { display: grid; grid-template-columns: 1fr; gap: 26px 40px; }
.acomp__item { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
.acomp__num {
  grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: .85;
  font-size: clamp(44px, 2.6vw + 16px, 60px); color: var(--white); opacity: .85; margin-top: -.05em;
}
.acomp__item h3 { grid-column: 2; font-family: var(--font-display); font-size: clamp(19px, .8vw + 14px, 23px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); margin-bottom: 6px; }
.acomp__item p { grid-column: 2; font-size: 15px; line-height: 1.5; color: rgba(11, 31, 58, .8); max-width: 44ch; }

/* Plataforma: pestañas laterales + detalle */
.func { display: grid; grid-template-columns: 1fr; gap: 32px; scroll-margin-top: calc(var(--header-h) + 8px); }
.func__tabs { display: flex; gap: 18px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.func__tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: baseline; gap: 10px; flex: 0 0 auto; font-family: var(--font-display);
  padding: 10px 0; margin: 0; border: 0;
  font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--muted-2);
  transition: color 200ms, border-color 200ms, font-size 200ms var(--ease);
}
.tab[aria-selected="true"] { font-weight: 600; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--accent-deep); }
.tab:focus-visible { outline-offset: -3px; }
.panel { display: block; }
.panel[hidden] { display: none; }
.panel.is-active { animation: panel-in 300ms var(--ease) both; }
.panel:focus { outline: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__title { font-family: var(--font-display); font-size: clamp(24px, 1.2vw + 16px, 32px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.18; color: var(--navy); text-wrap: balance; }
.panel__title:focus { outline: none; }
.panel__lead { color: var(--muted); margin-top: 14px; max-width: 60ch; font-size: 17px; }
.features { display: grid; gap: 12px 40px; margin-top: 28px; }
.feature { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.feature { padding-left: 22px; }
.feature::before {
  content: ''; position: absolute; left: 0; top: .38em; width: 11px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231FA86A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5 9.5 2.5M4 2.5h5.5V8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.feature strong { color: var(--navy); font-weight: 600; }
.panel.is-active .feature { animation: fade-up .5s var(--ease) both; }
.panel.is-active .feature:nth-child(2) { animation-delay: 50ms; }
.panel.is-active .feature:nth-child(3) { animation-delay: 100ms; }
.panel.is-active .feature:nth-child(4) { animation-delay: 150ms; }
.panel.is-active .feature:nth-child(5) { animation-delay: 200ms; }
.panel.is-active .feature:nth-child(6) { animation-delay: 250ms; }

/* Quiénes somos: banda navy */
.section--navy { background: var(--navy); color: var(--white); padding-block: clamp(56px, 6vw, 88px); margin-top: clamp(48px, 5vw, 72px); }
.section--navy + .section--blue { margin-top: 0; }
.section--navy .eyebrow { color: var(--accent); }
.section--navy .section__title { color: var(--white); }
.section--navy .accent { color: var(--accent); }
.section--navy .section__lead { color: var(--muted-dark); }
.section--navy .promise { color: var(--muted-dark); }
.section--navy :focus-visible { outline-color: var(--accent); }
.somos { display: grid; grid-template-columns: 1fr; gap: 24px 80px; align-items: start; }
.section--navy .section__lead { margin-top: 0; }
.somos__text { display: grid; gap: 14px; }

/* Cinta en movimiento */
.marquee { overflow: hidden; margin-top: clamp(40px, 5vw, 64px); padding-block: 18px; background: var(--navy-soft); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-block; white-space: nowrap; padding-right: .6em;
  font-family: var(--font-display); font-size: clamp(34px, 3.6vw + 10px, 76px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--muted-dark);
}
.marquee__item strong { font-weight: 700; color: var(--white); margin-right: .22em; }
.marquee__item .dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Planes */
.section--planes { position: relative; overflow: hidden; }
.section--planes .container { position: relative; }
.planes__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(36px, 4.6vw + 8px, 84px); color: var(--navy); max-width: 16ch;
}
.planes__steps { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: clamp(40px, 5vw, 72px); }
.planes__step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.planes__step.reveal { transition-duration: 700ms; }
.planes__step.reveal:nth-child(1) { transition-delay: 0ms !important; }
.planes__step.reveal:nth-child(2) { transition-delay: 350ms !important; }
.planes__step.reveal:nth-child(3) { transition-delay: 700ms !important; }
.planes__num {
  grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: .85;
  font-size: clamp(56px, 3.4vw + 20px, 80px); color: var(--accent); margin-top: -.06em;
}
.planes__step h3 { grid-column: 2; font-family: var(--font-display); font-size: clamp(22px, 1.1vw + 16px, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); margin-bottom: 10px; }
.planes__step p { grid-column: 2; color: var(--muted); font-size: 15px; max-width: 34ch; }
.planes__step strong { color: var(--accent-text); font-weight: 600; }
.planes__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(36px, 4vw, 56px); }
.planes__cta p { color: var(--muted); font-size: 15px; max-width: 36ch; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.section--planes .btn--primary { background: var(--navy); color: var(--accent); }
.section--planes .btn--primary:hover { background: var(--accent); color: var(--navy); transform: none; box-shadow: none; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.contacto__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: .95;
  font-size: clamp(56px, 7vw + 4px, 104px); color: var(--navy);
}
.contacto__title .accent { color: var(--navy); }
.contacto__title:focus { outline: none; }
.contacto__links { margin-top: 36px; display: grid; gap: 6px; }
.contacto__links a {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 4px 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(24px, 1.2vw + 16px, 34px); color: var(--navy);
  transition: color 200ms;
}
.contacto__arrow { color: var(--accent-deep); display: inline-block; transition: transform 200ms var(--ease); }
.contacto__links a:hover { color: var(--navy); }
.contacto__links a:hover .contacto__arrow { transform: translateX(4px); }
.contacto__hours { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Formulario: campos de línea, sin caja */
.form { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 24px; max-width: 380px; background: var(--accent-soft); border-radius: 18px; }
.form__intro { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 2px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0; }
.field__hint { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); margin-left: 8px; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 40px; padding: 6px 0;
  color: var(--navy); font-size: 15px; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0;
  transition: border-color 200ms, box-shadow 200ms; appearance: none; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--line-strong); }
.field textarea { min-height: 64px; }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 1.5px 0 0 var(--navy); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 1.5px 0 0 var(--error); }
.field__error { font-size: 13px; color: var(--error); margin-top: 8px; }
.field__error:empty { display: none; }
.form__status { grid-column: 1 / -1; font-size: 15px; font-weight: 500; padding: 12px 16px; border-radius: 12px; }
.form__status:empty { display: none; }
.form__status.is-error { background: #FBE9E7; color: #7A1A14; }
.form__status.is-success { background: var(--accent); color: var(--navy); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 2px; }
.form .btn--primary { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.form__note { font-size: 12px; color: var(--muted-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--white); margin-top: 0; padding-top: 64px; }
.footer .logo { color: var(--white); }
.footer .logo__c--a { fill: var(--accent); }
.footer .logo__c--b { fill: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
.footer__brand p { color: var(--muted-dark); font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer__col h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer__col li { font-size: 15px; color: var(--muted-dark); padding: 5px 0; }
.footer__col a { transition: color 200ms; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid var(--line-dark); padding-block: 20px 28px; font-size: 13px; color: var(--muted-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__by { color: var(--muted-dark); opacity: .8; }
.footer__by a { text-decoration: none; color: inherit; }
.footer :focus-visible { outline-color: var(--accent); }

/* ---------- Menú desplegable ---------- */
.menu { position: fixed; inset: 0; z-index: 100; background: rgba(11, 31, 58, 0); transition: background-color 300ms; }
.menu[hidden] { display: none; }
.menu.is-open { background: rgba(11, 31, 58, .35); }
.menu__panel {
  position: absolute; top: calc(var(--header-h) - 12px); right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  width: min(440px, calc(100% - var(--gutter) * 2)); max-height: calc(100svh - var(--header-h) - 4px);
  background: var(--navy); color: var(--white); border-radius: 20px; box-shadow: 0 30px 80px rgba(11, 31, 58, .35);
  display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0 at 100% 0); transition: clip-path 450ms var(--ease);
}
.menu.is-open .menu__panel { clip-path: circle(160% at 100% 0); }
.menu__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 24px; flex: 0 0 auto; }
.menu__title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.menu__body { flex: 1 1 auto; padding: 4px 24px 8px; display: grid; grid-template-columns: 1fr; gap: 0 36px; }
.menu__aside { display: none; }
.menu__item { border-top: 1px solid var(--line-dark); }
.menu__link {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  font-size: 24px; color: #AEB8CC; padding-block: 14px;
  transition: color 200ms;
}
.menu__num { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #7E8CA8; }
.menu__item.is-current .menu__link, .menu__link:hover, .menu__link:focus-visible { color: var(--white); }
.menu__item.is-current .menu__num { color: var(--accent); }
.menu__sub { padding: 0 0 14px 26px; }
.menu__sub[hidden] { display: none; }
.menu__sub-cta { display: block; color: var(--accent); font-weight: 600; font-size: 14px; padding-block: 2px 8px; }
.menu__sub-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu__sublist a { display: grid; gap: 1px; padding-block: 7px; transition: padding-left 200ms var(--ease); }
.menu__sublist a:hover { padding-left: 4px; }
.menu__sublist strong { color: var(--white); font-size: 15px; font-weight: 600; }
.menu__sublist span { color: var(--muted-dark); font-size: 13px; }
.menu__bottom {
  flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px 20px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 14px;
}
.menu :focus-visible { outline-color: var(--accent); }

/* Títulos: suben al entrar en pantalla */
.section__title, .planes__title, .contacto__title { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.section__title.is-in, .planes__title.is-in, .contacto__title.is-in { opacity: 1; transform: none; }
.section__lead, .section__head .section__lead { transition: opacity 700ms var(--ease) 120ms, transform 700ms var(--ease) 120ms; }

/* Latido suave de los puntos verdes */
.dot, .swap__text.accent { animation: pulse 3.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (max-width: 959px) {
  .hero__big { white-space: normal; }
}
@media (max-width: 639px) {
  /* Header: solo la hamburguesa */
  .menu__sublist span { display: none; }
  .header__inner { gap: 8px; }
  .header__nav { gap: 12px; }
  .logo { gap: 8px; }
  .logo__word { font-size: 21px; }
  .btn-menu { padding: 0 4px; gap: 0; }
  .btn-menu > span { display: none; }
  .btn-menu__icon { width: 22px; height: 12px; }
  .btn--sm { padding: 0 12px; gap: 8px; }

  /* Hero: altura natural, palabra en su propio renglón */
  .hero__inner { padding-block: 32px 16px; }
  .hero__mark { display: none; }
  .hero__big { font-size: 46px; white-space: normal; }
  .swap { display: block; }
  .hero__small { font-size: 20px; margin-top: 12px; }
  .hero__sub { font-size: 16px; margin-top: 16px; }
  .hero__actions { margin-top: 20px; }
  .btn--ghost { font-size: 16px; }

  /* Escala tipográfica más delicada */
  .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .section__title { font-size: 28px; }
  .section__title--big { font-size: 34px; }
  .section__lead { font-size: 16px; margin-top: 14px; }
  .section__head { margin-bottom: 28px; }
  .section { padding-top: 56px; }
  .section--blue, .section--navy { padding-block: 56px; margin-top: 56px; }

  .acomp { gap: 28px; }
  .acomp__list { gap: 20px; }
  .acomp__item { column-gap: 12px; }
  .acomp__num { font-size: 40px; }
  .acomp__item h3 { font-size: 18px; }
  .acomp__item p { font-size: 14px; max-width: none; }

  .func { gap: 20px; }
  .func__tabs { gap: 16px; }
  .tab { font-size: 15px; padding: 8px 0; }
  .tab[aria-selected="true"] { font-size: 17px; }
  .panel__title { font-size: 22px; }
  .panel__lead { font-size: 15px; margin-top: 10px; }
  .features { gap: 10px; margin-top: 18px; }
  .feature { font-size: 14px; }

  .somos { gap: 20px; }
  .somos__text { gap: 10px; }
  .somos__text .section__lead { font-size: 15px; }
  .marquee { margin-top: 28px; }
  .marquee__item { font-size: 26px; }

  .contacto { gap: 32px; }
  .contacto__title { font-size: 44px; }
  .contacto__links { margin-top: 22px; gap: 2px; }
  .contacto__links a { font-size: 20px; padding: 2px 0; }
  .contacto__hours { font-size: 14px; margin-top: 14px; }
  .form { gap: 22px; padding: 22px 20px; }
  .field label { font-size: 11px; letter-spacing: .1em; margin-bottom: 0; }
  .field__hint { font-size: 12px; }
  .field input, .field textarea { font-size: 16px; min-height: 42px; padding: 8px 0; }
  .field textarea { min-height: 72px; }
  .field__error { font-size: 12px; }
  .form__status { font-size: 14px; padding: 10px 12px; }
  .form__note { font-size: 12px; }
  .form__actions { gap: 12px; margin-top: 2px; }
  .form .btn--primary { min-height: 42px; padding: 0 18px; font-size: 14px; }

  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-bottom: 24px; }
  .planes__title { font-size: 36px; }
  .planes__steps { gap: 24px; margin-top: 32px; }
  .planes__step { column-gap: 14px; }
  .planes__num { font-size: 48px; }
  .planes__step h3 { font-size: 20px; }
  .btn--lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { font-size: 13px; margin-top: 12px; }
  .footer__col h2 { font-size: 12px; margin-bottom: 8px; }
  .footer__col li { font-size: 14px; padding: 3px 0; }
  .footer__bottom { font-size: 12px; padding-block: 14px 20px; gap: 4px; }
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .acomp { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 80px; }
  .acomp__list { grid-template-columns: 1fr; gap: 28px; }
  .planes__steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .menu__panel { width: min(820px, calc(100% - var(--gutter) * 2)); }
  .menu__body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding-bottom: 16px; }
  .menu__link { font-size: 28px; padding-block: 16px; }
  .menu__sub { display: none; }
  .menu__aside { display: block; padding: 14px 0 0 28px; border-left: 1px solid var(--line-dark); }
  .menu__aside .menu__sub { display: block; padding: 0; }
  .menu__aside .menu__sub-cta { font-size: 15px; padding-bottom: 10px; }
  .menu__aside .menu__sublist a { padding-block: 9px; }
  .menu__aside .menu__sublist strong { font-size: 16px; }
  .menu__aside .menu__sublist span { font-size: 14px; }
  .somos { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 96px; }
  .acomp__copy { position: sticky; top: calc(var(--header-h) + 24px); }
  .func { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .func__tabs { position: sticky; top: calc(var(--header-h) + 24px); flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 0; border-bottom: 0; }
  .tab {
    width: 100%; justify-content: flex-start; align-items: baseline; gap: 14px;
    padding: 12px 0; margin: 0; border: 0;
    font-size: 22px; letter-spacing: -0.02em; color: var(--muted-2); font-weight: 500;
  }
  .tab:hover { color: var(--navy); }
  .tab[aria-selected="true"] { font-size: 34px; font-weight: 700; color: var(--accent-deep); letter-spacing: -0.03em; }
  .features { grid-template-columns: 1fr 1fr; }
  .panel__title { max-width: 22ch; }
  .contacto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .form { margin-top: 35px; justify-self: start; }
  .contacto { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .footer { padding-top: 80px; }
}


/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .section__title, .planes__title, .contacto__title { opacity: 1; transform: none; }
  .hero__mark-a, .hero__mark-b { animation: none; }
  .menu__panel { clip-path: none; }
  .swap__caret { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; flex-wrap: wrap; padding-inline: var(--gutter); }
  .marquee__item:nth-child(n + 4) { display: none; }
}

/* Honeypot antispam del formulario (invisible para personas) */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
