/* ==========================================================================
   CARBALLEIRO · ESTUDIO ADUANERO — styles.css
   Mobile-first · CSS nativo sin frameworks
   --------------------------------------------------------------------------
   Índice
   01. Fuentes (self-hosted)        08. Problemas
   02. Variables :root              09. Proceso + pilares
   03. Reset & base                 10. Vencimientos (tabs + tabla)
   04. Utilidades / accesibilidad   11. Clientes (carrusel infinito)
   05. Botones, badges, íconos      12. FAQ (acordeón)
   06. Header & navegación          13. Contacto, perfil y formulario
   07. Hero                         14. Footer, FAB, animaciones, prefers-*
   ========================================================================== */

/* 01. FUENTES ------------------------------------------------------------- */
@font-face {
  font-family: "Marcellus";
  src: url("assets/fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 02. VARIABLES ----------------------------------------------------------- */
:root {
  /* Paleta dorada */
  --gold: #C5A059;            /* primario */
  --gold-bright: #D4AF37;     /* brillo / acentos sobre oscuro */
  --gold-dark: #9A7B38;       /* acentuaciones, bordes */
  --gold-ink: #7A6128;        /* texto dorado sobre fondo claro (5.9:1 AA) */
  --gold-soft: #F6EFDF;       /* fondos suaves */
  --gold-grad: linear-gradient(135deg, #E4C682 0%, #C5A059 45%, #9A7B38 100%);

  /* Neutros */
  --ink-900: #111827;         /* fondos oscuros */
  --ink-800: #1A202C;
  --ink-700: #2D3748;         /* texto principal (11.5:1 sobre #FAFAFA) */
  --ink-500: #4A5568;
  --ink-300: #CBD5E0;
  --ink-200: #E2E8F0;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --on-dark: #F7F7F5;
  --on-dark-muted: #CBD5E0;   /* 11.9:1 sobre #111827 */
  --danger: #B42318;
  --success: #1F7A4D;

  /* Tipografía */
  --ff-display: "Marcellus", "Times New Roman", serif;
  --ff-body: "Inter", "Roboto", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-display: 0.15em;
  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.6vw, 2.6rem);
  --fs-h1: clamp(1.9rem, 1.25rem + 3vw, 3.6rem);

  /* Espaciado / layout */
  --gutter: 1rem;
  --container: 1200px;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --header-h: 72px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Sombras y movimiento */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .05);
  --shadow: 0 10px 30px -12px rgba(17, 24, 39, .25);
  --shadow-gold: 0 12px 30px -10px rgba(197, 160, 89, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .35s;
}

/* 03. RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-900);
  text-wrap: balance;
}

/* 04. UTILIDADES & ACCESIBILIDAD ----------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 1000; transform: translateY(-200%);
  background: var(--gold); color: var(--ink-900); padding: .75rem 1.25rem;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
  transition: transform .2s;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink-900); }

/* 05. ÍCONOS, BOTONES, BADGES -------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon--lg { width: 1.6em; height: 1.6em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: var(--fs-400); line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur), color var(--dur), border-color var(--dur);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold-grad); color: var(--ink-900); box-shadow: var(--shadow-gold); }
.btn--gold:hover { box-shadow: 0 16px 36px -10px rgba(197, 160, 89, .75); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--on-dark); border-color: rgba(212, 175, 55, .55); }
.btn--ghost:hover { background: rgba(212, 175, 55, .12); border-color: var(--gold-bright); }
.btn--sm { min-height: 42px; padding: .55rem 1.05rem; font-size: var(--fs-300); }
.btn--lg { min-height: 56px; padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn__sep { opacity: .55; margin-inline: .15rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .95rem; border-radius: 999px;
  font-size: var(--fs-300); font-weight: 600; line-height: 1.35;
}
.badge--alert { background: rgba(212, 175, 55, .14); color: #F3E3B8; border: 1px solid rgba(212, 175, 55, .45); }
.badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); position: relative; flex-shrink: 0; }
.badge__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--gold-bright); animation: pulse 1.8s var(--ease) infinite;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--ff-display); font-weight: 400; font-size: .8rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold-grad); }
.eyebrow--gold { color: var(--gold-bright); }

/* 06. HEADER & NAVEGACIÓN ------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color var(--dur), box-shadow var(--dur), backdrop-filter var(--dur);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(17, 24, 39, .94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(212, 175, 55, .22);
}
/* Al abrir el menú se quita el backdrop-filter: crearía un containing block
   y el panel fijo quedaría recortado a la altura del header */
.site-header.is-open { background: var(--ink-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--on-dark); flex-shrink: 1; min-width: 0; }
/* Logotipo horizontal (SVG vectorizado). Proporción 7.5:1 → la altura define el tamaño */
.brand__logo { display: block; height: 46px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 400px) { .brand__logo { height: 50px; } }
@media (min-width: 1024px) { .brand__logo { height: 58px; } }
@media (min-width: 1024px) and (max-width: 1180px) { .brand__logo { height: 50px; } }
.site-footer__brand .brand__logo { height: 58px; }

/* Toggle hamburguesa */
.nav-toggle {
  position: relative; z-index: 2; width: 48px; height: 48px;
  display: grid; place-items: center; background: transparent;
  border: 1px solid rgba(212, 175, 55, .45); border-radius: 12px; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 22px; height: 2px; background: var(--on-dark); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity .2s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Panel móvil */
.nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 1;
  display: flex; flex-direction: column; gap: 2rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ink-900);
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark); text-decoration: none;
}
.nav__link.is-active, .nav__link:hover { color: var(--gold-bright); }
.nav__cta { align-self: flex-start; }
body.nav-locked { overflow: hidden; }

/* 07. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 2.5rem);
  background: var(--ink-900); color: var(--on-dark);
  overflow: hidden;
}
.hero__bg, .section__bg, .process__media img { color: transparent; } /* oculta el alt si la imagen falla */
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(212, 175, 55, .28), transparent 55%),
    linear-gradient(100deg, rgba(17, 24, 39, .97) 0%, rgba(17, 24, 39, .9) 45%, rgba(26, 32, 44, .72) 75%, rgba(154, 123, 56, .45) 100%);
}
.hero__grid { flex: 1; display: grid; gap: 2.5rem; align-content: center; padding-bottom: 3rem; }
.hero__content { max-width: 760px; text-align: center; margin-inline: auto; }
.hero__content > * + * { margin-top: 1.5rem; }
.hero__title {
  color: #fff; font-size: var(--fs-h1); letter-spacing: .015em; line-height: 1.14;
}
.hero__title-accent {
  display: block; margin-top: .4rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--on-dark-muted); max-width: 62ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.hero__actions .btn--lg { width: 100%; }
.hero__trust { display: grid; gap: .55rem; font-size: var(--fs-300); color: var(--on-dark-muted); }
.hero__trust li { display: flex; align-items: center; gap: .55rem; }
.hero__trust .icon { color: var(--gold-bright); width: 1.1em; height: 1.1em; }
.hero__trust { text-align: left; }

.hero-card {
  align-self: center; max-width: 380px; margin-inline: auto; padding: 1.6rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(212, 175, 55, .35); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hero-card__head { display: flex; align-items: center; gap: .7rem; color: var(--gold-bright); }
.hero-card__eyebrow { font-family: var(--ff-display); font-size: .78rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.hero-card__date { margin-top: 1rem; font-family: var(--ff-display); font-size: 1.9rem; font-weight: 400; color: #fff; line-height: 1.15; letter-spacing: .03em; }
.hero-card__meta { margin-top: .35rem; color: var(--on-dark-muted); font-size: var(--fs-300); }
.hero-card__countdown:not(:empty) {
  display: inline-block; margin-top: .9rem; padding: .3rem .75rem; border-radius: 999px;
  background: rgba(212, 175, 55, .16); color: #F3E3B8; font-size: .82rem; font-weight: 650;
}
.hero-card__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem;
  color: var(--gold-bright); font-weight: 600; font-size: var(--fs-300); text-decoration: none;
}
.hero-card__note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; color: var(--on-dark-muted); font-size: var(--fs-300); }
.hero-card__note .icon { flex: none; color: var(--gold-bright); margin-top: .15rem; }
.hero-card__link:hover .icon { transform: translateX(4px); }
.hero-card__link .icon { transition: transform var(--dur) var(--ease); }

.hero__logos { border-top: 1px solid rgba(212, 175, 55, .2); background: rgba(17, 24, 39, .55); }
.hero__logos-inner { display: flex; flex-direction: column; gap: .75rem; padding-block: 1.1rem; }
.hero__logos-label { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); text-align: center;}
.hero__logos-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem 1.5rem; align-items: center; }
.hero__logos-list img {
  width: 100%; max-width: 110px; max-height: 40px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .7; transition: opacity var(--dur);
}
.hero__logos-list img:hover { opacity: 1; }

/* SECCIONES GENÉRICAS ----------------------------------------------------- */
.section { position: relative; padding-block: var(--section-y); }
.section--light { background: var(--bg-light); }
.section--white { background: var(--bg-white); }
.section--dark { background: var(--ink-900); color: var(--on-dark-muted); isolation: isolate; overflow: clip; }
.section--dark .section-title { color: #fff; }
.section__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(.4); }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 10% 0%, rgba(212, 175, 55, .16), transparent 50%),
              linear-gradient(180deg, rgba(17, 24, 39, .55), rgba(17, 24, 39, .92));
}
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.75rem); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--gold-grad); }
.section-title { font-size: var(--fs-h2); letter-spacing: .02em; }
.section-lead { margin-top: 1rem; font-size: var(--fs-500); color: var(--ink-500); }
.section-head--dark .section-lead { color: var(--on-dark-muted); }

/* 08. PROBLEMAS ----------------------------------------------------------- */
.problem-grid { display: grid; gap: 1.25rem; }
.problem-card {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  padding: 2rem 1.6rem 1.6rem; background: var(--bg-white);
  border: 1px solid var(--ink-200); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.problem-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gold-grad);
  transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease);
}
.problem-card:hover, .problem-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(197, 160, 89, .5); }
.problem-card:hover::before, .problem-card:focus-within::before { transform: scaleX(1); }
.problem-card__num {
  position: absolute; top: .9rem; right: 1.2rem;
  font-family: var(--ff-display); font-size: 2.6rem; font-weight: 400; line-height: 1;
  color: var(--gold-soft);
}
.problem-card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--ink-900); color: var(--gold-bright);
}
.problem-card__icon .icon { width: 26px; height: 26px; }
.problem-card__title { font-size: var(--fs-h3); letter-spacing: .015em; position: relative; }
.problem-card p { color: var(--ink-500); font-size: .97rem; }
.problem-card__cta {
  margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .45rem;
  color: var(--gold-ink); font-weight: 650; text-decoration: none;
}
.problem-card__cta .icon { width: 1.05em; transition: transform var(--dur) var(--ease); }
.problem-card__cta:hover .icon { transform: translateX(5px); }
.problem-card__cta:hover { text-decoration: underline; }

/* 09. PROCESO ------------------------------------------------------------- */
.process { display: grid; gap: 3rem; align-items: center; }
.process__media { position: relative; border-radius: var(--radius-lg); }
.process__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink-800), var(--gold-dark)); /* placeholder mientras carga */
}
.process__media::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
}
.process__badge {
  position: absolute; left: 1rem; bottom: 1rem; max-width: 230px;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--ink-900); color: var(--on-dark-muted); box-shadow: var(--shadow);
  border-left: 3px solid var(--gold-bright); font-size: var(--fs-300); line-height: 1.4;
}
.process__badge strong { display: block; font-family: var(--ff-display); font-size: 1.7rem; color: var(--gold-bright); letter-spacing: .05em; }

.steps { position: relative; display: grid; gap: 1.75rem; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 28px; bottom: 28px; left: 27px; width: 2px;
  background: linear-gradient(var(--gold), rgba(197, 160, 89, .15));
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; }
.step__marker {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg-white); color: var(--gold-ink);
  border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--bg-white);
  transition: background-color var(--dur), color var(--dur);
}
.step:hover .step__marker { background: var(--ink-900); color: var(--gold-bright); }
.step__marker .icon { width: 24px; height: 24px; }
.step__kicker { font-family: var(--ff-display); font-size: .75rem; font-weight: 400; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-ink); }
.step__title { margin-top: .2rem; font-size: var(--fs-h3); letter-spacing: .015em; }
.step__body p:last-child { margin-top: .4rem; color: var(--ink-500); font-size: .97rem; }

.pillars {
  display: grid; gap: 1px; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--ink-200); border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden;
}
.pillar { display: flex; gap: .9rem; align-items: flex-start; padding: 1.4rem 1.3rem; background: var(--bg-light); }
.pillar__icon { width: 28px; height: 28px; color: var(--gold-dark); margin-top: .1rem; }
.pillar strong { display: block; color: var(--ink-900); font-weight: 700; }
.pillar span { display: block; font-size: var(--fs-300); color: var(--ink-500); margin-top: .15rem; }

/* 10. VENCIMIENTOS -------------------------------------------------------- */
.deadlines__layout { display: grid; gap: 1.75rem; }
.next-due {
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(212, 175, 55, .2), rgba(212, 175, 55, .04));
  border: 1px solid rgba(212, 175, 55, .45);
}
.next-due__label { font-family: var(--ff-display); font-size: .78rem; font-weight: 400; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-bright); }
.next-due__date { margin-top: .6rem; font-family: var(--ff-display); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); font-weight: 400; color: #fff; letter-spacing: .03em; line-height: 1.15; }
.next-due__meta { margin-top: .35rem; }
.next-due__countdown:not(:empty) { margin-top: .9rem; display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--gold); color: var(--ink-900); font-weight: 700; font-size: .85rem; }
.next-due__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

.tabs__list {
  display: inline-flex; gap: .3rem; padding: .3rem; margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
}
.tabs__tab {
  min-height: 44px; padding: .55rem 1.3rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-dark-muted); font-weight: 650; letter-spacing: .02em;
  transition: background-color var(--dur), color var(--dur);
}
.tabs__tab:hover { color: #fff; }
.tabs__tab[aria-selected="true"] { background: var(--gold-grad); color: var(--ink-900); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { border-radius: var(--radius); }
.tabs__panel:focus-visible { outline-offset: 6px; }

/* Tabla responsive: tarjetas en mobile, tabla desde 768px */
.due-table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--on-dark-muted); }
.due-table thead { display: none; }
.due-table tbody { display: grid; gap: .75rem; }
.due-table tr {
  display: grid; gap: .35rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color var(--dur), background-color var(--dur);
}
.due-table th, .due-table td { text-align: left; font-weight: 400; }
.due-table tbody th { font-family: var(--ff-display); font-weight: 400; color: #fff; letter-spacing: .05em; font-size: 1.05rem; }
.due-table td[data-th]::before { content: attr(data-th) ": "; color: var(--gold); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
.due-table small { color: var(--on-dark-muted); font-family: var(--ff-body); font-weight: 400; letter-spacing: 0; font-size: .82rem; }
.due-table strong { color: #fff; }
.due-table__status:not(:empty) {
  display: block; width: fit-content; margin-top: .35rem; padding: .12rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle;
  background: rgba(255, 255, 255, .1); color: var(--on-dark-muted);
}
.due-table tr.is-next { border-color: var(--gold-bright); background: rgba(212, 175, 55, .12); }
.due-table__status[hidden] { display: none; }
.due-table tr.is-next .due-table__status { background: var(--gold-bright); color: var(--ink-900); }
.due-table tr.is-urgent .due-table__status { background: #F59E0B; color: var(--ink-900); }

.deadlines__note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.1rem; font-size: var(--fs-300); }
.deadlines__note .icon { color: var(--gold-bright); margin-top: .15rem; }

/* 11. CLIENTES — carrusel infinito --------------------------------------- */
.logo-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
.logo-row { min-width: 0; }
.logo-row__title {
  font-family: var(--ff-body); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1rem; text-align: center;
}
.marquee {
  --marquee-speed: 55s;
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 1rem; width: max-content; padding-block: .5rem; }
.marquee.is-animated .marquee__track { animation: marquee var(--marquee-speed) linear infinite; }
.marquee--reverse.is-animated .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track,
.marquee.is-offscreen .marquee__track { animation-play-state: paused; }
.marquee-toggle {
  display: none !important;
}
.marquee-toggle:hover { border-color: var(--gold-dark); color: var(--gold-ink); }
/* Sin JS (o reduced-motion): grilla estática que envuelve */
.marquee:not(.is-animated) { -webkit-mask-image: none; mask-image: none; }
.marquee:not(.is-animated) .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }

.logo-card {
  flex: 0 0 auto; width: 150px; height: 84px; display: grid; place-items: center;
  padding: .9rem 1.1rem; background: var(--bg-white);
  border: 1px solid var(--ink-200); border-radius: var(--radius);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease);
}
.logo-card img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.15); transition: filter var(--dur); }
.logo-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logo-card:hover img { filter: none; }
.logo-card--text span {
  font-family: var(--ff-display); font-weight: 400; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-700); text-align: center; line-height: 1.2;
}

/* 12. FAQ — acordeón ------------------------------------------------------ */
.accordion { display: grid; gap: .8rem; align-items: start; }
@media (min-width: 768px) {
  .accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
}
.accordion__item {
  background: var(--bg-white); border: 1px solid var(--ink-200); border-radius: var(--radius);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.accordion__item.is-open { border-color: rgba(197, 160, 89, .6); box-shadow: var(--shadow-sm); }
.accordion__heading { font-family: var(--ff-body); font-size: 1rem; letter-spacing: 0; }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.25rem; min-height: 64px; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-radius: var(--radius);
  font-weight: 650; font-size: 1.02rem; line-height: 1.4; color: var(--ink-900);
}
.accordion__trigger:hover { color: var(--gold-ink); }
.accordion__icon {
  position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-soft); transition: background-color var(--dur), transform var(--dur) var(--ease);
}
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--gold-ink); border-radius: 2px; transition: transform var(--dur) var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--gold); transform: rotate(180deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { background: var(--ink-900); }
/* Animación de altura con grid-template-rows (sin medir en JS) */
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.accordion__panel > .accordion__content { overflow: hidden; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__content p { padding: 0 1.25rem; color: var(--ink-500); }
.accordion__content p:first-child { padding-top: .1rem; }
.accordion__content p:last-child { padding-bottom: 1.3rem; }
.accordion__content p + p { margin-top: .7rem; }
.accordion__content a { color: var(--gold-ink); font-weight: 600; }
/* Sin JS: todos los paneles visibles */
.no-js .accordion__panel { grid-template-rows: 1fr; }

/* 13. CONTACTO ------------------------------------------------------------ */
.contact__grid { display: grid; gap: 1.75rem; align-items: start; }
.profile {
  padding: 2rem 1.6rem; border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(212, 175, 55, .35);
}
.profile__head { display: flex; gap: 1.1rem; align-items: center; }
.profile__avatar {
  flex: none; width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-bright);
  font-family: var(--ff-display); font-size: 1.1rem; letter-spacing: .03em;
}
.profile__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); }
.profile__name { margin-top: .3rem; color: #fff; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); letter-spacing: .04em; }
.profile__role { margin-top: .2rem; font-weight: 600; color: var(--gold); font-size: .9rem; }
.profile__bio { margin-top: 1.2rem; font-size: .97rem; }
.contact-list { display: grid; gap: .25rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list .icon { color: var(--gold-bright); }
.contact-list a { display: inline-flex; min-height: 44px; align-items: center; color: var(--on-dark); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold-bright); text-decoration: underline; }
.profile__note { margin-top: 1.4rem; display: flex; gap: .75rem; align-items: flex-start; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.profile__note .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold-bright); }
.profile__note strong { display: block; color: #fff; font-size: .92rem; }
.profile__note span { display: block; margin-top: .2rem; color: var(--on-dark-muted); font-size: .87rem; line-height: 1.5; }

.form {
  padding: 2rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--bg-white); color: var(--ink-700); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
  border-top: 4px solid var(--gold);
}
.form__title { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); letter-spacing: .06em; }
.form__help { margin-top: .3rem; font-size: var(--fs-300); color: var(--ink-500); }
.form__grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.field { display: grid; gap: .35rem; }
.field__label { font-weight: 600; font-size: .92rem; color: var(--ink-900); }
.field__label:has(+ [required])::after { content: " *"; color: #b3261e; }
.field__optional { font-weight: 400; color: var(--ink-500); }
.field__input {
  width: 100%; min-height: 50px; padding: .75rem .95rem;
  background: var(--bg-light); border: 1.5px solid var(--ink-300); border-radius: 10px;
  font-size: 1rem; /* 16px evita el zoom en iOS */
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
textarea.field__input { resize: vertical; min-height: 96px; }
.field__input:hover { border-color: var(--gold-dark); }
.field__input:focus { outline: none; border-color: var(--gold-dark); background: #fff; box-shadow: 0 0 0 4px rgba(197, 160, 89, .25); }
.field__select {
  appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6128' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.field.is-invalid .field__input { border-color: var(--danger); background: #FFF8F7; }
.field__error { min-height: 0; font-size: .83rem; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status:not(:empty) { margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px; font-weight: 600; font-size: .93rem; }
.form__status.is-success { background: #ECFDF3; color: var(--success); border: 1px solid #ABEFC6; }
.form__status.is-error { background: #FEF3F2; color: var(--danger); border: 1px solid #FECDCA; }
.form__privacy { margin-top: .9rem; font-size: .8rem; color: var(--ink-500); text-align: center; }

/* 14. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--ink-800); color: var(--on-dark-muted); padding-top: 4rem; border-top: 1px solid rgba(212, 175, 55, .25); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; text-align: center; }
.site-footer__brand p { margin-top: 1.1rem; max-width: 40ch; margin-inline: auto; }
.site-footer__title { font-family: var(--ff-display); font-weight: 400; color: #fff; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; margin-bottom: 1rem; }
.site-footer__links { display: grid; gap: .25rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.site-footer__links a, .site-footer__links span { display: inline-block; padding-block: .35rem; }
.site-footer__contact { display: grid; gap: .55rem; line-height: 1.6; margin-top: 0; }
.site-footer__contact li { display: flex; align-items: flex-start; justify-content: center; gap: .65rem; }
.site-footer__contact .icon { flex: none; width: 18px; height: 18px; margin-top: .2rem; color: var(--gold-bright); }
.site-footer__bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .75rem; padding-block: 1.5rem calc(1.5rem + 72px);
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem;
}
.site-footer__credit { display: flex; align-items: center; gap: .3rem; margin: 0; }
.site-footer__credit img { margin-left: .25rem; }
.site-footer__credit img { display: block; height: 28px; width: auto; opacity: .85; transition: opacity var(--dur) var(--ease); }
.site-footer__credit a:hover { text-decoration: none; }
.site-footer__credit a:hover img { opacity: 1; }

/* Botón flotante: volver al inicio (apilado sobre el de WhatsApp) */
.to-top {
  position: fixed; right: calc(1rem + 8px); bottom: calc(1rem + 60px + 14px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-800); border: 1px solid rgba(212, 175, 55, .6); color: var(--gold-bright);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur);
}
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top:hover { background: var(--gold-bright); color: var(--ink-900); transform: translateY(-3px); }
.to-top.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* Botón flotante WhatsApp */
.wa-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 90;
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45);
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.wa-fab .icon { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: pulse 2.4s var(--ease) infinite;
}
.wa-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* ANIMACIONES ------------------------------------------------------------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* Revelado al hacer scroll (sólo si hay JS: html.js) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   BREAKPOINTS (mobile-first)
   ========================================================================== */
@media (min-width: 480px) {
  .hero__actions .btn--lg { width: auto; }
  .hero__logos-list { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 2.5rem 2.25rem; }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
  .logo-card { width: 180px; height: 92px; }
  .hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .site-footer__brand p { margin-inline: 0; }
  .site-footer__contact li { justify-content: flex-start; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
  .hero__logos-inner { flex-direction: row; align-items: center; gap: 2rem; }
  .hero__logos-label { flex-shrink: 0; }
  .hero__logos-list { flex: 1; }

  /* Tabla clásica */
  .due-table { border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
  .due-table thead { display: table-header-group; }
  .due-table tbody { display: table-row-group; }
  .due-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .due-table th, .due-table td { padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: middle; }
  .due-table thead th {
    background: rgba(212, 175, 55, .14); color: var(--gold-bright);
    font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  }
  .due-table tbody tr:last-child > * { border-bottom: 0; }
  .due-table tbody tr:hover { background: rgba(255, 255, 255, .04); }
  .due-table tr.is-next { background: rgba(212, 175, 55, .12); box-shadow: inset 3px 0 0 var(--gold-bright); }
  .due-table td[data-th]::before { content: none; }
  .due-table tbody th small { display: block; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; --gutter: 2rem; }
  /* Navegación de escritorio */
  .nav-toggle { display: none; }
  .nav {
    position: static; inset: auto; flex-direction: row; align-items: center; gap: .75rem;
    padding: 0; background: transparent; overflow: visible;
    transform: none; visibility: visible; transition: none;
  }
  .nav__list { flex-direction: row; gap: .2rem; }
  .nav__link {
    position: relative; padding: .6rem .45rem; border: 0; white-space: nowrap;
    font-family: var(--ff-body); font-size: .9rem; font-weight: 550; letter-spacing: .02em; text-transform: none;
    color: var(--on-dark-muted);
  }
  .nav__link::after {
    content: ""; position: absolute; left: .45rem; right: .45rem; bottom: .25rem; height: 2px;
    background: var(--gold-grad); transform: scaleX(0); transition: transform var(--dur) var(--ease);
  }
  .nav__link:hover, .nav__link.is-active { color: #fff; }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__cta { align-self: auto; }

  .hero__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
  .hero__content { text-align: left; margin-inline: 0; }
  .hero__lead { margin-inline: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero-card { justify-self: end; width: 100%; }

  .problem-grid { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; }
  .process__media img { aspect-ratio: 4 / 5; }
  .pillars { grid-template-columns: repeat(4, 1fr); }

  .deadlines__layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); align-items: start; gap: 2.5rem; }
  .next-due { position: sticky; top: calc(var(--header-h) + 1.5rem); }

  .contact__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2.5rem; }
  .profile { padding: 2.5rem 2.25rem; }

  .site-footer__grid { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .site-footer__brand p { max-width: 324px; }
  .site-footer__bottom { padding-bottom: 1.5rem; }

  .wa-fab { right: 1.5rem; bottom: 1.5rem; }
  .to-top { right: calc(1.5rem + 8px); bottom: calc(1.5rem + 60px + 14px); }
}

@media (min-width: 1280px) {
  .problem-card { padding: 2.2rem 1.8rem 1.8rem; }
}

/* PREFERENCIAS DEL USUARIO ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .tabs__tab[aria-selected="true"] { border: 2px solid ButtonText; }
  .hero__title-accent { color: CanvasText; background: none; }
}

@media print {
  .site-header, .wa-fab, .hero__bg, .hero__overlay, .section__bg, .marquee, .form { display: none !important; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; min-height: 0; }
  .hero__title, .section-title, .due-table *, .next-due * { color: #000 !important; }
}
