/* =========================================
   VARIABLES & CONFIGURACIÓN
   ========================================= */
:root {
    --primary: #1B4623;
    --primary-hover: #245A2C;
    --accent: #FFD730;
    --accent-hover: #EBC52A;
    --success: #10B981;
    --error: #EF4444;
    --surface: #FFFFFF;
    --text-main: #0B1220;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius: 14px;
    --shadow-card: 0 20px 40px rgba(2, 6, 23, 0.10);
    --shadow-soft: 0 6px 14px rgba(2, 6, 23, 0.08);
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --fc-green-900: #1B4623;
    --fc-green-800: #245A2C;
    --fc-green-700: #2E6C37;
    --fc-olive-600: #798031;
    --fc-gold-500:  #FFD730;
    --fc-gold-600:  #EBC52A;
    --fc-cream-50:  #FFEEBB;
    --fc-ink:       #0B1220;
    --fc-slate-700: #334155;
    --fc-slate-500: #64748B;
    --fc-slate-200: #E2E8F0;
    --fc-slate-100: #F1F5F9;
    --fc-white:     #FFFFFF;
    --fc-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fc-dur-1: 140ms;
    --fc-dur-2: 220ms;
    :root{
  /* faltantes reales */
  --fc-surface: #FFFFFF;
  --fc-shadow-lg: 0 20px 40px rgba(2, 6, 23, 0.10);
  --fc-shadow-sm: 0 6px 14px rgba(2, 6, 23, 0.08);
}
.theme-firstcash{
  --surface: var(--fc-surface);
  --shadow-card: var(--fc-shadow-lg);
  --shadow-soft: var(--fc-shadow-sm);
}

}

/* =========================================
   BASE
   ========================================= */
html { scroll-behavior: smooth; }
body { 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-body);
}

/* Theme First Cash */
.theme-firstcash {
    --primary: var(--fc-green-900);
    --primary-hover: var(--fc-green-800);
    --accent: var(--fc-gold-500);
    --accent-hover: var(--fc-gold-600);
    --surface: var(--fc-surface);
    --text-main: var(--fc-ink);
    --text-muted: var(--fc-slate-500);
    --border: var(--fc-slate-200);
    --shadow-card: var(--fc-shadow-lg);
    --shadow-soft: var(--fc-shadow-sm);
}

/* =========================================
   UTILITIES
   ========================================= */
.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;
}

/* =========================================
   COMPONENTS
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}

/* =========================================
   FONDOS DE SECCIÓN — SISTEMA VISUAL
   Cada sección tiene fondo propio para dar
   profundidad y ritmo visual al scroll.
   Las imágenes usan rutas en img/bg-*.webp
   que puedes reemplazar con fotos reales.
   ========================================= */

/* ── 1. HERO ─────────────────────────────
   Fondo: imagen de auto/dinero con overlay
   degradado verde→oscuro para legibilidad.
   NOTA: NO usar background-attachment:fixed
   porque falla en iOS Safari.
   ──────────────────────────────────────── */
.hero-bg {
    position: relative;
    background-color: #0B1220; /* fallback sólido */
    background-image:
        linear-gradient(
            135deg,
            rgba(27, 70, 35, 0.92) 0%,
            rgba(11, 18, 32, 0.88) 50%,
            rgba(27, 70, 35, 0.85) 100%
        ),
        url('img/bg-hero.webp');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

/* Decorative blurs sobre el hero — se mantienen */
.hero-bg .hero-blob-tr,
.hero-bg .hero-blob-bl {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.hero-bg .hero-blob-tr {
    top: -80px;
    right: -80px;
    width: 384px;
    height: 384px;
    background: rgba(255, 215, 48, 0.12);
}

.hero-bg .hero-blob-bl {
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: rgba(27, 70, 35, 0.15);
}

/* ── 2. CÓMO FUNCIONA ────────────────────
   Fondo: blanco con patrón sutil de cruces
   en verde corporativo a muy baja opacidad.
   ──────────────────────────────────────── */
<!-- ══════════════════════════════════════════════════════════════
     BLOQUE 2: CSS
     Reemplazar el .bg-como-funciona existente en style.css
     y agregar todo lo de abajo.
     ══════════════════════════════════════════════════════════════ -->

<style>
/* ── 2. CÓMO FUNCIONA — Fondo con patrón más visible ──
   Cruces en verde corporativo con mayor opacidad (0.04 → 0.08)
   + un radial gradient sutil para dar profundidad central.
   ────────────────────────────────────────────────────────── */
.bg-como-funciona {
    background-color: #f8faf9;
    background-image:
        /* Radial verde sutil: foco de atención central */
        radial-gradient(
            ellipse 80% 60% at 50% 40%,
            rgba(27, 70, 35, 0.04) 0%,
            transparent 70%
        ),
        /* Patrón de cruces — opacidad 2x la original */
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231b4623' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


/* ── PASO CARD — Contenedor de cada paso ── */
.paso-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 24px 20px 20px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.paso-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 30px rgba(27, 70, 35, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(27, 70, 35, 0.08);
    transform: translateY(-4px);
}


/* ── NÚMEROS DE PASO — Cada uno con su color ── */
.paso-numero {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Colores por paso (replica el diseño de referencia) */
.paso-numero--1 {
    background: rgba(27, 70, 35, 0.10);
    color: #1B4623;
}
.paso-numero--2 {
    background: rgba(255, 215, 48, 0.18);
    color: #1B4623;
}
.paso-numero--3 {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.paso-numero--4 {
    background: rgba(100, 116, 139, 0.12);
    color: #334155;
}


/* ── IMAGEN DEL PASO ── */
.paso-img-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, rgba(27,70,35,0.06), rgba(255,215,48,0.08));
}

.paso-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.paso-card:hover .paso-img {
    transform: scale(1.05);
}

/* Overlay sutil con badge */
.paso-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(11, 18, 32, 0.35) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 12px;
}

.paso-card:hover .paso-img-overlay {
    opacity: 1;
}

.paso-img-overlay__badge {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1B4623;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
}


/* ── ANIMACIÓN ESCALONADA — Scroll reveal ── */
.paso-card {
    opacity: 0;
    transform: translateY(32px);
}

.paso-card.is-visible {
    animation: pasoReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delay escalonado por paso */
.paso-card[data-paso="1"].is-visible { animation-delay: 0ms; }
.paso-card[data-paso="2"].is-visible { animation-delay: 120ms; }
.paso-card[data-paso="3"].is-visible { animation-delay: 240ms; }
.paso-card[data-paso="4"].is-visible { animation-delay: 360ms; }

@keyframes pasoReveal {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion: sin animación, visible inmediatamente */
@media (prefers-reduced-motion: reduce) {
    .paso-card {
        opacity: 1;
        transform: none;
    }
    .paso-card.is-visible {
        animation: none;
    }
}


/* ── MOBILE: En 1 columna, más compacto ── */
@media (max-width: 639px) {
    .paso-card {
        padding: 16px 16px 14px;
    }
    .paso-img-wrapper {
        aspect-ratio: 16 / 10;
    }
}


/* ── POR QUÉ ELEGIRNOS (refinado) ───────────────────────────── */
.bg-value-prop{
  position: relative;
  background-color: #F8FAFC;
  background-image:
    /* profundidad suave arriba → abajo */
    linear-gradient(
      180deg,
      rgba(248,250,252,0.85) 0%,
      rgba(241,245,249,0.90) 50%,
      rgba(248,250,252,0.85) 100%
    ),
    /* brillo radial muy sutil (look fintech) */
    radial-gradient(
      ellipse 80% 60% at 50% 20%,
      rgba(255,215,48,0.10) 0%,
      transparent 60%
    ),
    url('../img/bg-value.webp'); /* ajusta ruta */
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

/* opcional: “grain” ultra sutil para que no se vea plano */
.bg-value-prop::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image: radial-gradient(rgba(15,23,42,0.035) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .22;
}

/* asegura que el contenido quede arriba del overlay */
.bg-value-prop > *{
  position: relative;
  z-index: 1;
}


/* ── 4. SUCURSALES ───────────────────────
   Fondo: textura de mapa/ciudad con overlay
   blanco. Da contexto geográfico sutil.
   ──────────────────────────────────────── */
.bg-sucursales{
  background-image:
    linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.82)),
    url('img/bg-sucursales.webp');
  background-repeat: repeat;
  background-size: 140px 140px;
}


/* ── 5. BLOG / CONSEJOS ──────────────────
   Fondo: degradado suave con patrón de
   puntos en dorado a opacidad mínima.
   ──────────────────────────────────────── */
.bg-blog {
  background-color: #F8FAFC;
  background-image:
    /* profundidad suave arriba → abajo */
    linear-gradient(
      180deg,
      rgba(248,250,252,0.78) 0%,
      rgba(241,245,249,0.92) 65%,
      rgba(248,250,252,0.98) 100%
    ),
    /* brillo radial muy sutil (look fintech) */
    radial-gradient(
      ellipse 80% 60% at 50% 20%,
      rgba(255,215,48,0.10) 0%,
      transparent 60%
    ),
    url('../img/bg-blog.webp'); /* ajusta ruta */
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

/* ── 6. FAQ ──────────────────────────────
   Fondo: blanco con líneas diagonales muy
   sutiles para diferenciar de secciones
   adyacentes sin competir con el contenido.
   ──────────────────────────────────────── */
.bg-faq{
  background-image:
    linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.90)),
    url('img/bg-faq.webp');
  background-repeat: repeat;
  background-size: 160px 160px;
}


/* ── 7. FOOTER ───────────────────────────
   Fondo: imagen oscura de ciudad/oficina
   con overlay para mantener el texto
   legible sobre fondo casi negro.
   ──────────────────────────────────────── */
.bg-footer {
    background-color: #0F172A;
    background-image:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.97) 0%,
            rgba(15, 23, 42, 0.95) 100%
        ),
        url('img/bg-footer.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* =========================================
   FOOTER LOGO
   ========================================= */
.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(1) invert(0); /* Invierte a blanco si el logo es oscuro */
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 1;
}


/* Si tu logo YA es blanco o tiene fondo
   transparente con texto claro, quita el
   filtro con esta clase alternativa: */
.footer-logo--no-invert {
    filter: none;
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
.form-group { margin-bottom: 0.5rem; }
.input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-select, .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease-in-out;
    appearance: none;
}

.form-select:hover, .form-input:hover {
    border-color: #CBD5E1;
    background-color: #fff;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 70, 35, 0.14);
    background-color: #fff;
}

.form-select:disabled {
    background-color: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
}

/* Validation states */
.form-select.input-success, .form-input.input-success {
    border-color: var(--success);
    background-color: #F0FDF4;
}

.form-select.input-error, .form-input.input-error {
    border-color: var(--error);
    background-color: #FEF2F2;
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* =========================================
   RADIO PILLS
   ========================================= */
.radio-pill {
    cursor: pointer;
    position: relative;
}

.radio-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem;
    background-color: #F1F5F9;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.radio-pill input:checked + span {
    background-color: rgba(27, 70, 35, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.radio-pill:hover span {
    background-color: #E2E8F0;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary, .btn-accent, .btn-secondary {
    cursor: pointer;
    border: none;
    text-decoration: none;
    user-select: none;
    will-change: transform;
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(27, 70, 35, 0.22);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(27, 70, 35, 0.28);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-accent {
    background: var(--accent);
    color: #0B1220;
    font-weight: 700;
    padding: 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(255, 215, 48, 0.25);
}

.btn-accent:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: opacity 0.2s;
}

.btn-whatsapp:hover {
    opacity: 0.9;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up-animation {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bounceShort {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.animate-bounce-short {
    animation: bounceShort 2s infinite;
}

.hidden { display: none !important; }

/* =========================================
   BRANCHES — polish (safe tweaks)
   ========================================= */

/* Grid más consistente y respirado */
.branch-grid{
  display:grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 16px; /* +2px */
}
@media (min-width: 640px){
  .branch-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
}
@media (min-width: 1024px){
  .branch-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
}

/* Card estilo "icon-first + CTA" */
.branch-card{
  position: relative;
  display:flex;
  gap: 14px;
  padding: 18px; /* +2px */
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 12px); /* +2px */
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  min-height: 172px; /* leve, ayuda a que se vean más parejitas */
}
.branch-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(27,70,35,.22);
}

/* Icon badge más “clean” */
.branch-card__media{
  flex: 0 0 auto;
  width: 56px;   /* +4px */
  height: 56px;  /* +4px */
  border-radius: 18px; /* +2px */
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(255, 215, 48, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(27,70,35,0.10),
    0 10px 20px rgba(15,23,42,0.05);
}
.branch-card:hover .branch-card__media{
  background: rgba(255, 215, 48, 0.26);
}

/* Icono: controla tamaño desde CSS (evita choque con w-12/h-12 en HTML) */
.branch-card__media i{
  width: 22px;
  height: 22px;
  opacity: 0.95;
  color: rgba(27,70,35,0.85); /* mantiene verde, solo más legible */
}

/* Body: mejor jerarquía y CTA abajo */
.branch-card__body{
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
  display:flex;              /* clave */
  flex-direction: column;    /* clave */
}
.branch-card__title{
  margin: 0 0 6px; /* +2px */
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  line-height: 1.2;
}
.branch-card__meta{
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.885rem;

  /* truncado suave */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Acciones: CTA siempre abajo (consistencia visual) */
.branch-card__actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: auto;   /* clave */
  padding-top: 12px;  /* separa CTA de la dirección */
}

/* Links dentro de acciones */
.branch-card__actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;        /* + */
  border-radius: 14px;       /* + */
  font-weight: 850;
  letter-spacing: -0.01em;
  font-size: 0.9rem;
  text-decoration:none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

/* CTA principal */
.branch-card__actions .btn-map{
  color: var(--text-main); /* antes var(--text) */
  border: 1px solid rgba(27,70,35,0.20);
  box-shadow:
    0 10px 22px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,0.55);
}
.branch-card__actions .btn-map:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.62)),
    rgba(27,70,35,0.10);
  border-color: rgba(27,70,35,0.34);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,0.60);
}
.branch-card__actions .btn-map:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,215,48,0.28),
    0 14px 30px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,0.60);
}

/* Chip (solo si lo usas en HTML) */
.branch-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  border: 1px solid rgba(27,70,35,0.14);
  background: rgba(27,70,35,0.04);
  color: rgba(15,23,42,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70);
}
.branch-chip::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,215,48,0.85);
  box-shadow: 0 0 0 2px rgba(255,215,48,0.18);
}
.branch-card__actions a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 6px);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.blog-card__body {
    padding: 16px;
}

.blog-card__title {
    margin: 0 0 6px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
}

.blog-card__excerpt {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.875rem;
}

.blog-card__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   STICKY WHATSAPP
   ========================================= */
.wa-sticky {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-sticky__label {
    display: none;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: var(--shadow-soft);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .wa-sticky__label { display: block; }
}

/* =========================================
   DETAILS/SUMMARY
   ========================================= */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   MOBILE ADJUSTMENTS
   Reduce espacio hero→cotizador en móvil
   para que el formulario se vea más arriba
   sin necesidad de hacer scroll excesivo.
   ========================================= */
@media (max-width: 640px) {
    .font-header { letter-spacing: -0.01em; }
    #form { padding: 1.25rem; }
    .btn-primary { padding: 0.875rem; }

    /* ── Hero móvil: texto + cotizador más juntos ── */
    .hero-section-mobile {
        padding-top: 5rem;   /* antes 6rem (pt-24) — header 4rem + 1rem respiro */
        padding-bottom: 2rem; /* antes 3rem (pb-12) */
    }

    /* Reduce margen entre texto marketing y cotizador */
    .hero-text-col {
        margin-bottom: 0.75rem; /* antes 1.5rem (mb-6) */
    }

    /* H1 más compacto en móvil */
    .hero-text-col h1 {
        font-size: 1.875rem; /* ~text-3xl en vez de text-4xl */
        margin-bottom: 1rem;
    }

    /* Párrafo descriptivo más compacto */
    .hero-text-col p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 380px) {
    /* Pantallas muy pequeñas (SE, etc) */
    .hero-section-mobile {
        padding-top: 4.5rem;
        padding-bottom: 1.5rem;
    }

    .hero-text-col h1 {
        font-size: 1.625rem;
    }
}
/* =========================================
   BLOG TILE BACKGROUND (Single Post)
   ========================================= */
.bg-blog-tile {
    background-color: #F8FAFC; /* base */
    background-image:
        linear-gradient(
            rgba(248,250,252,0.92),
            rgba(248,250,252,0.92)
        ),
        url('img/bg-sucursales.webp'); /* tu imagen tile */
        
    background-repeat: repeat;
    background-size: 140px 140px; /* controla tamaño del patrón */
    background-position: center;
}
/* =========================================
   MINI-LEGAL CARDS (Requisitos + Modalidades)
   ========================================= */

.legal-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.legal-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(27,70,35,.20);
}

.legal-card__head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin-bottom: 12px;
}

.legal-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(27, 70, 35, 0.10);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(27,70,35,0.08);
  flex: 0 0 auto;
}

.legal-icon--accent{
  background: rgba(255, 215, 48, 0.22);
  color: var(--primary);
}

.legal-list{
  margin: 0;
  padding-left: 18px;
  color: var(--fc-slate-700);
  line-height: 1.55;
  font-size: 0.95rem;
}

.legal-list li{
  margin: 8px 0;
}

.legal-note{
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legal-actions{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 10px;
}