/* ==========================================================================
   0) VARIABLES, RESET & BASE
   ========================================================================== */
:root{
  /* Paleta clara (por defecto) */
  --bg:#F4F1E8;
  --surface:#FFFFFF;
  --text:#1B2433;
  --indigo:#1C2A4A;
  --indigo-2:#24375D;
  --brass:#B68C2A;
  --brass-strong:#8B6A1E;
  --brass-soft:#E2C783;
  --border:#E5E0D6;
  --shadow:0 10px 30px rgba(0,0,0,.10);
  --radius:14px;
  --header-h: 72px; /* se recalcula por JS */
  --header-bg: rgba(244,241,232,.85);
  --header-bg-scrolled: rgba(244,241,232,.78);
  color-scheme: light;
}

/* Preferencia del sistema */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0F1627; --surface:#121A2E; --text:#FFFFFF;
    --indigo:#1C2A4A; --indigo-2:#2A3E67;
    --brass:#C79B3A; --brass-strong:#9A7426;
    --border:#233152; --shadow:0 12px 34px rgba(0,0,0,.35);
    --header-bg: rgba(15,22,39,.6);
    --header-bg-scrolled: rgba(15,22,39,.52);
    color-scheme: dark;
  }
}

/* Overrides manuales */
:root[data-theme="light"]{
  --bg:#F4F1E8; --surface:#FFFFFF; --text:#1B2433;
  --indigo:#1C2A4A; --indigo-2:#24375D; --brass:#B68C2A; --brass-strong:#8B6A1E; --brass-soft:#E2C783;
  --border:#E5E0D6; --shadow:0 10px 30px rgba(0,0,0,.10);
  --header-bg: rgba(244,241,232,.85);
  --header-bg-scrolled: rgba(244,241,232,.78);
  color-scheme: light;
}
:root[data-theme="dark"]{
  --bg:#0F1627; --surface:#121A2E; --text:#FFFFFF;
  --indigo:#1C2A4A; --indigo-2:#2A3E67; --brass:#C79B3A; --brass-strong:#9A7426; --brass-soft:#E2C783;
  --border:#233152; --shadow:0 12px 34px rgba(0,0,0,.35);
  --header-bg: rgba(15,22,39,.6);
  --header-bg-scrolled: rgba(15,22,39,.52);
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
html{overflow-x:hidden}
body{
  margin:0; overflow-x:hidden;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,'Apple Color Emoji','Segoe UI Emoji';
  color:var(--text); background:var(--bg); line-height:1.5;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  padding-top: var(--header-h); /* espacio para header fijo */
}
img,video,iframe{max-width:100%; height:auto; display:block}

a{color:inherit;text-decoration:none}
.link-underline{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(182,140,42,.55);outline-offset:2px
}
.container{max-width:1120px;margin-inline:auto;padding:0 24px}
.block-top{margin-top:18px}
.mb-8{margin-bottom:8px}
.small-note{font-size:.85rem;margin-top:8px}
.title-indigo{margin:10px 0 0;color:var(--indigo)}
.bullet{margin:0 0 10px 18px}

/* ==========================================================================
   1) HEADER / NAV (fijo) + ANIMACIONES
   ========================================================================== */
.header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  backdrop-filter:blur(10px);
  background:var(--header-bg);
  border-bottom:1px solid var(--border);
  transition:background .3s ease, box-shadow .3s ease, transform .18s ease;
  animation: slideDown .55s ease-out both;
}
.header.scrolled{background:var(--header-bg-scrolled); box-shadow:var(--shadow)}
@keyframes slideDown{ from{transform:translateY(-100%);opacity:.0} to{transform:none;opacity:1} }

.scroll-progress{
  position:absolute; left:0; top:0; height:3px; width:100%;
  background:linear-gradient(90deg, var(--brass), #ffd98a);
  transform:scaleX(0); transform-origin:left center;
  transition:transform .15s linear;
  opacity:.9;
}

.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:14px;transition:padding .25s ease}
.header.scrolled .nav{padding:8px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:56px;width:auto;transition:height .25s ease, filter .25s ease}
.header.scrolled .brand img{height:44px; filter:saturate(1.05)}
.brand-small{height:32px}

.nav-links{display:flex;align-items:center;gap:28px;position:relative;flex-wrap:wrap}
.nav-links a{
  position:relative;font-size:.95rem;font-weight:600;opacity:.95;
  transition:opacity .15s ease, transform .15s ease;
  padding:8px 2px;
}
.nav-links a:hover{opacity:1;transform:translateY(-1px)}
.nav-indicator{
  position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background:linear-gradient(90deg, var(--brass), #ffd98a);
  border-radius:2px; pointer-events:none; opacity:.9;
  transition:transform .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}

.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;padding:10px 16px;border-radius:var(--radius);border:1px solid transparent;font-weight:600}
.btn-outline{border-color:var(--border)}
.btn-primary{background:var(--brass);color:var(--indigo)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-ghost{background:transparent;color:var(--indigo);border:1px solid var(--border)}
.btn-block{width:100%}

/* Toggle de tema */
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:12px;
  transition:transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.theme-toggle:hover{transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,0,0,.08)}
.theme-toggle svg{width:20px;height:20px}
.icon-sun{display:inline}
.icon-moon{display:none}
[data-theme="dark"] .icon-sun{display:none}
[data-theme="dark"] .icon-moon{display:inline}

/* Burger */
.burger{display:none;height:44px;width:44px;border:1px solid var(--border);border-radius:12px;background:transparent}
.burger-bars{position:relative;height:16px;width:24px}
.burger-bars span{position:absolute;left:0;right:0;height:2px;background:var(--indigo);transition:transform .3s ease,opacity .3s ease}
.b1{top:0}.b2{top:7px}.b3{bottom:0}
.burger.open .b1{transform:translateY(7px) rotate(45deg)}
.burger.open .b2{opacity:0}
.burger.open .b3{transform:translateY(-7px) rotate(-45deg)}

/* Drawer + overlay */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:95}
.overlay.show{opacity:1;pointer-events:auto}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(92vw,360px);background:var(--surface);
  border-left:1px solid var(--border);transform:translateX(100%);
  transition:transform .3s cubic-bezier(.2,.8,.2,1);z-index:110;padding:24px;display:flex;flex-direction:column;gap:18px
}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between}
.drawer-nav{margin-top:10px}
.drawer nav a{display:block;padding:10px 2px;font-size:1.1rem}
.drawer-cta{margin-top:auto;display:block}

/* Responsive header/nav */
@media (max-width:860px){
  .nav-links{display:none}
  .actions{display:none}
  .burger{display:grid;place-items:center}
}

/* ==========================================================================
   2) HERO
   ========================================================================== */
.hero{position:relative;min-height:78svh;display:grid;place-items:center;overflow:hidden}
.hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::before{content:'';position:absolute;inset:0;background:rgba(28,42,74,.55);mix-blend:multiply}
.hero .decor{position:absolute;inset:0;background:
  radial-gradient(800px circle at 20% 20%, rgba(182,140,42,.35), transparent 60%),
  radial-gradient(600px circle at 80% 30%, rgba(28,42,74,.35), transparent 60%);opacity:.35}
.hero .content{position:relative;z-index:2}
.kicker{display:inline-block;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:rgba(255,255,255,.35);font-size:.9rem;backdrop-filter:blur(4px)}
.hero h1{color:#fff;font-size:clamp(32px,6vw,56px);line-height:1.1;margin:16px 0 10px}
.hero p{color:#fff;font-size:clamp(16px,2.6vw,20px);max-width:620px;opacity:.95}
.hero .cta{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap}
.cta .btn-outline{color:#fff;border-color:rgba(255,255,255,.65)}
.cta .btn-outline:hover{background:rgba(255,255,255,.08)}

/* ==========================================================================
   3) SUBNAV (no sticky)
   ========================================================================== */
.subnav{
  background:var(--surface);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.subnav-menu{display:flex; gap:12px; justify-content:center; align-items:center; flex-wrap:wrap; padding:14px 0;}
.subnav a{padding:10px 14px; border:1px solid var(--border); border-radius:999px; font-weight:600; transition:border-color .2s ease, box-shadow .2s ease, transform .05s ease;}
.subnav a:hover{ border-color:var(--brass); box-shadow:0 0 0 3px rgba(182,140,42,.12) inset; transform:translateY(-1px); }

/* ==========================================================================
   4) SECCIONES GENERALES / GRIDS / CARDS
   ========================================================================== */
section{padding:80px 0}
h2{font-size:clamp(22px,3.2vw,32px);color:var(--indigo);margin:0 0 10px}
.muted{opacity:.85}

.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
/* Breakpoints */
@media (max-width:1024px){
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-4{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:820px){
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .grid-4{grid-template-columns:1fr}
}

.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:0 8px 24px rgba(0,0,0,.06);min-width:0}
.stat{text-align:center;background:rgba(182,140,42,.12);border-radius:12px;padding:14px}
.stat .big{font-size:26px;font-weight:700}

/* ==========================================================================
   5) SERVICIOS
   ========================================================================== */
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.filter-btn{padding:8px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-weight:600;cursor:pointer}
.filter-btn.active,.filter-btn:hover{border-color:var(--brass);box-shadow:0 0 0 3px rgba(182,140,42,.12) inset}
.service-card ul{padding-left:16px}
.service-card ul li{margin:4px 0}
.service-img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;border:1px solid var(--border);display:block;margin-bottom:12px}

/* ==========================================================================
   6) PROCESO / CASOS / NOSOTROS
   ========================================================================== */
.section-tint{background: rgba(28,42,74,.06)}
.cases-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.case-ph{aspect-ratio:4/3;background:rgba(28,42,74,.12);border-radius:12px}

/* ==========================================================================
   7) CONTACTO (form)
   ========================================================================== */
.form-control,.form-select{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:12px;margin-top:6px;background:var(--surface);color:var(--text)
}
.consent{font-size:.9rem;opacity:.85}
.section-bottom{padding-bottom:64px}

/* ==========================================================================
   8) FAQ
   ========================================================================== */
details{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px 18px}
details+details{margin-top:14px}
summary{cursor:pointer;font-weight:600;color:var(--indigo)}

/* ==========================================================================
   9) BANDA CTA
   ========================================================================== */
.band-cta{background:var(--indigo);color:var(--bg);padding:48px 0}
.band-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.band-title{color:var(--bg);margin:0 0 6px}
.band-sub{color:var(--bg);opacity:.9;margin:0}



/* ==========================================================================
   11) SCROLL REVEALS / ACCESIBILIDAD
   ========================================================================== */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  .reveal{transition:none}
  .burger-bars span,.drawer{transition:none}
}

/* Skip link */
.skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip:focus{left:16px;top:16px;width:auto;height:auto;background:var(--surface);color:var(--indigo);padding:8px 12px;border-radius:10px;z-index:999;box-shadow:var(--shadow)}

/* ==========================================================================
   12) COOKIE BAR
   ========================================================================== */
.cookiebar{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:120;
  background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;
  padding:14px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap
}
.cookiebar .actions{display:flex;gap:8px;flex-wrap:wrap}
.cookiebar.hide{display:none}
/* Móvil: cookie bar legible con botones visibles */
@media (max-width:560px){
  .cookiebar{flex-direction:column;align-items:stretch;gap:10px}
  .cookiebar .actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .cookiebar .actions .btn{width:100%}
}

/* ==========================================================================
   13) WHATSAPP FLOAT
   ========================================================================== */
.wa-float{
  position:fixed;right:18px;bottom:18px;z-index:121;width:58px;height:58px;border-radius:50%;
  display:grid;place-items:center;background:#25D366;color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.25)
}
.wa-float:hover{filter:brightness(1.05)}

/* ==========================================================================
   14) MODO OSCURO — forzar textos blancos (excepto botones)
   ========================================================================== */
[data-theme="dark"] body{color:#fff}
/* Enlaces de navegación y textos generales */
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .brand-name{color:#fff !important;}
/* Titulares y textos habituales */
[data-theme="dark"] :where(h1,h2,h3,h4,h5,h6,p,li,summary,details,small,span,label,dt,dd,blockquote,th,td,a:not(.btn)){color:#fff !important;}
/* Zona FAQ explícita */
[data-theme="dark"] #faq h2,
[data-theme="dark"] #faq summary,
[data-theme="dark"] #faq p,
[data-theme="dark"] #faq a{color:#fff !important;}
/* Iconos y elementos del header en oscuro */
[data-theme="dark"] .burger-bars span{background:#fff}
[data-theme="dark"] .btn-ghost{color:#fff}
[data-theme="dark"] .theme-toggle{color:#fff}
/* Evitar que botones cambien si ya tienen color propio */
.btn, .btn *{color:inherit}

/* ==========================================================================
   15) /* ¿Por qué elegirnos? — icono redondo */
   ========================================================================== */



#elegirnos .feature .icon{
  width:44px; height:44px; border-radius:12px;
  display:grid; place-items:center;
  background:rgba(182,140,42,.12);
  border:1px solid var(--border);
  color:var(--indigo);
}

/* Oscuro: que el icono conserve contraste */
:root[data-theme="dark"] #elegirnos .feature .icon{
  background:rgba(199,155,58,.18);
  color:#fff;
}

/* ===========================
   ¿Por qué elegirnos? — efectos + sombras
   =========================== */

/* Fondo sutil de la sección */
#elegirnos{
  position: relative;
  isolation: isolate;
}
#elegirnos::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(182,140,42,.10), transparent 60%),
    radial-gradient(900px 400px at 85% 0%, rgba(28,42,74,.08), transparent 60%);
  pointer-events:none; z-index:-1;
}

/* Tarjetas con efecto “lift”, halo y borde degradado */
#elegirnos .feature{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  transform: translateZ(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
  will-change: transform, box-shadow;
}

/* Halo/glow sutil detrás del contenido */
#elegirnos .feature::before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(240px 160px at 20% 0%, rgba(182,140,42,.18), transparent 60%),
    radial-gradient(280px 200px at 100% 0%, rgba(28,42,74,.12), transparent 60%);
  opacity:.7; pointer-events:none;
}

/* Borde “activo” con degradado al hover */
#elegirnos .feature::after{
  content:"";
  position:absolute; inset:0; border-radius: 16px;
  padding:1px; 
  background: linear-gradient(135deg, rgba(182,140,42,.55), rgba(255,217,138,.35), rgba(28,42,74,.25));
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity:0; transition:opacity .3s ease;
}

/* Efecto al pasar el mouse/foco */
#elegirnos .feature:hover,
#elegirnos .feature:focus-within{
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  border-color: transparent;             /* “esconde” el borde sólido para dejar ver el degradado */
}
#elegirnos .feature:hover::after,
#elegirnos .feature:focus-within::after{ opacity:1; }

/* “Sheen”/destello que barre en hover */
#elegirnos .feature .icon{
  position: relative;
}
#elegirnos .feature .icon::after{
  content:"";
  position:absolute; inset:-8px;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.22) 40%, transparent 80%);
  transform: translateX(-140%);
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
}
#elegirnos .feature:hover .icon::after{ transform: translateX(140%); }

/* Ícono: fondo circular con brillo */
#elegirnos .feature .icon{
  display:inline-grid; place-items:center;
  width:48px; height:48px; border-radius:12px;
  color: var(--brass);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,217,138,.35), rgba(255,217,138,0) 70%),
    rgba(182,140,42,.10);
  box-shadow: 0 6px 16px rgba(182,140,42,.15) inset, 0 4px 14px rgba(0,0,0,.08);
}

/* Mini-stats con relieve */
#elegirnos .stat{
  background: linear-gradient(180deg, rgba(182,140,42,.12), rgba(182,140,42,.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* En dark mode, refuerza contraste sin cambiar tu política de texto blanco */
:root[data-theme="dark"] #elegirnos .feature{
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
}
:root[data-theme="dark"] #elegirnos .feature::before{
  background:
    radial-gradient(240px 160px at 20% 0%, rgba(199,155,58,.28), transparent 60%),
    radial-gradient(280px 200px at 100% 0%, rgba(42,62,103,.26), transparent 60%);
}
:root[data-theme="dark"] #elegirnos .stat{
  background: linear-gradient(180deg, rgba(199,155,58,.22), rgba(199,155,58,.10));
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
}

/* Accesibilidad: si el usuario pide menos motion, desactiva tilt/destello */
@media (prefers-reduced-motion: reduce){
  #elegirnos .feature{
    transition:none; transform:none !important;
  }
  #elegirnos .feature .icon::after{ display:none; }
}


/* ==========================================================================
   16) /* ========= Testimonios (Carrusel) ========= */
   ========================================================================== */



#testimonios .t-carousel{max-width:900px;margin:18px auto 0}
#testimonios .t-viewport{overflow:hidden;position:relative;transition:height .25s ease}
#testimonios .t-track{display:flex;will-change:transform;transition:transform .35s ease}
#testimonios .t-slide{min-width:100%;padding:6px}

#testimonios .t-card{padding:22px}
#testimonios .t-stars{display:flex;gap:4px;margin-bottom:10px;color:var(--brass)}
#testimonios .t-stars svg{width:20px;height:20px;display:block}
#testimonios .t-quote{font-size:clamp(16px,2.4vw,18px);margin:0 0 12px}
#testimonios .t-author{display:flex;align-items:center;gap:12px}
#testimonios .t-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:1px solid var(--border)}
#testimonios .t-meta{display:flex;flex-direction:column}
#testimonios .t-google{color:inherit;text-decoration:underline;opacity:.9}

#testimonios .t-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}
#testimonios .t-arrow{
  width:42px;height:42px;border-radius:12px;border:1px solid var(--border);
  background:var(--surface);display:grid;place-items:center;cursor:pointer;
  transition:transform .12s ease,box-shadow .2s ease,border-color .2s ease
}
#testimonios .t-arrow:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.10)}
#testimonios .t-index{min-width:56px;text-align:center;font-weight:700}

/* Móvil: respira un poco más */
@media (max-width:560px){
  #testimonios .t-card{padding:18px}
  #testimonios .t-quote{font-size:16px}
  #testimonios .t-controls{gap:10px}
}

/* Oscuro: mantener contraste en flechas/bordes */
:root[data-theme="dark"] #testimonios .t-arrow{border-color:var(--border)}


/* Testimonios — estrellas doradas */
.t-stars { 
  display: inline-flex;
  gap: 4px;
  color: #FFC107;              /* dorado base */
}
.t-stars svg { 
  width: 18px; 
  height: 18px; 
  flex: 0 0 auto;
}
.t-stars svg path { 
  fill: currentColor;          /* toma el color dorado desde .t-stars */
}

/* Opcional: un dorado un poco más vivo en dark mode */
[data-theme="dark"] .t-stars { 
  color: #FFD54F;
}

/* ===========================
   Testimonios — layout, efectos y centrado
   =========================== */

#testimonios .container{
  text-align:center;
}
#testimonios h2{ margin-bottom:6px }
#testimonios .muted{ margin-top:0 }

.t-carousel{
  margin-top:16px;
  position:relative;
}

.t-viewport{
  position:relative;
  overflow:hidden;
  width:100%;
}

.t-track{
  display:flex;
  will-change: transform;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

/* Cada slide ocupa todo el viewport; centramos la tarjeta adentro */
.t-slide{
  min-width:100%;
  display:grid;
  place-items:center;
  padding:6px;
}

/* Tarjeta centrada, ancho cómodo y con efectos */
.t-card{
  width:min(820px, 92vw);
  margin-inline:auto;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  position:relative;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  transition: box-shadow .25s ease, transform .25s ease;
}
.t-card::before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(500px 220px at 10% -10%, rgba(182,140,42,.14), transparent 60%),
    radial-gradient(460px 200px at 110% -10%, rgba(28,42,74,.10), transparent 60%);
  pointer-events:none;
}
.t-card:hover{
  transform: translateY(-2px);
  box-shadow:0 18px 50px rgba(0,0,0,.14);
}

/* Animación de entrada del slide activo */
.t-slide.is-active .t-card{
  animation: tEnter .55s cubic-bezier(.2,.8,.2,1);
}
@keyframes tEnter{
  from{ opacity:0; transform: translateY(8px) scale(.98); }
  to  { opacity:1; transform: none; }
}

/* Cita y autor */
.t-quote{
  font-size:clamp(16px, 2.4vw, 20px);
  margin:12px 0 16px;
}
.t-author{
  display:flex; align-items:center; justify-content:center; gap:12px;
}
.t-avatar{
  width:44px; height:44px; border-radius:50%;
  object-fit:cover; border:1px solid var(--border);
}
.t-meta{ display:grid; gap:2px }
.t-google{ text-decoration:underline; font-weight:600 }

/* Estrellas doradas con efecto “pop” */
.t-stars{
  display:flex; gap:6px; justify-content:center; margin-bottom:8px;
}
.t-stars svg{
  width:22px; height:22px;
  fill:#C79B3A; /* dorado */
  filter: drop-shadow(0 1px 2px rgba(199,155,58,.35));
}
.t-stars svg:nth-child(odd){ animation: starPop .9s ease both; }
.t-stars svg:nth-child(even){ animation: starPop .9s .05s ease both; }
@keyframes starPop{ from{ transform: scale(.6) rotate(-10deg); opacity:.2 } to{ transform:none; opacity:1 } }

/* Controles centrados abajo */
.t-controls{
  margin-top:14px;
  display:flex; align-items:center; justify-content:center; gap:12px;
}
.t-index{
  min-width:56px; display:flex; justify-content:center; align-items:center; font-weight:700;
}
.t-arrow{
  width:44px; height:44px; border-radius:999px;
  border:1px solid var(--border); background:var(--surface);
  display:grid; place-items:center;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.t-arrow:hover{
  transform: translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  border-color:var(--brass);
}

/* Hint de swipe sutil (línea bajo el viewport) */
.t-viewport::after{
  content:"";
  position:absolute; left:50%; bottom:-6px; transform:translateX(-50%);
  width:60px; height:3px; border-radius:3px;
  background: linear-gradient(90deg, var(--brass), #ffd98a);
  opacity:.35;
}

/* Modo oscuro: refuerza sombras */
:root[data-theme="dark"] .t-card{
  box-shadow:0 16px 48px rgba(0,0,0,.35);
}

/* Reduced motion: sin transiciones/animaciones */
@media (prefers-reduced-motion: reduce){
  .t-track{ transition:none }
  .t-slide.is-active .t-card{ animation:none }
  .t-stars svg{ animation:none }
}




/* ===========================
   PROCESO — efectos y animaciones
   =========================== */

#proceso{
  position:relative;
  overflow:hidden;
}

/* Fondo sutil con tinte y grano muy leve */
#proceso.section-tint{
  background:
    radial-gradient(900px 320px at 15% -10%, rgba(182,140,42,.12), transparent 60%),
    radial-gradient(900px 320px at 85% -10%, rgba(28,42,74,.10), transparent 60%);
}

/* Línea conectora (solo desktop/tablet) */
#proceso .block-top{
  position:relative;
}
@media (min-width:821px){
  #proceso .block-top::before{
    content:"";
    position:absolute; left:6%; right:6%;
    top:78px; /* alineado con las .stat */
    height:2px; border-radius:2px;
    background:linear-gradient(90deg, rgba(182,140,42,.45), rgba(28,42,74,.25));
    filter:blur(.2px);
    pointer-events:none;
  }
}

/* Tarjetas: estado inicial (para reveal escalonado) */
#proceso .card{
  transform: translateY(16px) scale(.98);
  opacity:0;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    opacity .28s ease;
  will-change: transform, opacity;
}

/* Entrada escalonada cuando la sección está en vista */
#proceso.in-view .card{ animation: pIn .7s cubic-bezier(.2,.8,.2,1) forwards }
#proceso.in-view .card:nth-child(1){ animation-delay:.05s }
#proceso.in-view .card:nth-child(2){ animation-delay:.15s }
#proceso.in-view .card:nth-child(3){ animation-delay:.25s }
#proceso.in-view .card:nth-child(4){ animation-delay:.35s }

@keyframes pIn{
  from{ opacity:0; transform: translateY(16px) scale(.98) }
  to  { opacity:1; transform: none }
}

/* Hover: levanta y brilla la tarjeta */
#proceso .card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(0,0,0,.12);
}
#proceso .card::after{
  content:"";
  position:absolute; inset:-1px; border-radius:16px;
  background: linear-gradient(120deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.12) 35%, rgba(255,255,255,.0) 70%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}
#proceso .card:hover::after{ transform: translateX(120%) }

/* Números: “badge” con aro conic girando sutilmente */
#proceso .stat{
  position:relative;
  background: rgba(182,140,42,.12);
  border-radius:14px;
  overflow: hidden;
  isolation:isolate;
}
#proceso .stat::before{
  content:"";
  position:absolute; inset:-2px; border-radius:inherit;
  background: conic-gradient(
    from 0deg,
    rgba(182,140,42,.0) 0deg,
    rgba(182,140,42,.55) 120deg,
    rgba(182,140,42,.0) 240deg,
    rgba(182,140,42,.55) 360deg
  );
  mask: radial-gradient( farthest-side, transparent calc(100% - 10px), #000 0);
  opacity:.6;
  animation: spin 6.5s linear infinite;
}
@keyframes spin{ to{ transform: rotate(1turn) } }

#proceso .stat .big{
  display:inline-block;
  transform: translateZ(0); /* activa GPU */
  transition: transform .25s ease;
}
#proceso .card:hover .stat .big{ transform: scale(1.06) }

/* Progreso superior del bloque */
#proceso .p-progress{
  position:absolute; left:0; top:0; height:3px; width:100%;
  transform-origin:left center; transform:scaleX(0);
  background: linear-gradient(90deg, var(--brass), #ffd98a);
  opacity:.9;
}

/* Modo oscuro: sombras más profundas */
:root[data-theme="dark"] #proceso .card{
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}
:root[data-theme="dark"] #proceso .block-top::before{
  background: linear-gradient(90deg, rgba(231,198,121,.5), rgba(119,147,199,.35));
}

/* Reduced motion: sin animaciones */
@media (prefers-reduced-motion: reduce){
  #proceso .card,
  #proceso .card::after,
  #proceso .stat::before{ transition:none; animation:none }
  #proceso .p-progress{ display:none }
}


/* ===========================
   NOSOTROS — efectos y animaciones
   =========================== */

#nosotros{
  position:relative;
  overflow:hidden;
}

/* Fondo sutil con destellos animados */
#nosotros.section-tint{
  background:
    radial-gradient(900px 320px at 12% -8%, rgba(182,140,42,.12), transparent 60%),
    radial-gradient(900px 320px at 88% -8%, rgba(28,42,74,.10), transparent 60%);
}
#nosotros::before,
#nosotros::after{
  content:"";
  position:absolute; inset:auto;
  width:420px; height:420px; border-radius:50%;
  filter: blur(40px);
  opacity:.20; pointer-events:none; z-index:0;
  background: radial-gradient(circle at 30% 30%, rgba(182,140,42,.6), transparent 60%);
  transform: translate3d(0,0,0);
}
#nosotros::before{ left:-120px; top:-140px; animation: nFloatA 22s ease-in-out infinite alternate }
#nosotros::after{
  right:-160px; top:-90px;
  background: radial-gradient(circle at 70% 40%, rgba(28,42,74,.45), transparent 60%);
  animation: nFloatB 26s ease-in-out infinite alternate
}
@keyframes nFloatA{ 0%{transform:translate(0,0)} 100%{transform:translate(60px,40px)} }
@keyframes nFloatB{ 0%{transform:translate(0,0)} 100%{transform:translate(-70px,35px)} }

/* Centrado del bloque */
#nosotros h2,
#nosotros > .container > p.muted{
  text-align:center;
  max-width:780px;
  margin-inline:auto;
}

/* Subrayado animado del título */
#nosotros h2{
  position:relative; display:inline-block;
}
#nosotros h2::after{
  content:"";
  position:absolute; left:50%; bottom:-10px;
  width:0; height:3px; border-radius:3px;
  background:linear-gradient(90deg, var(--brass), #ffd98a);
  transform:translateX(-50%);
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}
#nosotros.in-view h2::after{ width:68% }

/* Grilla con perspectiva para tilt */
#nosotros .block-top{ position:relative; perspective: 900px; z-index:1 }

/* Tarjetas: estado inicial + animación escalonada */
#nosotros .card{
  position:relative;
  text-align:center;
  --lift:16px; /* 16px al iniciar, 0 en vista, -6px en hover */
  transform: translateY(var(--lift)) scale(.98)
            rotateX(var(--tiltX,0deg)) rotateY(var(--tiltY,0deg));
  opacity:0;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    border-color .28s ease,
    opacity .28s ease;
  will-change: transform, opacity;
}
#nosotros.in-view .card{ animation: nIn .7s cubic-bezier(.2,.8,.2,1) forwards }
#nosotros.in-view .card:nth-child(1){ animation-delay:.05s }
#nosotros.in-view .card:nth-child(2){ animation-delay:.15s }
#nosotros.in-view .card:nth-child(3){ animation-delay:.25s }

@keyframes nIn{
  from{ opacity:0; transform: translateY(16px) scale(.98) }
  to  { opacity:1; transform: translateY(0) scale(1) }
}

/* Hover: lift + contorno/brillo */
#nosotros .card:hover{
  --lift:-6px;
  box-shadow: 0 16px 44px rgba(0,0,0,.12);
  border-color: color-mix(in oklab, var(--brass) 35%, var(--border));
}
#nosotros .card::after{
  content:"";
  position:absolute; inset:-1px; border-radius:16px;
  background: linear-gradient(120deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.12) 35%, rgba(255,255,255,.0) 70%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}
#nosotros .card:hover::after{ transform: translateX(120%) }

/* Modo oscuro: sombras más profundas */
:root[data-theme="dark"] #nosotros .card{
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}

/* Reduced motion: sin animaciones pesadas */
@media (prefers-reduced-motion: reduce){
  #nosotros::before,#nosotros::after{ animation:none }
  #nosotros .card,
  #nosotros .card::after{ transition:none; animation:none }
  #nosotros h2::after{ transition:none; width:68% }
}



/* ===============================
   CONTACTO — efectos y animaciones
   =============================== */

/* Fondo sutil con destellos animados */
#contacto{
  position: relative;
  overflow: hidden;
}
#contacto.section-bottom{
  background:
    radial-gradient(900px 320px at 10% -8%, rgba(182,140,42,.12), transparent 60%),
    radial-gradient(900px 320px at 90% -12%, rgba(28,42,74,.10), transparent 60%);
}
#contacto::before,
#contacto::after{
  content:"";
  position:absolute; inset:auto;
  width:460px; height:460px; border-radius:50%;
  filter: blur(42px);
  opacity:.20; pointer-events:none; z-index:0;
  background: radial-gradient(circle at 30% 30%, rgba(182,140,42,.6), transparent 60%);
  transform: translate3d(0,0,0);
}
#contacto::before{ left:-140px; top:-160px; animation: cFloatA 24s ease-in-out infinite alternate }
#contacto::after{
  right:-200px; top:-120px;
  background: radial-gradient(circle at 70% 40%, rgba(28,42,74,.45), transparent 60%);
  animation: cFloatB 28s ease-in-out infinite alternate
}
@keyframes cFloatA{ 0%{transform:translate(0,0)} 100%{transform:translate(70px,48px)} }
@keyframes cFloatB{ 0%{transform:translate(0,0)} 100%{transform:translate(-80px,40px)} }

/* Centrado y legibilidad */
#contacto h2,
#contacto > .container > p.muted{
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width:820px){
  #contacto h2,
  #contacto > .container > p.muted,
  #contacto ul{ text-align:center }
}

/* Lista con check elegante */
#contacto ul{
  list-style:none; padding-left:0; margin: 12px 0 0;
}
#contacto ul li{
  position:relative; padding-left:28px;
  opacity:0; transform: translateY(8px);
}
#contacto ul li::before{
  content:"✓"; position:absolute; left:0; top:0;
  font-weight:900; color: var(--brass);
}

/* Tarjeta del formulario con acento animado y glow al foco */
#contacto form.card{
  position:relative; isolation:isolate; z-index:1;
  opacity:0; transform: translateY(12px) scale(.985);
  box-shadow: 0 10px 32px rgba(0,0,0,.08);
  transition: box-shadow .28s ease, border-color .28s ease, transform .28s ease, opacity .28s ease;
}
#contacto form.card::before{
  content:""; position:absolute; left:0; top:-1px; height:3px; width:100%;
  background: linear-gradient(90deg, var(--brass), #ffd98a);
  transform-origin:left center; transform: scaleX(0);
  border-top-left-radius:16px; border-top-right-radius:16px;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
#contacto form.card:focus-within{
  box-shadow: 0 18px 48px rgba(0,0,0,.14);
  border-color: color-mix(in oklab, var(--brass) 35%, var(--border));
}

/* Campos del formulario: foco elegante */
#contacto .form-control,
#contacto .form-select{
  display:block; width:100%;
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, opacity .3s ease, filter .2s ease;
  opacity:0; transform: translateY(6px);
}
#contacto .form-control::placeholder{ opacity:.7 }
#contacto .form-control:focus,
#contacto .form-select:focus{
  outline:none;
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(182,140,42,.14), 0 8px 26px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* Consent + nota pequeña */
#contacto .consent{ display:block; opacity:0; transform: translateY(6px) }
#contacto .small-note{ margin-top:8px; font-size:.85rem }

/* Botón con “shine” + hover */
#contacto .btn-primary{
  position:relative; overflow:hidden; width:100%;
  transform: translateY(6px); opacity:0;
  transition: transform .18s ease, box-shadow .25s ease;
  background:
    radial-gradient(220px circle at var(--px,50%) var(--py,50%), rgba(255,255,255,.22), transparent 60%),
    var(--brass);
}
#contacto .btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,0,0,.12) }
#contacto .btn-primary::after{
  content:""; position:absolute; inset:-200% -60% -200% -60%;
  background: linear-gradient(120deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.0) 100%);
  transform: rotate(25deg) translateX(-100%);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  pointer-events:none;
}
#contacto .btn-primary:hover::after{ transform: rotate(25deg) translateX(0%) }
#contacto .btn-primary.pulse{ animation: cPulse .42s ease }
@keyframes cPulse{ 0%{transform:translateY(6px) scale(1)} 50%{transform:translateY(0) scale(1.02)} 100%{transform:translateY(0) scale(1)} }

/* Animaciones de entrada (reveal) */
@keyframes cRise{ from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:translateY(0)} }
@keyframes cForm{ from{opacity:0; transform:translateY(12px) scale(.985)} to{opacity:1; transform:translateY(0) scale(1)} }

#contacto.in-view ul li{ animation: cRise .5s both; animation-delay: calc(var(--i, 0) * .05s + .18s) }
#contacto.in-view form.card{ animation: cForm .7s .12s both cubic-bezier(.2,.8,.2,1) }
#contacto.in-view form.card::before{ transform: scaleX(1) }
#contacto.in-view .form-control,
#contacto.in-view .form-select,
#contacto.in-view .consent,
#contacto.in-view .btn-primary{
  animation: cRise .5s both; animation-delay: calc(var(--i, 0) * .06s + .25s);
}

/* Modo oscuro: sombras más profundas */
:root[data-theme="dark"] #contacto form.card{ box-shadow: 0 12px 36px rgba(0,0,0,.28) }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  #contacto::before,#contacto::after{ animation:none }
  #contacto .btn-primary::after{ transition:none }
  #contacto .form-control, #contacto .form-select, #contacto ul li, #contacto form.card{ transition:none; animation:none; opacity:1; transform:none }
}



/* ===============================
   FAQ — efectos y animaciones
   =============================== */

#faq{ position:relative; overflow:hidden }
#faq .container > h2{ text-align:center; margin-bottom:10px }
#faq .container > p.muted{ text-align:center }

/* Tarjeta base */
#faq details{
  position:relative;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px 18px;
  transition: transform .22s ease, box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}
#faq details + details{ margin-top:14px }
#faq details:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  border-color: rgba(182,140,42,.35);
}
/* Acento dorado lateral (animado) */
#faq details::before{
  content:""; position:absolute; left:-1px; top:-1px; bottom:-1px; width:3px;
  border-top-left-radius:16px; border-bottom-left-radius:16px;
  background: linear-gradient(180deg, var(--brass), #ffd98a);
  transform: scaleY(0); transform-origin: top;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
#faq details[open]::before,
#faq details:hover::before{ transform: scaleY(1) }

/* Summary con chevrón */
#faq summary{
  cursor:pointer; font-weight:700; color:var(--indigo);
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px;
  list-style:none; outline:0;
}
#faq summary::-webkit-details-marker{ display:none }
#faq summary:focus-visible{
  box-shadow: 0 0 0 4px rgba(182,140,42,.18);
  border-radius:10px;
}
#faq summary::after{
  content:""; width:18px; height:18px; justify-self:end;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform .28s ease, opacity .2s ease;
  opacity:.85;
}
#faq details[open] summary::after{
  transform: rotate(45deg) translateY(1px);
}

/* Cuerpo (p) con apertura/cierre suave */
#faq details > p{
  margin:10px 2px 0;
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform: translateY(-4px);
  transition:
    max-height .42s ease,
    opacity .28s ease,
    transform .28s ease;
}
#faq details[open]{
  box-shadow: 0 12px 34px rgba(0,0,0,.10);
  border-color: rgba(182,140,42,.38);
}
#faq details[open] > p{
  opacity:1;
  transform: translateY(0);
}

/* Stagger al entrar en viewport */
@keyframes faqFadeUp{ from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none} }
#faq.in-view details{
  animation: faqFadeUp .55s both;
  animation-delay: calc(var(--i,0) * .08s);
}

/* Modo oscuro: textos y bordes */
:root[data-theme="dark"] #faq summary{ color:#fff }
:root[data-theme="dark"] #faq details{ box-shadow: 0 8px 22px rgba(0,0,0,.28) }
:root[data-theme="dark"] #faq details:hover{ box-shadow: 0 12px 30px rgba(0,0,0,.34) }
:root[data-theme="dark"] #faq details > p{ color:#fff }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  #faq details, #faq summary::after, #faq details::before{ transition:none }
  #faq details > p{ transition:none; max-height:unset; opacity:1; transform:none }
  #faq.in-view details{ animation:none }
}


/* ===============================
   BAND CTA — estilo + animaciones
   =============================== */

.band-cta{
  position: relative;
  isolation: isolate;
  background: var(--indigo);
  color: var(--bg);
  padding: 48px 0;
  overflow: hidden;
}

/* Fondo "aurora" animado */
.band-cta::before{
  content:"";
  position:absolute; inset:-40% -20% -40% -20%;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(182,140,42,.35), transparent 60%),
    radial-gradient(35% 35% at 80% 20%, rgba(255,217,138,.25), transparent 60%),
    radial-gradient(45% 45% at 50% 80%, rgba(28,42,74,.45), transparent 60%);
  filter: blur(30px);
  opacity:.55;
  animation: bandAurora 18s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes bandAurora{
  0%{ transform: translate(-6%, -4%) scale(1); }
  100%{ transform: translate(6%, 4%) scale(1.04); }
}

/* Layout interior */
.band-cta-inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.band-title{ color: var(--bg); margin:0 0 6px; line-height:1.15; }
.band-sub{ color: var(--bg); opacity:.9; margin:0; }

/* Subrayado animado del título */
.band-title{
  position:relative;
}
.band-title::after{
  content:"";
  position:absolute; left:0; bottom:-6px; height:3px; width:0;
  background: linear-gradient(90deg, var(--brass), #ffd98a);
  border-radius:2px;
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.band-cta.in-view .band-title::after{ width: 64% }

/* Entrada suave (stagger) */
.band-title, .band-sub, .band-cta .btn{
  opacity:0; transform: translateY(10px);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .45s ease;
}
.band-cta.in-view .band-title{ opacity:1; transform:none; transition-delay:.05s }
.band-cta.in-view .band-sub{   opacity:1; transform:none; transition-delay:.14s }
.band-cta.in-view .btn{        opacity:1; transform:none; transition-delay:.22s }

/* Botón: micro-interacciones + "shine" */
.band-cta .btn.btn-primary{
  position:relative; will-change: transform, box-shadow;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .25s ease;
}
.band-cta .btn.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.band-cta .btn.btn-primary::after{
  content:""; pointer-events:none;
  position:absolute; top:-20%; bottom:-20%; left:-120%;
  width:60%; transform: skewX(-15deg);
  background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.35), rgba(255,255,255,.0));
  filter: blur(2px);
  opacity:.0;
}
.band-cta .btn.btn-primary:hover::after{
  animation: btnShine 900ms ease forwards;
  opacity:.9;
}
@keyframes btnShine{
  0%{ left:-120% }
  100%{ left:130% }
}
/* Pulso sutil periódico (no intrusivo) */
.band-cta .btn.btn-primary{
  animation: btnPulse 7s ease-in-out infinite;
}
@keyframes btnPulse{
  0%, 100%{ box-shadow: 0 10px 24px rgba(0,0,0,.18) }
  50%{     box-shadow: 0 16px 36px rgba(0,0,0,.24) }
}

/* Responsivo */
@media (max-width: 720px){
  .band-cta-inner{ justify-content:center; text-align:center }
  .band-cta .btn{ width:100%; max-width:320px }
  .band-title::after{ left:50%; transform:translateX(-50%); }
}

/* Modo oscuro: ya usa var(--indigo) + var(--bg), no requiere overrides */

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .band-cta::before, .band-cta .btn.btn-primary{ animation:none }
  .band-title, .band-sub, .band-cta .btn{ transition:none; opacity:1; transform:none }
  .band-title::after{ width:64% }
}


/* ===========================
   FOOTER — layout + efectos
   =========================== */

/* Footer */
    footer{border-top:1px solid var(--border);margin-top:40px}
    .footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:22px;padding:36px 0}
    .footer-logo{height:72px}
    .brand.mb-8{margin-bottom:8px;display:flex;align-items:center;gap:12px}
    .brand-name{font-size:1.1rem}
    .socials{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
    .socials a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--border);border-radius:50%;transition:transform .15s ease,border-color .2s ease}
    .socials a:hover{transform:translateY(-2px);border-color:var(--brass)}
    .contact-block{margin-top:12px}
    .contact-item{display:flex;gap:8px;align-items:center;margin:4px 0;opacity:.95}
    .login-btn{display:inline-block;margin-top:8px;padding:10px 14px;border-radius:999px;background:linear-gradient(135deg,var(--brass),var(--brass-soft));color:#1C2A4A;font-weight:800;border:1px solid rgba(0,0,0,.06)}
    @media (max-width:880px){.footer-top{grid-template-columns:1fr}}
    @media (max-width:560px){
      .footer-top{row-gap:12px}
      .footer-top > div{text-align:center}
      .socials{justify-content:center}
    }
    .footer-bottom{padding:14px 0;border-top:1px solid var(--border);font-size:.9rem;opacity:.8;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
    .visit-counter{font-size:.85rem;opacity:.8}

/* Contact cards */
.contact-cards{display:grid; gap:12px;}
.contact-card{
  border:1px solid var(--border);
  border-radius:12px; padding:12px 12px;
  background: linear-gradient(180deg, rgba(28,42,74,.03), transparent);
  transition: transform .18s ease, box-shadow .3s ease, border-color .2s ease;
}
.contact-card .cc-title{font-weight:700; margin-bottom:6px; color:var(--indigo)}
.contact-card .cc-item{display:flex; align-items:center; gap:8px; padding:6px 0}
.contact-card .cc-link{text-decoration:underline}
.fx-lift:hover{ transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.10); border-color: var(--brass) }

/* Bottom row */
.footer-bottom{
  padding:14px 0; border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  font-size:.95rem;
}
.footer-bottom .visit-note{opacity:.8}

/* Botón Login vistoso */
.btn-login{
  display:inline-block; margin-top:8px; padding:10px 14px;
  border-radius:999px; font-weight:700; color:#1B2433; /* legible sobre degradado */
  background: linear-gradient(90deg, var(--brass), #ffd98a);
  border:1px solid rgba(0,0,0,.04);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .16s ease, box-shadow .25s ease, filter .15s ease;
}
.btn-login:hover{ transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 12px 28px rgba(0,0,0,.16) }

/* Orden y centrado móvil */
@media (max-width: 980px){
  .footer-top{ grid-template-columns: 1fr 1fr 1fr; }
  .col-contact{ grid-column: 1 / -1; }
}
@media (max-width: 720px){
  .footer-top{
    grid-template-columns: 1fr; row-gap:16px; text-align:center;
  }
  .footer-socials{ justify-content:center }
  .brand{ justify-content:center }
  .footer-bottom{ flex-direction:column; text-align:center }
}

/* Oscuro: textos ya forzados a blanco en tu proyecto; aseguramos contraste en tarjetas */
[data-theme="dark"] .contact-card{ background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)) }

/* Reveal del footer (usa tu sistema .reveal) */
.fx-footer{ opacity:0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease }
.fx-footer.in{ opacity:1; transform:none }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .footer::before{ animation:none }
  .fx-footer{ transition:none; opacity:1; transform:none }
}


/* ===== CONTACTO: info + mapa ===== */
.contact-info{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0 18px;
}
.contact-info h3{ margin:0 0 4px; color:var(--indigo); }
.contact-info p{ margin:0; }
@media (max-width:720px){ .contact-info{ grid-template-columns:1fr; } }

.map-wrap{ padding:0; overflow:hidden; }
.map-tabs{ display:flex; gap:8px; padding:10px; border-bottom:1px solid var(--border); }
.map-tab{
  padding:8px 12px; border:1px solid var(--border); border-radius:999px; background:var(--surface);
  font-weight:600; cursor:pointer; transition:border-color .2s, transform .1s;
}
.map-tab:hover{ transform:translateY(-1px); border-color:var(--brass); }
.map-tab.active{ border-color:var(--brass); box-shadow:0 0 0 3px rgba(182,140,42,.12) inset; }
.map-viewport{ height:250px; }
.map-viewport iframe{ width:100%; height:100%; border:0; display:block; }

/* reCAPTCHA spacing */
.g-recaptcha{ transform-origin:left top; }

/* Form inputs (si no los tienes ya) */
.form-control, .form-select, textarea.form-control{
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:12px;
  background:var(--surface); color:var(--text);
}
.small-note{ font-size:.85rem; margin-top:8px; }

/* Honeypot anti-spam oculto */
.hp{ position:absolute !important; left:-99999px !important; height:0 !important; width:0 !important; opacity:0 !important; }

/* ===== Modal genérico (usa tu modal existente si ya lo tienes) ===== */
.modal{ position:fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; padding:20px; z-index:130; }
.modal.show{ display:flex; }
.modal-box{
  width:min(92vw,560px); max-height:70vh; background:var(--surface); color:var(--text);
  border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow);
  overflow:hidden; display:grid; grid-template-rows:auto minmax(0,1fr); animation:pop .22s ease;
}
.modal-head{ display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:2; background:var(--surface); }
.modal-body{ padding:16px; overflow:auto; }
@keyframes pop{ from{ transform:scale(.96); opacity:0 } to{ transform:scale(1); opacity:1 } }

/* Micro-animación al enfocar controles */
.form-control:focus, .form-select:focus, textarea.form-control:focus{
  outline:3px solid rgba(182,140,42,.25);
  border-color:var(--brass);
}


/* ===== PUBLICIDAD DE OCASIÓN ===== */
.oc-ad { position: fixed; inset: 0; z-index: 1000; display: none; }
.oc-ad.show { display: block; }
.oc-ad[aria-hidden="true"] { display: none; }

.oc-ad__overlay {
  position: absolute; inset: 0;
  background: rgba(2,6,23,.55);
  backdrop-filter: saturate(120%) blur(6px);
  opacity: 0; transition: opacity .25s ease;
}

.oc-ad__box {
  position: relative;
  max-width: 920px;
  margin: 6vh auto;
  background: var(--surface, #fff);
  color: inherit;
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(2,6,23,.25);
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}

html[data-theme="dark"] .oc-ad__box {
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 20px 55px rgba(0,0,0,.45);
}

.oc-ad.show .oc-ad__overlay { opacity: 1; }
.oc-ad.show .oc-ad__box { transform: translateY(0) scale(1); opacity: 1; }

.oc-ad__close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  cursor: pointer; font-size: 18px; line-height: 1;
}
html[data-theme="dark"] .oc-ad__close {
  background: rgba(30,41,59,.9); border-color: rgba(255,255,255,.15);
}
.oc-ad__close:hover { filter: brightness(1.05); }

.oc-ad__grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
}

.oc-ad__media { margin: 0; background: #0b122b; }
.oc-ad__media img {
  display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4;
}

.oc-ad__content { padding: 22px 22px 20px; }
.oc-ad__kicker {
  display: inline-block; font-weight: 600; letter-spacing: .02em;
  color: var(--indigo, #4338ca);
  background: color-mix(in oklab, var(--indigo, #4338ca) 12%, transparent);
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
}
.oc-ad__content h3 { margin: 10px 0 6px; line-height: 1.2; }
.oc-ad__content p { margin: 0 0 14px; }

.oc-ad__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.oc-ad__terms { display: block; margin-top: 8px; font-size: 12px; opacity: .8; }

/* Responsive */
@media (max-width: 900px) {
  .oc-ad__grid { grid-template-columns: 1fr; }
  .oc-ad__media { display: none; } /* Oculta imagen grande en móvil; cambia si quieres */
  .oc-ad__box { margin: 10vh 16px; }
}
@media (max-width: 420px) {
  .oc-ad__content { padding: 18px; }
  .oc-ad__close { top: 8px; right: 8px; }
}

/* ===== Header móvil: mostrar sólo el toggle de tema ===== */
@media (max-width: 768px) {
  /* Reforzamos que el contenedor de acciones siga visible en mobile */
  .header .actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Ocultamos la CTA grande para no saturar la barra en pantallas pequeñas */
  .header .actions .header-cta {
    display: none;
  }

  /* El botón de tema como icon button compacto */
  .header .actions .theme-toggle {
    padding: 0.4rem;
    min-width: auto;
  }

  .header .actions .theme-toggle svg {
    width: 20px;
    height: 20px;
  }
}


/* ===== Bloque descarga App Titan (footer) ===== */
.titan-download{
  margin-top: 16px;
  max-width: 260px;
}

.titan-title{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.titan-logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.titan-title span{
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.titan-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.titan-buttons a{
  display: inline-block;
}

.titan-buttons img{
  display: block;
  height: 38px;           /* ajustable según tu badge */
  width: auto;
}

/* Responsive: centrar en mobile si el footer se centra */
@media (max-width: 560px){
  .titan-download{
    margin: 16px auto 0;
  }
}


.brand-name-cr{
  font-weight: 800;
  background: linear-gradient(
    90deg,
    #002B7F 0%,   /* azul */
    #002B7F 33%,
    #FFFFFF 33%, /* blanco */
    #FFFFFF 66%,
    #CE1126 66%, /* rojo */
    #CE1126 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Opcional: un pequeño borde para legibilidad en fondos claros/claros */
@supports (text-stroke: 1px transparent) {
  .brand-name-cr{
    -webkit-text-stroke: .4px rgba(0,0,0,.18);
    text-stroke: .4px rgba(0,0,0,.18);
  }
}




