/* =================================================
   1. VARIABLES Y CONFIGURACIÓN BASE
================================================= */
:root {
    --dark-bg: #111827;
    --light-text: #f9fafb;
    --accent: #ffd166; /* Amarillo suave */
    --gray-text: #9ca3af;
    --hover-blue: #38bdf8;
    --suneox-dark: #212529; /* Negro corporativo */
    --suneox-yellow: #ffc107; /* Amarillo corporativo intenso */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #374151;
    overflow-x: hidden; /* Evita scroll horizontal */
    text-align: justify;
    line-height: 1.6;
}

a { text-decoration: none !important; }

/* =================================================
   2. CABECERA, NAVEGACIÓN Y LOGO
================================================= */
.header-top { position: relative; z-index: 2000 !important; }

/* Logo SuneoX */
.navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}
.navbar-brand:hover img { transform: scale(1.05); }

/* Navegación Principal */
.main-nav { background-color: var(--dark-bg) !important; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.main-nav .nav-link { color: rgba(255,255,255,0.8) !important; transition: color 0.3s ease; font-weight: 500; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--accent) !important; }

/* Menús Desplegables (Idiomas/Más) */
.dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 3000 !important;
}
.dropdown-item:hover { background-color: #f8f9fa; color: var(--suneox-yellow); }

/* Texto Slogan debajo del logo */
.slogan-text { font-size: 0.65rem; letter-spacing: 1px; color: #666; margin-left: 10px; }

.nav-list li a.active {
    color: #ffc107 !important;
    border-bottom: 2px solid #ffc107; /* Opcional: una rayita debajo para resaltar */
}

/* =================================================
   3. BUSCADOR Y FORMULARIOS (RECUPERADO)
================================================= */
/* Estilos para el input de búsqueda */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25); /* Resplandor amarillo */
    border-color: var(--suneox-yellow);
}

/* El resaltado cuando buscas algo */
.search-highlight {
    background-color: var(--suneox-yellow);
    color: #000;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* Botones del formulario */
.btn-outline-light:hover { color: var(--suneox-dark); background-color: var(--suneox-yellow); border-color: var(--suneox-yellow); }

/* =================================================
   4. CLASE MAESTRA HERO (ESTILO CINE - FIXED)
================================================= */
/* =================================================
   CLASE MAESTRA HERO - FORMATO PERFECTO (ADAPTABLE)
================================================= */
/* =================================================
   CLASE MAESTRA HERO - BANNER PANORÁMICO
================================================= */
.hero-section-universal {
    width: 100% !important;
    
    /* CAMBIO CLAVE: Altura fija exacta a tu recorte */
    height: 525px !important; 
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    
    background-size: cover !important; 
    /* Centrado total */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #1a1a1a !important; 
    
    color: #ffffff !important;
    text-align: center;
}

.hero-section-universal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 1;
}

.hero-section-universal .container { position: relative; z-index: 2; }
.hero-section-universal h1 { text-shadow: 2px 2px 15px rgba(0,0,0,0.9); }

/* AJUSTE PARA MÓVILES */
/* En el móvil 525px es demasiado alto, así que dejamos que se adapte */
@media (max-width: 768px) {
    .hero-section-universal {
        height: 50vh !important; /* Ocupa la mitad de la pantalla del móvil */
        min-height: 350px !important;
    }
}

/* Sombra para legibilidad */
.hero-section-universal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 1;
}

.hero-section-universal .container { position: relative; z-index: 2; }
.hero-section-universal h1 { text-shadow: 2px 2px 15px rgba(0,0,0,0.9); font-weight: 700; }

/* Estilos extra para Carrusel (si usas slider) */
.hero-slider-item { height: 55vh; min-height: 400px; position: relative; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { bottom: 30%; z-index: 10; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }

/* =================================================
   5. SISTEMA DE IMÁGENES ALMA NOVA (CORREGIDO)
================================================= */
.blog-container { max-width: 850px; margin: 0 auto; padding: 0 20px; }

/* TIPO A: Imágenes Técnicas - Responsividad Total */
.img-cms-full img, .img-cms-blog img, .img-cms-card img {
    max-width: 100% !important;
    width: 100% !important; /* Obliga a la imagen a ocupar el ancho del móvil */
    height: auto !important; /* Mantiene la proporción sin deformar */
    object-fit: contain !important; 
    flex-shrink: 0 !important;
    display: block !important; 
    transition: transform 0.5s ease;
}

/* Marcos para Tipo A - Flexibles */
.img-cms-full, .img-cms-blog, .img-cms-card {
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    background-color: #f8f9fa; 
    overflow: hidden; 
    width: 100% !important; 
    border: 1px solid #eee;
}

/* Ajuste de alturas: Auto para móvil, con límite para PC */
.img-cms-full { 
    height: auto !important; 
    min-height: 250px; 
    max-height: 550px !important; 
    margin-bottom: 3rem; 
}

.img-cms-blog { 
    height: auto !important; 
    min-height: 200px; 
    max-height: 480px !important; 
    margin: 2.5rem 0; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
}

.img-cms-card { 
    aspect-ratio: 1 / 1 !important; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
}

/* TIPO B: Imágenes Narrativas - Adaptables */
.img-cms-blog-resumen {
    width: 100% !important; 
    height: auto !important; 
    min-height: 300px;
    max-height: 450px !important;
    object-fit: cover !important; 
    object-position: center center !important;
    display: block; 
    border-radius: 20px;
}

/* TIPO C: Iconos Circulares */
.img-cms-card-sm {
    width: 120px !important; 
    height: 120px !important;
    margin: 0 auto 1.5rem !important; 
    aspect-ratio: 1/1 !important;
    overflow: hidden !important; 
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    border: 3px solid var(--suneox-yellow) !important;
}
.img-cms-card-sm img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
}

/* Efecto Zoom General */
.img-cms-blog:hover img, .img-cms-card:hover img { transform: scale(1.05); }

/* =================================================
   6. BOTONES Y UTILIDADES (RECUPERADO)
================================================= */
/* Botón Principal (Amarillo) */
.btn-warning {
    background-color: var(--suneox-yellow);
    border-color: var(--suneox-yellow);
    color: #212529;
    font-weight: 700;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Títulos de Sección */
.section-title { color: var(--dark-bg); font-weight: 700; margin-bottom: 1.5rem; }
.section-image:hover { transform: scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important; }
.highlight-box { border-left: 4px solid var(--accent) !important; background-color: #fff; padding: 20px; border-radius: 0 10px 10px 0; }

/* Animación Hover Lift */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

/* =================================================
   7. WALL OF FAME (TARJETAS)
================================================= */
#fame-container .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none; border-radius: 10px; overflow: hidden; height: 100%; background: #fff;
}
#fame-container .col:hover .card { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important; }
#fame-container .fame-img { width: 100%; height: 160px; object-fit: cover; filter: grayscale(20%); transition: filter 0.3s ease; }
#fame-container .col:hover .fame-img { filter: grayscale(0%); }
#fame-container .fame-review { background-color: #fdfaf3; border-left: 3px solid var(--suneox-yellow); padding: 8px; margin-top: 10px; }
#fame-container .stars { color: var(--suneox-yellow); font-size: 0.7rem; display: block; margin-bottom: 3px; }

/* =================================================
   8. FOOTER UNIFICADO
================================================= */
.footer { background-color: var(--suneox-dark) !important; color: #ffffff !important; border-top: 5px solid var(--suneox-yellow) !important; padding-top: 3rem; }
.footer-link { color: #ccc !important; text-decoration: none; font-size: 14px; margin-bottom: 10px; display: block; transition: 0.2s; }
.footer-link:hover { color: var(--suneox-yellow) !important; padding-left: 5px; }

/* Redes Sociales */
.social-link, .social-link i { color: #ffffff !important; transition: all 0.3s ease; display: inline-block; }
.social-link:hover .fa-youtube { color: #ff0000 !important; }
.social-link:hover .fa-instagram { color: #e1306c !important; }
.social-link:hover .fa-facebook { color: #1877f2 !important; }
.social-link:hover .fa-rss { color: #ee802f !important; }
.social-link:hover i { transform: translateY(-3px) scale(1.1); }

/* Newsletter */
.newsletter-footer-mini { display: block !important; opacity: 1 !important; visibility: visible !important; }
.newsletter-footer-mini input:focus { outline: none; border-color: var(--suneox-yellow) !important; }
.newsletter-footer-mini button:hover { background-color: var(--suneox-yellow) !important; color: var(--suneox-dark) !important; transform: scale(1.05); }
.footer-copy { border-color: #374151 !important; padding-top: 20px; margin-top: 20px; font-size: 0.8rem; }

/* =================================================
   9. RESPONSIVE (MÓVILES)
================================================= */
@media (max-width: 768px) {
    /* ... tus otros estilos ... */

    .img-cms-blog-resumen {
        height: 250px !important; /* Altura más razonable para móviles */
    }
    
    .img-cms-full, .img-cms-blog {
        height: auto !important; /* Liberamos la altura en móvil */
        max-height: 300px !important;
    }
}

/* Utilidad rápida para imágenes de Bootstrap cards */
.card-img-top { height: 250px; object-fit: cover; }

