/* =========================================================
   Pro Desarrollo — CSS
   Tabla de contenidos (busca estas etiquetas con Ctrl/Cmd+F)
   =========================================================
  [FOUNDATIONS]
    01. Reset + Tokens (variables)
    02. Base tipográfica
    03. Utilidades de layout (container, grids)

  [LAYOUT]
    10. Header + Nav + Dropdown (desktop/móvil)
    11. Buttons (variantes)
    12. Card base

  [COMPONENTS]  (reutilizables)
    20. Hero (base + variantes)
    21. Products (tarjetas)
    22. Steps (cómo funciona)
    23. Features (por qué elegirnos)
    24. Support (atención a clientes)
    25. FAQ (acordeón)
    26. Closing CTA (cierre)
    27. Footer
    28. Forms (inputs/estados)

  [PAGES]
    40. Créditos (#creditos)
    41. Sucursales (#sucursales)

  [UTILS]
    90. Helpers / overrides puntuales
*/

/* ===== [FOUNDATIONS] 01. Reset + Tokens ===== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,textarea,select{ font:inherit; color:inherit; }
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

:root{
  /* Colores */
  --brand-1:#164C88;
  --brand-2:#2B76A9;
  --brand-ink:#0E2D55;
  --white:#fff;
  --gray-900:#0f172a; --gray-800:#1f2937; --gray-700:#334155;
  --gray-600:#475569; --gray-500:#64748b; --gray-300:#cbd5e1; --gray-200:#e5e7eb;
  --shadow-sm: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.18);

  /* Radios / sombra */
  --radius:12px; --radius-xl:16px;
  --shadow:0 10px 24px rgba(0,0,0,.08);

  /* Tipografías */
  --font-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  --font-heading:var(--font-body);

  /* Tamaños de fuente */
  --fs-900:clamp(32px,5vw,56px);
  --fs-800:clamp(26px,3.5vw,36px);
  --fs-700:22px; --fs-600:18px; --fs-500:16px;

  /* Espacios */
  --space-1:8px; --space-2:12px; --space-3:16px; --space-4:24px; --space-5:32px; --space-6:48px;
}

/* ===== [FOUNDATIONS] 02. Base tipográfica ===== */
body{ font-family:var(--font-body); color:var(--gray-900); background:#fff; line-height:1.55; font-size:var(--fs-500); }
h1,h2,h3{ margin:0 0 var(--space-2); line-height:1.15; color:#0e1420; font-family:var(--font-heading); }
h1{ font-size:var(--fs-900); font-weight:800; letter-spacing:-.01em; }
h2{ font-size:var(--fs-800); font-weight:750; }
h3{ font-size:var(--fs-700); font-weight:700; }

/* ===== [FOUNDATIONS] 03. Utilidades de layout ===== */
.container{ width:min(1120px,92%); margin:0 auto; }
section{ padding:var(--space-6) 0; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--space-4); }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); }
@media (max-width:980px){ .grid-2,.grid-3{ grid-template-columns:1fr; } }

.link-accent {
  color: var(--brand-1);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.link-accent:hover {
  color: var(--brand-2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* Respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   [LAYOUT]
   ========================================================= */

/* ===== [LAYOUT] 10. Header + Nav + Dropdown ===== */
.site-header{
  position:sticky; top:0; z-index:2000;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid #eee;
  backdrop-filter:saturate(120%) blur(6px);
}
.header-inner{ position:relative; display:flex; align-items:center; justify-content:space-between; padding:12px 0; }
.logo img{ height:44px; display:block; }

.site-nav{ position:relative; }
.site-nav ul{
  display:flex; align-items:center; gap:.6rem;
  list-style:none; margin:0; padding:0;
}
.site-nav a{
  color:var(--brand-1); font-weight:600;
  padding:6px 6px; border-radius:8px; background:transparent;
}
.site-nav a.nav-cta,
.site-nav a.btn.btn-primary{
  background:var(--brand-1); color:#fff; border:2px solid var(--brand-1);
  padding:8px 12px; margin-block:2px; border-radius:10px; line-height:1; margin-left:.35rem;
}
.site-nav a.nav-cta:hover,
.site-nav a.btn.btn-primary:hover{ box-shadow:var(--shadow); transform:none; }

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle{ display:none; background:none; border:0; font-size:1.6rem; }

/* ---------- Desktop: dropdown por hover/focus ---------- */
.has-children{ position:relative; }
.site-nav .dropdown-mega{
  position:absolute; left:0; top:100%;
  background:#fff; border:1px solid var(--gray-200);
  border-radius:12px; box-shadow:var(--shadow);
  padding:10px; display:none; min-width:320px; z-index:60;
}
.dropdown-mega li{ list-style:none; }
.dropdown-mega li a{ display:block; padding:10px 12px; border-radius:10px; color:var(--gray-800); }
.dropdown-mega li a:hover{ background:var(--gray-200); }
.dd-kicker{ font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--gray-600); display:block; }
.dd-title{ font-weight:800; color:var(--brand-1); display:block; }
.dd-desc{ font-size:.9rem; color:var(--gray-700); display:block; }

/* Mostrar dropdown por hover/focus solo si el dispositivo realmente tiene hover */
@media (hover:hover) and (pointer:fine){
  .site-nav .has-children:hover > .dropdown-mega,
  .site-nav .has-children:focus-within > .dropdown-mega{ display:block; }
}

/* ===================== MOBILE (≤980px) ===================== */
@media (max-width:980px){
  .nav-toggle{ display:block; }

  /* Panel del menú: fijo y por encima de todo */
  #site-nav{ display:none; }
  #site-nav.open{
    display:block;
    position:fixed;
    top:64px; left:0; right:0;
    background:#fff;
    border-bottom:1px solid var(--gray-200);
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    z-index:6000;
    padding:8px 0;
    border-radius:0 0 12px 12px;
  }

  /* Lista vertical */
  #site-nav ul{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:12px;
    margin:0;
  }
  #site-nav a{
    display:block;
    padding:10px 14px;
    color:var(--brand-ink);
  }

  /* Botón dentro del panel: forzar texto blanco */
  #site-nav a.btn.btn-primary,
  #site-nav a.nav-cta{
    background:var(--brand-1) !important;
    color:#fff !important;
    border-color:var(--brand-1) !important;
  }

  /* En móvil el dropdown no flota: solo se ve con .subopen */
  .site-nav .dropdown-mega{
    position:static; border:0; box-shadow:none;
    padding:4px 0; min-width:unset;
  }
  #site-nav .has-children > .dropdown-mega{ display:none; }
  #site-nav .has-children.subopen > .dropdown-mega{
    display:block;
    padding:4px 0 4px 12px;
    border-left:3px solid var(--brand-1);
    margin-left:8px;
  }

  /* Flecha indicadora en el padre */
  #site-nav .has-children > a{
    position:relative; padding-right:28px;
  }
  #site-nav .has-children > a::after{
    content:'▾';
    position:absolute; right:10px; top:50%;
    transform:translateY(-50%) rotate(0deg);
    transition:transform .2s ease; color:var(--gray-600);
  }
  #site-nav .has-children.subopen > a::after{
    transform:translateY(-50%) rotate(180deg);
  }
}

/* Con el panel móvil ABIERTO, desactiva cualquier hover del mega. Solo .subopen manda. */
#site-nav.open .has-children > .dropdown-mega{ display:none !important; }
#site-nav.open .has-children.subopen > .dropdown-mega{ display:block !important; }

/* Bloquear scroll al abrir menú */
body.nav-open{ overflow:hidden; }



/* ===== [LAYOUT] 11. Buttons ===== */
.btn{
  display:inline-block; border:2px solid transparent; border-radius:12px;
  font-weight:700; padding:10px 14px; line-height:1;
  transition:.15s box-shadow,.15s transform,.15s background;
  outline-offset:2px;
}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow); }
.btn:focus-visible{ box-shadow:0 0 0 3px rgba(22,76,136,.25); }
.btn-primary{ background:var(--brand-1); color:#fff; border-color:var(--brand-1); }
.btn-ghost{ background:transparent; color:var(--brand-1); border-color:var(--brand-1); }
.btn-outline{ background:transparent; color:#fff; border-color:#fff; } /* para fondos oscuros */
.btn-lg{ padding:14px 22px; font-size:1.06rem; }
.btn-sm{ padding:8px 12px; font-size:.92rem; }

/* ===== [LAYOUT] 12. Card base ===== */
.card{ background:#fff; border:1px solid var(--gray-200); border-radius:var(--radius); padding:var(--space-3); box-shadow:var(--shadow); }

/* CLASE MODIFICADORA PARA TARJETAS CON CEJA DE COLOR */
.card--decorated {
  position: relative;
  overflow: hidden;
  border-top-color: transparent;
  border-radius: var(--radius-xl);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card--decorated:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.card--decorated::before {
  content: "";
  position: absolute;
  top: 1px;
  left: -2.5px;
  right: -2.5px;
  height: 12px;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  pointer-events: none;
}

/* =========================================================
   [COMPONENTS]
   ========================================================= */

/* ===== [COMPONENTS] 20. Hero ===== */
.hero{
  background:linear-gradient(120deg,var(--brand-1),var(--brand-2));
  color:#fff;
}
.hero .hero-inner{
  display:grid; grid-template-columns:1.2fr .8fr; gap:var(--space-4); align-items:center;
  padding:64px 0;
}
.hero h1{ color:#fff; margin-top:4px; }
.hero p{ font-size:1.06rem; opacity:.96; }

/* Variante centrada (home-like) */
.hero--center{
  background:linear-gradient(180deg,#ffffff,#f7fafc 60%);
  text-align:center; color:var(--gray-900);
  padding:56px 0 40px;
}
.hero--center .hero-grid{
  display:grid; grid-template-columns:1fr; gap:2rem;
  align-items:center; justify-items:center; text-align:center;
}
.hero--center .hero-grid > div{ max-width:760px; }

.hero--center h1,
.hero--center .h1{ color:var(--gray-900); }

/* Acento azul del título */
.h1 .accent,
.hero--center .accent{ color:var(--brand-1); }

.kicker{ margin:4px 0 6px; color:var(--gray-700); font-weight:700; }
.hero-sub{ margin:0 auto 18px; max-width:58ch; color:var(--gray-700); }

.hero-cta{ display:flex; gap:.75rem; margin-top:1.25rem; flex-wrap:wrap; justify-content:center; }
.hero-cta .btn{ min-width:184px; }

.badge{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:.75rem; margin:18px auto 0; padding:.45rem .8rem;
  border:1px dashed var(--gray-300); border-radius:.6rem;
  color:var(--gray-700); font-size:.9rem; max-width:760px;
}
.badge span{ background:none; border:0; padding:0; }

@media (max-width:980px){
  .hero .hero-inner{ grid-template-columns:1fr; padding:40px 0; }
}

/* ===== [COMPONENTS] 21. Products ===== */
.products{ 
  padding: var(--space-6) 0; 
  background: linear-gradient(180deg, #ffffff, #f7fafc 60%);
}
.products .lead{ color:var(--gray-700); margin:6px 0 18px; }

.product-cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--space-4); }
@media (max-width:980px){ .product-cards{ grid-template-columns:1fr; } }

.product-card{
  position:relative; background:#fff; border:1px solid var(--gray-200); border-radius:16px;
  padding:20px; box-shadow:var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.product-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.10); border-color: var(--gray-300); }
.product-card h3{ margin:0 0 6px; }
.product-card h3 a{ color:inherit; text-decoration:none; }
.product-card h3 a:hover{ color:var(--brand-1); }
.product-card p{ color:var(--gray-700); margin:0 0 12px; }

.p-emoji{
  width:56px; height:56px; border-radius:999px; display:grid; place-items:center;
  background: radial-gradient(circle at 50% 50%, #fff 0 62%, transparent 63%), linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  font-size:26px; line-height:1; margin-bottom:12px;
  box-shadow: 0 8px 18px rgba(22,76,136,.18), inset 0 0 0 1px rgba(14,45,85,.08);
}
.product-card .btn-ghost{ border-color: var(--brand-1); color: var(--brand-1); padding:10px 12px; }
.product-card .btn-ghost:hover{ background: var(--brand-1); color:#fff; }

/* ===== [COMPONENTS] 21.5 Tarjetas de Crédito con Imagen ===== */
.credit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); /* 16px */
  box-shadow: var(--shadow);
  overflow: hidden; /* Clave para que la imagen respete los bordes redondeados */
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.credit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}

/* Envoltura para hacer casi toda la tarjeta un link (mejora la usabilidad) */
.credit-card__link-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Hace que el link ocupe todo el espacio disponible */
}

/* Contenedor de la imagen */
.credit-card__image-container {
  margin: 0;
  padding: 0;
  height: 200px; /* Altura fija para todas las tarjetas */
}
.credit-card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}

/* Contenido de texto */
.credit-card__content {
  padding: var(--space-3) var(--space-4) 0; /* 16px 24px 0 */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.credit-card__title {
  font-size: var(--fs-700); /* 22px */
  margin-bottom: var(--space-1);
}
.credit-card__features {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0 0 var(--space-2);
}
.credit-card__description {
  color: var(--gray-700);
  margin-bottom: var(--space-3);
}

/* Pie de la tarjeta (para el botón) */
.credit-card__footer {
  padding: 0 var(--space-4) var(--space-4); /* 0 24px 24px */
}
.credit-card .btn-ghost {
  width: 100%; /* El botón ocupa todo el ancho */
  text-align: center;
}

/* ===== [COMPONENTS] 22. Steps (cómo funciona) ===== */
.steps{ background: linear-gradient(180deg,#ffffff,#f7fafc); }
.steps .lead{ color: var(--gray-700); margin: 6px 0 18px; }

.step-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); }
@media (max-width:980px){ .step-cards{ grid-template-columns:1fr; } }

/* Solo versión scoped (evita duplicados) */
.steps .step-card{
  position: relative; overflow: hidden; background:#fff;
  border:1px solid var(--gray-200); border-top-color: transparent;
  border-radius:16px; padding:20px; box-shadow: var(--shadow);
}
.steps .step-card::before{
  content:""; position:absolute; top:1px; left:-2.5px; right:-2.5px; height:12px;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  border-top-left-radius:16px; border-top-right-radius:16px; pointer-events:none;
}
.steps .step-card h3{ margin:0 0 6px; }
.steps .step-card p{ color: var(--gray-700); margin:0; }

.step-pill{
  width:48px; height:48px; border-radius:999px; display:grid; place-items:center;
  background: radial-gradient(circle at 50% 50%, #fff 0 62%, transparent 63%), linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  color: var(--brand-ink); font-weight:800; font-size: 1.05rem; margin-bottom:12px;
  box-shadow: 0 8px 18px rgba(22,76,136,.18), inset 0 0 0 1px rgba(14,45,85,.08);
}

/* ===== [COMPONENTS] 23. Features (¿Por qué elegirnos?) ===== */
.features{ background: linear-gradient(180deg, #ffffff, #f7fafc 60%); padding: var(--space-6) 0; }
.features-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); }

.features .feature-card{
  position: relative; overflow: hidden; background:#fff;
  border:1px solid var(--gray-200); border-top-color: transparent;
  border-radius:16px; padding:22px; box-shadow: var(--shadow);
  display:grid; align-content:start; gap:8px; transition: transform .15s ease, box-shadow .15s ease;
}
.features .feature-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.features .feature-card::before{
  content:""; position:absolute; top:1px; left:-2.5px; right:-2.5px; height:12px;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  border-top-left-radius:16px; border-top-right-radius:16px; pointer-events:none;
}

.features .f-icon{
  width:52px; height:52px; border-radius:999px; display:grid; place-items:center;
  background: radial-gradient(circle at 50% 50%, #fff 0 62%, transparent 63%), linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  box-shadow: 0 8px 18px rgba(22,76,136,.18), inset 0 0 0 1px rgba(14,45,85,.08);
  font-size:26px; line-height:1; color: var(--brand-ink); margin-bottom:4px;
}
.features .feature-card h3{ margin:6px 0 4px; }
.features .feature-card p{ margin:0; color:var(--gray-700); }

/* ===== [COMPONENTS] 24. Support (Atención a clientes) ===== */
.support{ background: linear-gradient(180deg,#ffffff,#f7fafc 60%); padding: var(--space-6) 0; }
.support .lead{ color: var(--gray-700); margin: 6px 0 18px; }
.action-cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); }

.action-card{
  position: relative; overflow: hidden; background: #fff;
  border: 1px solid var(--gray-200); border-top-color: transparent;
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
  display: grid; align-content: start; gap: 10px; transition: transform .15s ease, box-shadow .15s ease;
}
.action-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
.action-card::before{
  content: ""; position: absolute; top: 1px; left: -2.5px; right: -2.5px; height: 12px;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  border-top-left-radius: 16px; border-top-right-radius: 16px; pointer-events: none;
}
.action-card .f-icon{
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brand-1); font-size: 26px; line-height: 1;
  box-shadow: inset 0 0 0 2.5px rgba(22,76,136,.9), 0 8px 18px rgba(22,76,136,.18);
  margin-bottom: 6px;
}
.action-card h3{ margin: 6px 0 4px; }
.action-card p{ margin: 0 0 6px; color: var(--gray-700); }
.action-card .btn{ width: fit-content; }

/* Añade esto a tu sección [COMPONENTS] 23. Features */
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  color: var(--brand-1); /* El color se aplica a los SVG */
}

/* ===== [COMPONENTS] 25. FAQ ===== */
.faq-home{ padding-bottom:24px; }
.faq-home .card{ padding:0; border-radius:16px; box-shadow:var(--shadow); overflow:hidden; }
.faq-home details{ margin:0; border-top:1px solid var(--gray-200); }
.faq-home details:first-of-type{ border-top:none; }

.faq-home summary{
  cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between;
  padding:16px; border-radius:10px;
}
.faq-home summary::-webkit-details-marker{ display:none; }
.faq-home summary::after{ content:"▾"; font-size:1rem; color:var(--gray-600); transition:transform .15s ease; margin-left:12px; }
.faq-home details[open] summary::after{ transform:rotate(180deg); }
.faq-home summary:hover{ background:rgba(22,76,136,.06); }
.faq-home summary:focus-visible{ outline:2px solid rgba(22,76,136,.35); outline-offset:3px; }
.faq-home details > *:not(summary){ display:none; }
.faq-home details[open] > *:not(summary){
  display:block; padding:12px 16px 16px; margin:0; color:var(--gray-700); border-top:1px solid var(--gray-200);
}
.faq-home a{ color:var(--brand-1); font-weight:700; }
.faq-home a:hover{ text-decoration:underline; }

/* ===== [COMPONENTS] 26. Closing CTA ===== */
.closing{ background:linear-gradient(180deg,#ffffff,#f7fafc 60%); padding:24px 0 48px; }
.cta-box{
  background:linear-gradient(120deg,var(--brand-1),var(--brand-2));
  color:#fff; border-radius:16px; box-shadow:var(--shadow); text-align:center; padding:28px 24px 32px;
}
.cta-box h2{ color:#fff; font-size:clamp(26px,3.2vw,36px); margin:0 0 8px; }
.cta-box p{ color:rgba(255,255,255,.95); margin:0 0 14px; }
.cta-box .btn, .cta-box .btn-primary{ background:#fff; color:var(--brand-1); border:2px solid #fff; box-shadow:0 8px 22px rgba(0,0,0,.12); }
.cta-box .btn:hover, .cta-box .btn-primary:hover{ transform:translateY(-1px); box-shadow:var(--shadow); }
.cta-box .btn-lg{ padding:16px 24px; font-size:1.08rem; }

/* ===== [COMPONENTS] 27. Footer ===== */
.site-footer{ background:#fbfcfd; border-top:1px solid var(--gray-200); }
.footer-stack{ padding:16px 0 12px; }
.footer-row.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.back-top{ color:var(--brand-1); font-weight:700; text-decoration:none; }
.back-top:hover{ opacity:.9; }
.social-links{
  display:flex;
  align-items:center;
  gap:12px;
  line-height:1;
}
.social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:999px;
  background:rgba(22,76,136,.08);
  transition:transform .15s, background .15s, opacity .15s;
}
.social-links a:hover{
  transform:translateY(-1px);
  background:rgba(22,76,136,.18);
}
.social-links__icon{
  width:20px;
  height:20px;
  display:block;
}
.footer-row.legal{
  margin-top:10px; padding-top:10px; border-top:1px solid var(--gray-200);
  display:flex; justify-content:center; align-items:center; gap:8px; flex-wrap:wrap;
  color:var(--gray-600); font-size:.92rem; text-align:center;
}
.footer-row.legal .privacy-link{ color:var(--gray-700); font-weight:700; text-decoration:underline; }
.footer-row.legal .privacy-link:hover{ color:var(--brand-1); text-decoration:none; }
.footer-row.legal .dot{ color:var(--gray-500); }
@media (max-width:720px){
  .footer-row.top{
    justify-content:center;
  }
}

/* ===== [COMPONENTS] 28. Forms ===== */
label{ display:block; color:var(--gray-800); }
input,select,textarea{ width:100%; padding:10px 12px; border-radius:10px; border:1px solid var(--gray-200); background:#fff; }
input:focus,select:focus,textarea:focus{ outline:2px solid rgba(22,76,136,.25); border-color:var(--brand-2); }
:focus-visible{ outline:2px solid rgba(22,76,136,.35); outline-offset:2px; }

/* ===== [COMPONENTS] 29. Cookie banner ===== */
.cookie-banner{
  position:fixed;
  left:50%;
  bottom:var(--space-3);
  transform:translateX(-50%);
  background:var(--brand-ink);
  color:var(--white);
  padding:var(--space-3) var(--space-4);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-lg);
  width:min(560px, calc(100% - 2 * var(--space-3)));
  display:flex;
  align-items:flex-start;
  gap:var(--space-3);
  z-index:5000;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
}
.cookie-banner__copy{
  flex:1;
  font-size:.95rem;
  line-height:1.45;
}
.cookie-banner__actions{
  display:flex;
  flex-direction:column;
  gap:var(--space-2);
  min-width:160px;
}
.cookie-banner.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%, 0);
}
.cookie-banner.is-hidden{
  opacity:0;
  pointer-events:none;
  transform:translate(-50%, 10px);
}
.cookie-banner a{
  color:inherit;
  text-decoration:underline;
}
@media (max-width:640px){
  .cookie-banner{
    flex-direction:column;
    text-align:left;
    padding:var(--space-3);
  }
  .cookie-banner__actions{
    width:100%;
    flex-direction:row;
    flex-wrap:wrap;
  }
  .cookie-banner__actions .btn{
    flex:1;
    text-align:center;
  }
}

/* =========================================================
   [PAGES]
   ========================================================= */

/* ===== [PAGES] 40. Créditos (#creditos) ===== */

/* --- TUS ESTILOS ORIGINALES (SE CONSERVAN) --- */
#creditos .hero{ background: linear-gradient(180deg,#ffffff,#f7fafc 60%); }
#creditos .hero .hero-title{ font-size: clamp(28px, 3.8vw, 46px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 10px; color: var(--gray-900); }
#creditos .hero .hero-grid > div{ max-width: 820px; }
#creditos .hero .hero-sub{ max-width: 60ch; margin: 8px auto 14px; color: var(--gray-700); }
#creditos .hero .btn-lg{ padding: 12px 18px; }
#creditos .hero .accent{ color: var(--brand-1); }

/* Doble CTA en el Hero */
#creditos .ctas-duo{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
#creditos .ctas-duo .btn-lg{ min-width:220px; }

/* Aterrizaje de anclas con header sticky */
#individual, #grupal{ scroll-margin-top: 90px; }


/* --- NUEVOS ESTILOS PARA PESTAÑAS (AÑADIR) --- */
.tabs-section { 
  padding-top: 0; 
  padding-bottom: var(--space-4); /* Reduce el padding inferior para que no quede un hueco grande */
}
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-4);
}
.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-500);
  position: relative;
  border-bottom: 3px solid transparent;
  transform: translateY(2px); /* Alinea el borde con la línea inferior */
}
.tab-btn.active {
  color: var(--brand-1);
  border-bottom-color: var(--brand-1);
}
.tab-panel {
  display: none;
  animation: fadeIn 0.5s;
}
.tab-panel.active {
  display: block;
}

/* --- Ajuste DEFINITIVO para decorar tarjetas dentro de las pestañas --- */
.tabs-content .card--decorated {
  position: relative;
  overflow: hidden;
  border-top-color: transparent;
  border-radius: var(--radius-xl); /* 16px */
  transition: transform .15s ease, box-shadow .15s ease;
}

.tabs-content .card--decorated:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.tabs-content .card--decorated::before {
  content: "";
  position: absolute;
  top: 1px;
  left: -2.5px;
  right: -2.5px;
  height: 12px;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  pointer-events: none;
}

/* --- BLOQUE PARA LOS ICONOS --- */
.card-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  background:
    radial-gradient(circle at 50% 50%, #fff 0 62%, transparent 63%),
    linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  box-shadow: 0 8px 18px rgba(22,76,136,.18), inset 0 0 0 1px rgba(14,45,85,.08);
}

.card-icon-pill img {
  width: 28px;
  height: 28px;
  color: var(--brand-ink);
}

/* ===== [PAGES] 41. Sucursales (#sucursales) ===== */

/* 41.0 — Hero consistente (texto oscuro) */
#sucursales .hero{
  background: linear-gradient(180deg,#ffffff,#f7fafc 60%);
}
#sucursales .hero h1,
#sucursales .hero .hero-title{ color: var(--gray-900); }
#sucursales .hero .hero-sub{ color: var(--gray-700); }

/* 41.1 — Buscador por CP (full width) */
.cp-wrap{ padding: var(--space-6) 0 var(--space-4); }
.cp-form{ margin: 0; }
.cp-form .grid-2{ align-items: end; }
.cp-actions{ display: flex; gap: 12px; flex-wrap: wrap; align-self: end; }
.cp-msg{ margin-top: 12px; font-weight: 600; }

/* 41.2 — Mapa (solo al fondo) */
.map-wrap{ padding: 0 0 var(--space-6); }

#map{
  width: 100%;
  height: 520px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #eef4fb;        /* color de fondo mientras cargan tiles */
  scroll-margin-top: 96px;     /* ✅ compensa el header sticky */
}

@media (max-width:980px){
  #map{
    height: 360px;
    scroll-margin-top: 80px;   /* ajusta si el header es más bajo en móvil */
  }
}

/* 41.3 — Listado de sucursales (2 columnas) */
.branches{ padding-top: 0; }
.branch-cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width:980px){
  .branch-cards{ grid-template-columns: 1fr; }
}

/* Tarjetas de sucursal */
.branch-card{
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-top-color: transparent;           /* deja lugar para la “ceja” */
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  align-content: start;
  transition: transform .15s ease, box-shadow .15s ease;
}
.branch-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.branch-card::before{
  content: "";
  position: absolute; top: 1px; left: -2.5px; right: -2.5px; height: 12px;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  pointer-events: none;
}
.branch-name{ margin: 6px 0 4px; font-size: var(--fs-700); font-weight: 800; }
.branch-address{ margin: 0 0 8px; color: var(--gray-700); }
.branch-hours, .branch-phone{ margin: 0 0 6px; color: var(--gray-700); }
.branch-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }



/* ===== [PAGES] 42. Nosotros (#nosotros) ===== */

/* Estilos para el Hero de la página */
#nosotros .hero{
  background: linear-gradient(180deg,#ffffff,#f7fafc 60%);
}

/* Bloque unificado con fondo degradado para Historia, Misión y Visión */
#nosotros .about-block {
  background: linear-gradient(180deg, #f7fafc, #ffffff 80%);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

#nosotros .about-block h2 {
  text-align: center;
  margin-bottom: var(--space-5);
}

/* Cita destacada en la sección de Historia */
.history-quote {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-ink);
  margin: 0;
  padding-left: var(--space-4);
  border-left: 4px solid var(--brand-1);
}

/* Sección de Impacto (fondo blanco por defecto) */
#nosotros .impact-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
#nosotros .impact-section h2 {
  text-align: center;
}
#nosotros .impact-section .features-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
  #nosotros .impact-section .features-grid {
    grid-template-columns: 1fr;
  }
}
#nosotros .impact-section .card {
  text-align: left;
}

/* Sección de Valores (fondo degradado) */
#nosotros .values-section {
  background: linear-gradient(180deg, #ffffff, #f7fafc 60%);
}
#nosotros .values-section h2,
#nosotros .values-section .lead {
  text-align: center;
}
#nosotros .values-section .lead {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}
#nosotros .values-section .feature-card {
  text-align: left;
}






/* ===== [PAGES] 43. Contacto (#contacto) ===== */
#contacto .hero { 
  background: linear-gradient(180deg, #ffffff, #f7fafc 60%); 
}
.contact-wrap { 
  padding: var(--space-6) 0; 
}

/* Panel de guía (columna izquierda) */
.intent-panel h2 { 
  margin-bottom: var(--space-3); 
}
.intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

/* ESTILOS COMPLETOS Y CORREGIDOS PARA LAS TARJETAS DE INTENCIÓN */
.intent-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-top-color: transparent;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.intent-card::before {
  content: "";
  position: absolute;
  top: 1px;
  left: -2.5px;
  right: -2.5px;
  height: 12px;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  pointer-events: none;
}
.intent-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 26px rgba(0,0,0,.10); 
}
.intent-card:focus-visible { 
  outline: 2px solid rgba(22,76,136,.35); 
  outline-offset: 3px; 
}
/* ------------------------------------------------------------------ */

.ic-head { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.ic-pill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #fff 0 62%, transparent 63%), linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  font-weight: 800;
  color: var(--brand-ink);
  box-shadow: 0 8px 18px rgba(22,76,136,.18), inset 0 0 0 1px rgba(14,45,85,.08);
}
.ic-desc { 
  margin: 0; 
  color: var(--gray-700); 
}

/* Estilos para el formulario de la derecha */
#contacto-form .meta {
  font-size: 0.8rem;
  color: var(--gray-600);
}
#contacto-form .form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-200);
}
#contacto-form .consent-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-600);
  flex-basis: 300px;
  flex-grow: 1;
}
#contacto-form .consent-label input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
}
#contacto-form .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== [PAGES] 44. Aviso de Privacidad ===== */

/* Estilos para el contenedor de la sección de privacidad */
.hero--center {
  background: var(--gray-100, #f7fafc); /* Fondo claro, no el azul */
  color: var(--brand-ink); /* Texto oscuro */
  text-align: center;
}

.hero--center h1,
.hero--center p {
  color: inherit; /* Hereda el color oscuro del padre (.hero--center) */
}

/* Contenedor del acordeón */
.privacy-accordion {
  max-width: 80ch; /* Ancho máximo para mejorar la legibilidad del texto */
  margin-left: auto;
  margin-right: auto;
}

/* Estilos de la tarjeta que envuelve el acordeón */
.privacy-accordion .card {
  padding: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.privacy-accordion details {
  margin: 0;
  border-top: 1px solid var(--gray-200);
}

.privacy-accordion details:first-of-type {
  border-top: none;
}

/* Estilo del título clickeable (el <summary>) */
.privacy-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 10px;
}

.privacy-accordion summary::-webkit-details-marker {
  display: none;
}

.privacy-accordion summary::after {
  content: "▾";
  font-size: 1rem;
  color: var(--gray-600);
  transition: transform .15s ease;
  margin-left: 12px;
}

.privacy-accordion details[open] summary::after {
  transform: rotate(180deg);
}

.privacy-accordion summary:hover {
  background: rgba(22,76,136,.06);
}

.privacy-accordion summary:focus-visible {
  outline: 2px solid rgba(22,76,136,.35);
  outline-offset: 3px;
}

/* Estilo del contenido desplegable */
.privacy-accordion details > *:not(summary) {
  display: none;
}

.privacy-accordion details[open] > *:not(summary) {
  display: block;
  padding: 12px 16px 16px;
  margin: 0;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-200);
}

/* Estilo para los enlaces y listas dentro del contenido */
.privacy-accordion ul {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 0;
}

.privacy-accordion a {
  color: var(--brand-1);
  font-weight: 700;
}

.privacy-accordion a:hover {
  text-decoration: underline;
}


/* ===== [PAGES] 45. Formulario Mago (Wizard) ===== */
.form-wizard-page {
  /* CAMBIO: Usamos un fondo con un degradado sutil para darle más vida */
  background: linear-gradient(170deg, #f3f7fc, #e9eef5);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 0;
}
.wizard-container {
  width: min(520px, 92%);
  margin: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  /* CAMBIO: Se añade padding aquí para unificar la tarjeta */
  padding: var(--space-4); 
}

/* --- Encabezado de la Tarjeta --- */
.wizard-card-header {
  text-align: center;
  /* CAMBIO: Se quita el padding de aquí */
  border-bottom: 1px solid var(--gray-200);
  /* CAMBIO: Se añade padding-bottom para separar del borde */
  padding-bottom: var(--space-4);
}
.wizard-logo {
  height: 40px;
  margin-bottom: var(--space-3);
}
.wizard-main-title {
  font-size: var(--fs-700);
  margin-bottom: var(--space-4);
}

.wizard-progress-container {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* NUEVO: Estilos para el texto del porcentaje */
.wizard-progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 35px; /* Evita que el layout salte cuando el número cambia */
  text-align: right;
  margin: 0;
}

.wizard-back-btn {
  background: none; border: none; font-size: 1.5rem;
  color: var(--gray-400); cursor: pointer; transition: color .2s;
}
.wizard-back-btn:hover { color: var(--brand-ink); }
.wizard-progress {
  flex-grow: 1; height: 8px; background: var(--gray-200);
  border-radius: 99px; overflow: hidden;
}
.wizard-progress-bar {
  height: 100%; width: 0%; background: var(--brand-1);
  transition: width .4s ease;
}

/* --- Contenido del Formulario --- */
#solicitud-form {
  /* CAMBIO: Se quita el padding de aquí y se añade un margen superior */
  margin-top: var(--space-4);
}
.form-step { display: none; animation: fadeIn .4s ease-out; }
.form-step.active { display: block; }

.wizard-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: var(--space-4);
  text-align: center;
}
/* (El resto del CSS se mantiene igual) */
.wizard-choices { display: flex; flex-direction: column; gap: var(--space-2); }
.wizard-choices label {
  display: block; position: relative;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius); padding: var(--space-2);
  cursor: pointer; transition: .2s ease; text-align: center;
}
.wizard-choices label:hover { border-color: var(--brand-2); background: var(--gray-100); }
.wizard-choices input[type="radio"] { position: absolute; opacity: 0; }
.wizard-choices input[type="radio"]:checked + span { font-weight: 700; color: var(--brand-1); }
.wizard-choices input[type="radio"]:checked + span::before {
  content: '✔'; position: absolute; right: 16px; color: var(--brand-1);
}
.wizard-choices input[type="radio"]:checked ~ label,
.wizard-choices label:has(input:focus-visible) {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(22,76,136,.25);
}
.wizard-choices input:focus-visible + span {
  outline: 2px solid rgba(22,76,136,.35);
  outline-offset: 2px;
}

.form-fields { display: flex; flex-direction: column; gap: var(--space-3); }
.form-fields.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-fields .full-width { grid-column: 1 / -1; }
.wizard-footer { margin-top: var(--space-4); }
.wizard-footer .btn { width: 100%; text-align: center; }

@media (max-width: 600px) {
  .form-fields.grid-2 { grid-template-columns: 1fr; }
}

/* ===== Encuestas: ritmo y separación ===== */
.survey-form {
  --survey-gap: 16px;           /* ajusta densidad aquí (12,16,20) */
  --survey-divider: var(--gray-200);
}

/* Cada bloque/pregunta */
.survey-form .survey-group {
  margin-top: var(--survey-gap);
  padding-top: calc(var(--survey-gap) - 4px);
  border-top: 1px solid var(--survey-divider);
}

/* El primer bloque sin divisor arriba */
.survey-form .survey-group:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

/* Títulos de pregunta (legend) */
.survey-form legend {
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--brand-ink);
}

/* Espaciado de controles dentro de labels/fieldsets */
.survey-form label > select,
.survey-form label > input,
.survey-form label > textarea {
  margin-top: 6px;
}

/* Listas de opciones estilo wizard más aire */
.survey-form .wizard-choices {
  gap: 8px;
}
.survey-form .wizard-choices label {
  margin: 4px 0;
}

/* Textarea y selects con ancho total dentro de la tarjeta */
.survey-form textarea,
.survey-form select,
.survey-form input[type="text"],
.survey-form input[type="tel"],
.survey-form input[type="number"] {
  width: 100%;
}

/* Separación extra antes del botón final */
.survey-form .wizard-footer {
  margin-top: calc(var(--survey-gap) + 4px);
}

/* Variante visual: tarjeta ligera para grupos largos (opcional)
.survey-form fieldset.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px 12px 10px;
}
*/



/* =========================================================
   [UTILS]
   ========================================================= */
/* (Espacio reservado para helpers puntuales si se necesitan) */
/* ===== [UTILS] 91. Modo Enfoque para Formularios ===== */
.form-focus-mode .site-header nav,
.form-focus-mode .site-footer {
  display: none;
}

/* Opcional: Centrar el logo que queda */
.form-focus-mode .header-inner {
  justify-content: center;
}

/* ===== Modal unificado ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;                     /* listo para centrar */
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42, .5);    /* gris oscuro translúcido */
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: min(640px, 92vw);
  max-height: 86vh;
  overflow: auto;
  padding: 1.25rem 1.5rem;
  position: relative;
  transform: scale(.96);
  transition: transform .25s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.close-modal-btn {
  position: absolute; top: .5rem; right: .5rem;
  background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  color: var(--gray-500);
}
.close-modal-btn:hover,
.close-modal-btn:focus-visible { color: var(--brand-1); }

/* Título y contenido del modal */
#privacy-modal h3 {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  color: var(--brand-ink);
}
.privacy-modal-content p { margin: 0 0 .75rem; }
.privacy-modal-content a {
  color: var(--brand-1);
  text-decoration: underline;
}

/* Botón-enlace dentro de consentimientos */
.link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--brand-1);
  text-decoration: underline;
  cursor: pointer;
}
.link-button:focus-visible {
  outline: 2px solid rgba(22,76,136,.35);
  outline-offset: 2px;
}

/* Evita que el label capture el click encima del botón */
.consent-label { position: relative; }
.consent-label .link-button { position: relative; z-index: 1; }

body.modal-open { overflow: hidden; }
