/* =========================================================
   1. IMPORTACIÓN DE FUENTES (Siempre en las primeras líneas)
   ========================================================= */
/* A) Montserrat (Tipografía Secundaria desde Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* B) Cormorant Garamond (Tipografía Principal desde tus archivos locales) */
@import url('fonts.css');

/* =========================================================
   2. VARIABLES Y REGLAS DE MARCA
   ========================================================= */
:root {
    --navy: #0E1D3A; /* ANTES #0A2540  ahora deepNavy #0E1D3A*/
    --gold: #D4AA6A; /* ANTES #D4AF37 ahora mutedGold #D4AA6A*/
    --light-gray: #F8F9FA;
    --dark-text: #333333;
    
    /* Variables Tipográficas del Sistema Visual */
    --font-principal: 'Cormorant Garamond', Georgia, serif;
    --font-secundaria: 'Montserrat', sans-serif;
}

/* --- CUERPO DE PÁGINA (Body Copy & Captions) --- */
/* Según el manual: Montserrat Regular/Medium para todo el texto de lectura */
body, span, p, li, a, input, button, label { 
    font-family: var(--font-secundaria); 
}

/* Títulos principales con la elegancia de Cormorant Garamond */
h1, h2, h3, .navbar-brand, .font-serif { 
    font-family: var(--font-principal); 
}

/* Excepción del Navbar: La marca/menú suele verse más limpia en Montserrat */
.nav-link, .btn {
    font-family: var(--font-secundaria);
}

/* =========================================================
   3. NAVBAR
   ========================================================= */
.navbar {
    background-color: var(--navy) !important;
    padding: 0.5rem 2rem !important;
    transition: all 0.3s ease;
}

.nav-link { 
    color: white !important; 
    font-weight: 600; 
    margin-right: 15px; 
}

.nav-link:hover { 
    color: var(--gold) !important; 
}

/* --- Estilos para el Logo Combinado --- */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px;
}

.logo-isotipo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.3));
}

.logo-nombre {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@media (max-width: 575px) {
    .logo-isotipo {
        height: 45px;
    }
}

/* =========================================================
   4. BOTONES
   ========================================================= */
.btn-gold {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.2s;
}

.btn-gold:hover { 
    background-color: #b8972f; 
    color: white; 
    transform: translateY(-3px);
}

.btn-navy {
    background-color: #0E1D3A !important; 
    border-color: #0E1D3A !important;
}

.btn-navy:hover {
    background-color: #081d33 !important;
}

/* =========================================================
   5. SECCIONES Y TARJETAS
   ========================================================= */
.hero-section {
    height: 90vh;
    background: linear-gradient(rgba(14, 29, 58, 0.7), rgba(14, 29, 58, 0.7)), 
                url('../img/backgrounds/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.icon-box {
    font-size: 2.5rem;
    color: #D4AA6A;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Patrón sutil de fondo tipo Grid (Estilo Terminal) */
.bg-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(14, 29, 58, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 29, 58, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

.hover-up {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-up:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(14, 29, 58, 0.05) !important;
}

/* =========================================================
   6. CONTACTO, UTILITY & FOOTER
   ========================================================= */
.bg-navy { background-color: var(--navy); }
.gold-text { color: var(--gold); }
.navy-text { color: var(--navy); }

footer { 
    background-color: var(--navy); 
    color: white; 
    padding: 60px 0 20px; 
}

.footer-link { 
    color: #ccc; 
    text-decoration: none; 
}

.footer-link:hover { color: var(--gold); }

/* Espaciados y clases de utilidad premium */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.fs-7 {
    font-size: 0.85rem;
}

/* Sombras e interacción de imágenes/libros */
.custom-book-shadow {
    filter: drop-shadow(15px 15px 25px rgba(14, 29, 58, 0.25));
    transition: transform 0.3s ease;
}

.custom-book-shadow:hover {
    transform: scale(1.02) rotate(-1deg);
}

.transition-fade {
    transition: opacity 0.15s ease-in-out;
}

.thumb-btn {
    border: 2px solid #e0e0e0;
    background: none;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
    opacity: 0.7;
}

.thumb-btn:hover {
    opacity: 1;
    border-color: #0E1D3A;
}

.active-thumb {
    opacity: 1;
    border-color: #D4AA6A !important;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.zoom-hover {
    cursor: zoom-in;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out, opacity 0.15s ease-in-out;
}

.zoom-hover:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

/* =========================================================
   7. RESPONSIVE & SCROLL
   ========================================================= */
html {
    scroll-padding-top: 85px;
    scroll-behavior: smooth;
}

.navbar-scrolled {
    background-color: rgba(14, 29, 58, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 991px) {
    .logo-header { height: 50px; }
    .hero-section { height: auto; padding: 100px 0; }
}

/* Estilos adicionales de microinteracciones */
.btn-link-premium {
    position: relative;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.btn-link-premium:hover {
    color: #0d3864 !important;
}

.transition-arrow {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-link-premium:hover .transition-arrow {
    transform: translateX(6px);
}

/* Estilo base para tus iconos personalizados */
.custom-icon {
  width: 48px;         /* Ajusta el ancho al tamaño deseado */
  height: auto;        /* Mantiene la proporción automáticamente */
  display: inline-block;
  vertical-align: middle;
}

/* Opcional: Si quieres que el icono cambie de tamaño según la pantalla */
@media (max-width: 768px) {
  .custom-icon {
    width: 36px;
  }
}

/*
    ATRACCION-SELECCION SECCION PASOS
*/


/* Contenedor del Timeline */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Línea vertical conectora */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 30px;
  width: 2px;
  background-color: #e2e8f0;
  z-index: 0;
}

/* Cada paso del proceso */
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Círculo con el número del paso */
.step-number {
  width: 60px;
  height: 60px;
  background-color: #fff;
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Tarjeta de contenido */
.step-card {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  flex-grow: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

.step-card h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Control del Icono SVG */
.custom-icon {
  width: 42px;
  height: auto;
  display: block;
}

/* Responsivo para móviles pequeños */
@media (max-width: 576px) {
  .timeline-container::before {
    left: 20px;
  }
  .step-number {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
  .timeline-step {
    gap: 1rem;
  }
}


/* --- Sección ¿Por qué elegirnos? --- */

/* Grid para las estadísticas numéricas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  text-align: center;
  padding-right: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-navy, #163961);
  line-height: 1.1;
  font-family: serif; /* Ajusta a la tipografía que usas en los números */
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
  margin-top: 0.3rem;
}

/* Lista de cualidades */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: var(--dark-text, #333333);
  line-height: 1.5;
}

/* Check / Viñeta personalizada con tu color dorado */
.check-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(211, 151, 55, 0.15); /* Fondo dorado suave */
  color: var(--primary-gold, #d39737);       /* Color de tu marca */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}




/* ==========================================
   2. CLASES DE UTILIDAD Y BOTONES
   ========================================== */
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }

.bg-navy { background-color: var(--navy) !important; }
.bg-gold { background-color: var(--gold) !important; }

/* Botón Principal (Navy) */
.btn-primary-custom {
  background-color: var(--navy);
  color: #ffffff;
  border: none;
  font-family: var(--font-secundaria);
  transition: all 0.3s ease;
}
.btn-primary-custom:hover {
  background-color: #081226;
  color: #ffffff;
}

/* Botón Delineado (Navy) */
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font-family: var(--font-secundaria);
  transition: all 0.3s ease;
}
.btn-outline-navy:hover {
  background-color: var(--navy);
  color: #ffffff;
}

/* Botón Dorado */
.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-family: var(--font-secundaria);
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background-color: #c29858;
  color: #ffffff;
}

/* ==========================================
   3. SECCIÓN: ¿POR QUÉ ELEGIRNOS? / CUALIDADES
   ========================================== */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.check-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(212, 170, 106, 0.15); /* Fondo del dorado suave */
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================
   4. SECCIÓN: TIMELINE (ETAPAS DEL PROCESO)
   ========================================== */
.step-number {
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step-card {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card h3 {
  color: var(--navy);
}

/* ==========================================
   5. BATERÍA DE RIESGO PSICOSOCIAL
   ========================================== */
.border-start-gold {
  border-left: 4px solid var(--gold);
}