/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  --primary:        #F2AA1F;
  --secondary:      #114358;
  --disabled:       #F1ECE7;
  --black:          #000000;

  /* Derivados armónicos */
  --primary-light:  #FDF3DC;
  --secondary-light:#E4EDF1;
  --secondary-mid:  #1A6080;
  --text:           #0D0D0D;
  --muted:          #5A6370;
  --bg:             #F8F5F1;
  --white:          #FFFFFF;
  --divider:        #D9CFC6;
}

body {
  font-family: 'inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}



/* ============================================
    Contador VARIABLES
   ============================================ */



/* ============================================
   SECCIÓN
   ============================================ */
.stats-section {
  /* width: 100%;
  max-width: 900px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.stats-title {

  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 40px;


  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ============================================
   GRID DE TARJETAS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================
   TARJETA
   ============================================ */
.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--gold-glow);
  border-color: var(--gold);
}

/* ============================================
   NÚMERO (el que se anima)
   ============================================ */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  /* Efecto de "brillo" cuando termina de contar */
  transition: text-shadow 0.4s ease;
}

/* Clase que JS agrega al terminar la cuenta */
.stat-number.done {
  text-shadow: 0 0 18px var(--gold-glow), 0 0 6px #f2aa1f;
}

/* ============================================
   ETIQUETA
   ============================================ */
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 680px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


.services-section {
  padding: 24px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Título principal ── */
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--secondary);
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Divisor con ícono */
.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.title-divider::before,
.title-divider::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.title-divider svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

/* ────────────────────────────────────────
   TARJETAS PRINCIPALES
──────────────────────────────────────── */
.main-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  border-radius: 16px;
  padding: 32px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(17, 67, 88, 0.13);
  border-color: var(--primary);
}

.card--slate { background: var(--secondary-light); }
.card--olive { background: var(--disabled); }
.card--peach { background: var(--primary-light); }

/* Círculo de ícono */
.card__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.icon--navy  { background: var(--secondary); }
.icon--olive { background: var(--secondary-mid); }
.icon--peach { background: var(--primary); }

.card__icon svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

.icon--peach svg {
  color: var(--secondary);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.card__desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  width: 100%;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn--navy  { background: var(--secondary); }
.btn--olive { background: var(--secondary-mid); }
.btn--peach { background: var(--primary); color: var(--secondary); }

/* ────────────────────────────────────────
   SERVICIOS COMPLEMENTARIOS — TÍTULO
──────────────────────────────────────── */
.sub-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sub-title-row::before,
.sub-title-row::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--divider);
  border-radius: 2px;
}

.sub-title-row h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--secondary);
  white-space: nowrap;

}

/* ────────────────────────────────────────
   TARJETAS COMPLEMENTARIAS
──────────────────────────────────────── */
.comp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.comp-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1.5px solid var(--disabled);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.comp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17, 67, 88, 0.1);
  border-color: var(--primary);
}

.comp-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-icon svg {
  width: 24px;
  height: 24px;
  color: var(--secondary);
}

.comp-card__body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.comp-card__body p {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

/* ────────────────────────────────────────
   BANNER INFERIOR
──────────────────────────────────────── */
.banner {
  background: var(--secondary);
  padding: 30px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}

.banner-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 24px;
}

.banner-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(242, 170, 31, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.banner-item p {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ────────────────────────────────────────
   RESPONSIVE — Mobile
──────────────────────────────────────── */
@media (max-width: 768px) {

  .section-title { font-size: 1.6rem; }

  .main-cards,
  .comp-cards { grid-template-columns: 1fr; }

  .banner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .banner-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 0;
    padding-bottom: 20px;
  }

  .sub-title-row h2 { font-size: 1.2rem; }
}



/* ── SERVICIOS ── */
/* .servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .servicios-grid { grid-template-columns: 1fr; }
}

.servicio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.servicio-card:hover { transform: translateY(-3px); }
.servicio-card h4 {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
}
.servicio-card p {
  font-size: 12px;
  color: var(--muted);
}
.servicio-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: .35;
}
.question {
  font-size: 2rem;
  font-family: var(--font-head);
  color: var(--muted);
} */

/* ── VALORES ── */
/* .valores-section {
  padding-top: .5rem;
  padding-bottom: 2rem;
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .valores-grid { grid-template-columns: 1fr; }
} */
/* 
.valor-item {
  background: #f0ede5;
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.valor-icon { font-size: 1.6rem; }
.valor-item p { font-size: 13px; line-height: 1.4; }
.valor-item strong { font-weight: 600; } */

/* ===========================
   AGENTES CAROUSEL
   =========================== */

.agentes-section {
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
}

.agentes-titulo {
  
  margin-bottom: 40px;
  color: var(--secondary);
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.agentes-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Botones de navegación */
.agentes-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  line-height: 1;
}

.agentes-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.agentes-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.agentes-btn svg {
  width: 20px;
  height: 20px;
  stroke: #444;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.agentes-btn-prev {
  left: -22px;
}

.agentes-btn-next {
  right: -22px;
}

/* Track deslizante */
.agentes-track-outer {
  overflow: hidden;
  border-radius: 12px;
}

.agentes-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Tarjeta de agente */
.agente-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ebebeb;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.agente-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.agente-card.featured {
  border-color: #4f7ef7;
  box-shadow: 0 0 0 2px #4f7ef733;
}

/* Imagen del agente — proporción 3:4 para ver cabeza + traje */
.agente-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 portrait */
  overflow: hidden;
  background: #f0f0f0;
}

.agente-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%; /* centra incluyendo hombros */
  display: block;
  transition: transform 0.35s;
}

.agente-card:hover .agente-img {
  transform: scale(1.04);
}

/* Overlay con badge */
.agente-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s;
}

.agente-card:hover .agente-overlay {
  opacity: 1;
}

.agente-badge {
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Info debajo de la foto */
.agente-info {
  padding: 14px 12px 16px;
}

.agente-nombre {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agente-rol {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* Indicadores (dots) */
.agentes-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.agentes-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.agentes-dot.active {
  background: #4f7ef7;
  width: 24px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .agente-card {
    flex: 0 0 calc(33.33% - 14px);
  }
}

@media (max-width: 600px) {
  .agente-card {
    flex: 0 0 calc(50% - 10px);
  }

  .agentes-btn-prev { left: -10px; }
  .agentes-btn-next { right: -10px; }
}


/* ===========================
   OVERLAY BADGE
=========================== */
.agente-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.agente-card:hover .agente-overlay {
  opacity: 1;
  transform: translateY(0);
}

.agente-badge {
  background: #ffffff;;
  backdrop-filter: blur(8px);
  color: #111;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.6);
}

/* ===========================
   INFO
=========================== */
.agente-info {
  padding: 0 4px;
}

.agente-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

.agente-rol {
  font-size: 0.8rem;
  color: #888;
  font-weight: 400;
  margin-top: 2px;
}

/* ===========================
   FEATURED CARD (centro)
=========================== */
.agente-card.featured .agente-img-wrapper {
  aspect-ratio: 3 / 4.4;
}

/* ===========================
   HOVER NAME PANEL (JS)
=========================== */
.agente-nombre-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  border-radius: 0 0 14px 14px;
}

.agente-nombre-hover.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.hover-rol {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 640px) {
  .agentes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .agente-card.featured .agente-img-wrapper {
    aspect-ratio: 3 / 4;
  }
}

/* ── ALIADOS ── */
.aliados-section { padding-top: 1rem; }
.aliados-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.aliado-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .2s;
  display: block;
}
.aliado-logo img:hover { filter: none; }


