/*
Theme Name: AS Norte Child
Theme URI: https://asnorte.com.ar
Description: Tema hijo para Asesores de Seguros del Norte
Author: Manu Dev
Template: blocksy
Version: 1.0.0
Text Domain: asnorte
*/

/* ===================================================
   VARIABLES
=================================================== */
:root {
  --azul-oscuro: #1E3A6E;
  --azul-medio: #2B5BA8;
  --azul-claro: #7BAFD4;
  --azul-palido: #D6E8F5;
  --azul-super-palido: #EEF5FB;
  --blanco: #FFFFFF;
  --gris-texto: #4A5568;
  --gris-claro: #F7F9FC;
  --texto-principal: #1A2B4A;
}

/* ===================================================
   RESET / BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--texto-principal);
  background: var(--blanco);
  overflow-x: hidden;
}

/* ===================================================
   NAV
=================================================== */
.asnorte-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43,91,168,0.1);
  padding: 0 4%; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.asnorte-nav .nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.asnorte-nav .nav-logo img { height: 38px; width: auto; object-fit: contain; }
.asnorte-nav .nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.asnorte-nav .nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--gris-texto); transition: color 0.2s; white-space: nowrap;
}
.asnorte-nav .nav-links a:hover { color: var(--azul-medio); }

/* Botón CTA del nav — alta especificidad para pisar estilos de WP */
.asnorte-nav .nav-links a.nav-cta,
.asnorte-nav .nav-links li a.nav-cta {
  color: white !important;
  background: var(--azul-medio) !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.asnorte-nav .nav-links a.nav-cta:hover,
.asnorte-nav .nav-links li a.nav-cta:hover {
  background: var(--azul-oscuro) !important;
  color: white !important;
}

/* ===================================================
   HERO
=================================================== */
.asnorte-hero {
  background: linear-gradient(145deg, #1E3A6E 0%, #1a3560 40%, #2B5BA8 100%);
  padding: 88px 4% 0;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.asnorte-hero .hero-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.asnorte-hero .hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  position: relative; z-index: 2; padding-bottom: 48px;
}
.asnorte-hero .hero-left { animation: fadeInUp 0.7s ease both; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)} }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: var(--azul-palido); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 20px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; background: #4ECDC4;
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.3} }

.asnorte-hero h1 {
  font-size: clamp(28px, 3.8vw, 50px); font-weight: 800;
  color: white; line-height: 1.1; margin-bottom: 16px; letter-spacing: -1px;
}
.asnorte-hero h1 span { color: var(--azul-claro); }
.asnorte-hero .hero-sub { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.65; max-width: 420px; }

/* Selector */
.hero-selector {
  background: white; border-radius: 16px; padding: 22px;
  animation: fadeInUp 0.7s 0.15s ease both; opacity: 0;
  position: relative; z-index: 3;
}
.selector-label { font-size: 11px; font-weight: 700; color: var(--azul-claro); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.selector-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: 10px; }
.selector-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 5px; border: 1.5px solid var(--azul-palido); border-radius: 10px;
  cursor: pointer; transition: all 0.2s; background: var(--azul-super-palido);
}
.selector-item:hover, .selector-item.active { border-color: var(--azul-medio); background: var(--azul-palido); transform: translateY(-2px); }
.selector-item svg { width: 22px; height: 22px; color: var(--azul-medio); }
.selector-item span { font-size: 10px; font-weight: 600; color: var(--azul-oscuro); text-align: center; line-height: 1.2; }
.selector-more { font-size: 12px; color: var(--azul-medio); font-weight: 600; text-align: center; cursor: pointer; padding: 4px 0 10px; }
.btn-cotizar {
  width: 100%; background: #1E3A6E; color: #ffffff;
  border: 2px solid #1E3A6E; border-radius: 10px; padding: 13px;
  font-size: 14px; font-weight: 700; font-family: 'Manrope', sans-serif;
  cursor: pointer; transition: background 0.22s, color 0.22s, transform 0.15s;
}
.btn-cotizar:hover { background: white; color: #1E3A6E; transform: translateY(-1px); }

/* Stats */
.stats-bar {
  background: rgba(0,0,0,0.15); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 4%; display: flex; justify-content: center; gap: 56px;
  position: relative; z-index: 2;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-number { font-size: 28px; font-weight: 800; color: white; letter-spacing: -1px; }
.stat-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); }

/* ===================================================
   SECCIONES GENERALES
=================================================== */
.asnorte-section { padding: 64px 4%; }
.section-eyebrow { font-size: 11px; font-weight: 700; color: var(--azul-medio); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(22px,3vw,36px); font-weight: 800; color: var(--azul-oscuro); line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-sub { font-size: 15px; color: var(--gris-texto); max-width: 500px; line-height: 1.7; margin-bottom: 40px; }

/* ===================================================
   CATEGORÍAS
=================================================== */
.categorias-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 13px; }
.categoria-card {
  background: var(--azul-super-palido); border: 1.5px solid var(--azul-palido);
  border-radius: 14px; padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
  text-decoration: none;
}
.categoria-card::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:3px; background:var(--azul-medio);
  transform:scaleX(0); transition:transform 0.25s; transform-origin:left;
}
.categoria-card:hover { transform:translateY(-6px); border-color:var(--azul-medio); box-shadow:0 12px 32px rgba(43,91,168,0.12); }
.categoria-card:hover::after { transform:scaleX(1); }
.cat-icon { width:46px; height:46px; background:var(--azul-palido); border-radius:12px; display:flex; align-items:center; justify-content:center; transition:background 0.25s; }
.categoria-card:hover .cat-icon { background:var(--azul-medio); }
.categoria-card:hover .cat-icon svg { color:white; }
.cat-icon svg { width:22px; height:22px; color:var(--azul-medio); transition:color 0.25s; }
.cat-name { font-size:12px; font-weight:700; color:var(--azul-oscuro); text-align:center; line-height:1.3; }
.cat-arrow { font-size:11px; color:var(--azul-claro); font-weight:600; opacity:0; transform:translateX(-4px); transition:all 0.2s; }
.categoria-card:hover .cat-arrow { opacity:1; transform:translateX(0); }
.cat-vermás-wrap { grid-column:1/-1; display:flex; justify-content:center; padding-top:8px; }
.btn-ver-mas {
  background: #2B5BA8; color: #ffffff; border: 2px solid #2B5BA8;
  border-radius: 100px; padding: 11px 28px; font-size: 13px; font-weight: 700;
  font-family: 'Manrope', sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ver-mas:hover { background: #1E3A6E; border-color: #1E3A6E; }

/* ===================================================
   CÓMO FUNCIONA
=================================================== */
.como-section { background: #0F2040; color: white; }
.como-section .section-title { color: white; }
.como-section .section-sub { color: rgba(255,255,255,0.6); }
.como-section .section-eyebrow { color: var(--azul-claro); }
.steps-container { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.step { display:flex; flex-direction:column; gap:14px; padding:26px 18px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:14px; transition:background 0.2s; }
.step:hover { background:rgba(255,255,255,0.08); }
.step-num { font-size:11px; font-weight:700; color:var(--azul-claro); letter-spacing:2px; }
.step-icon { width:40px; height:40px; background:rgba(123,175,212,0.15); border-radius:10px; display:flex; align-items:center; justify-content:center; }
.step-icon svg { width:20px; height:20px; color:var(--azul-claro); }
.step h3 { font-size:14px; font-weight:700; color:white; line-height:1.3; }
.step p { font-size:12px; color:rgba(255,255,255,0.55); line-height:1.65; }

/* ===================================================
   ASEGURADORAS CAROUSEL
=================================================== */
.aseguradoras-section { background: var(--gris-claro); text-align: center; }
.logos-carousel { display:flex; overflow:hidden; padding:8px 0; }
.logos-track { display:flex; gap:18px; animation:slide 22s linear infinite; white-space:nowrap; }
@keyframes slide { from{transform:translateX(0)}to{transform:translateX(-50%)} }
.logo-pill { background:white; border:1px solid var(--azul-palido); border-radius:10px; padding:12px 22px; font-size:13px; font-weight:700; color:var(--azul-oscuro); white-space:nowrap; flex-shrink:0; }

/* ===================================================
   PROMOCIONES
=================================================== */
.promos-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.promo-card { border:1.5px solid var(--azul-palido); border-radius:16px; overflow:hidden; transition:box-shadow 0.25s,transform 0.25s; cursor:pointer; }
.promo-card:hover { box-shadow:0 16px 40px rgba(43,91,168,0.12); transform:translateY(-4px); }
.promo-header { background:var(--azul-medio); padding:16px 20px; display:flex; align-items:center; justify-content:space-between; }
.promo-badge { background:rgba(255,255,255,0.2); color:white; font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; padding:4px 10px; border-radius:6px; }
.promo-descuento { font-size:32px; font-weight:800; color:white; line-height:1; }
.promo-descuento span { font-size:16px; font-weight:600; opacity:0.8; }
.promo-body { padding:16px 20px; background:var(--azul-super-palido); }
.promo-titulo { font-size:14px; font-weight:700; color:var(--azul-oscuro); margin-bottom:5px; }
.promo-desc { font-size:12px; color:var(--gris-texto); line-height:1.6; margin-bottom:10px; }
.promo-vigencia { font-size:10px; font-weight:600; color:var(--azul-claro); letter-spacing:1px; text-transform:uppercase; }

/* ===================================================
   CTA
=================================================== */
.cta-section {
  background: linear-gradient(135deg,#1E3A6E 0%,#1a3560 50%,#2B5BA8 100%);
  text-align: center; padding: 80px 4%;
  position: relative; overflow: hidden;
}
.cta-canvas { position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:1; }
.cta-content { position:relative; z-index:2; }
.cta-section h2 { font-size:clamp(24px,4vw,42px); font-weight:800; color:white; margin-bottom:14px; letter-spacing:-0.5px; }
.cta-section p { font-size:15px; color:rgba(255,255,255,0.65); margin-bottom:32px; }
.cta-buttons { display:flex; gap:14px; justify-content:center; }
.btn-cta-primary {
  background:white; color:#1E3A6E; border:2px solid white;
  border-radius:10px; padding:13px 26px; font-size:14px; font-weight:700;
  font-family:'Manrope',sans-serif; cursor:pointer; transition:background 0.2s,color 0.2s,transform 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-cta-primary:hover { background:transparent; color:white; transform:translateY(-2px); }
.btn-cta-secondary {
  background:rgba(255,255,255,0.12); color:white;
  border:1.5px solid rgba(255,255,255,0.25);
  border-radius:10px; padding:13px 26px; font-size:14px; font-weight:600;
  font-family:'Manrope',sans-serif; cursor:pointer; transition:background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-cta-secondary:hover { background:rgba(255,255,255,0.22); }

/* ===================================================
   FOOTER
=================================================== */
.asnorte-footer { background: #0F2040; padding: 44px 4% 24px; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-brand p { font-size:13px; line-height:1.7; margin-top:14px; color:rgba(255,255,255,0.4); max-width:260px; }
.footer-col h4 { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,0.3); margin-bottom:14px; }
.footer-col a { display:block; font-size:13px; color:rgba(255,255,255,0.5); text-decoration:none; margin-bottom:9px; transition:color 0.2s; }
.footer-col a:hover { color:var(--azul-claro); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.07);
  padding-top:18px;
  display:flex;
  justify-content:center;
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,0.35);
}

/* ===================================================
   SCROLL SUAVE + COMPENSAR NAV FIJO
=================================================== */
html {
  scroll-behavior: smooth;
}
section[id] {
  scroll-margin-top: 80px;
}

/* ===================================================
   ANIMACIONES SCROLL REVEAL
=================================================== */
.reveal { opacity:0; transform:translateY(20px); transition:opacity 0.6s ease,transform 0.6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }

/* ===================================================
   RESPONSIVE — TABLET (max 1024px)
=================================================== */
@media (max-width: 1024px) {

  .asnorte-hero .hero-inner {
    gap: 24px;
  }

  /* Categorías: 4 por fila */
  .categorias-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Steps: 2 por fila */
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2 columnas */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* ===================================================
   RESPONSIVE — MOBILE (max 768px)
=================================================== */
@media (max-width: 768px) {

  /* NAV: ocultar links del medio, mostrar solo CTA */
  .asnorte-nav {
    padding: 0 5%;
  }
  .asnorte-nav .nav-links {
    gap: 12px;
  }
  .asnorte-nav .nav-links li:not(:last-child) {
    display: none;
  }

  /* HERO: columna única — texto arriba, cotizador abajo */
  .asnorte-hero {
    padding: 80px 5% 0;
  }
  .asnorte-hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .asnorte-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  .asnorte-hero .hero-sub {
    max-width: 100%;
    font-size: 14px;
  }
  .hero-selector {
    padding: 18px;
  }
  .selector-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  /* STATS */
  .stats-bar {
    gap: 20px;
    padding: 16px 5%;
    flex-wrap: wrap;
  }
  .stat-number { font-size: 22px; }
  .stat-label { font-size: 10px; }

  /* SECCIONES */
  .asnorte-section {
    padding: 48px 5%;
  }

  /* CATEGORÍAS: 3 por fila */
  .categorias-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .categoria-card { padding: 16px 8px; }
  .cat-name { font-size: 11px; }

  /* STEPS: 2 por fila */
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .step { padding: 20px 14px; }

  /* PROMOCIONES: una por fila */
  .promos-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* CTA */
  .cta-section { padding: 60px 5%; }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* FOOTER: columna única */
  .asnorte-footer { padding: 36px 5% 20px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { font-size: 11px; }
}

/* ===================================================
   RESPONSIVE — MOBILE CHICO (max 480px)
=================================================== */
@media (max-width: 480px) {

  /* NAV */
  .asnorte-nav .nav-logo img { height: 30px; }
  .asnorte-nav .nav-links a.nav-cta,
  .asnorte-nav .nav-links li a.nav-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* HERO */
  .asnorte-hero h1 {
    font-size: clamp(24px, 7vw, 34px);
    letter-spacing: -0.5px;
  }

  /* STATS: grilla 2x2 */
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 5%;
  }
  .stat-item { align-items: center; }

  /* SELECTOR HERO: 2x2 */
  .selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CATEGORÍAS: 2 por fila */
  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* STEPS: 1 por fila */
  .steps-container {
    grid-template-columns: 1fr;
  }

  /* TÍTULOS */
  .section-title {
    font-size: clamp(20px, 6vw, 28px);
  }
}