
@font-face {
    font-family: 'SOLEN';
    src: url('fonts/solen-regular.otf') format('opentype'),
         url('fonts/solen-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

@font-face {
    font-family: 'SOLEN';
    src: url('fonts/solen-bold.otf') format('opentype'),
         url('fonts/solen-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


:root {
    --font-main: 'SOLEN', sans-serif;
}

h1, h2, h3, .navbar-brand {
    font-family: var(--font-main);
}

/* Ajustes para el slider */
.myGallery {
    padding: 20px 0 50px 0;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 350px; /* Altura fija para uniformidad */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 75, 70, 0.85); /* Color #004B46 con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-main);
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.1); }

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 75, 70, 0.2);
}

.text-secondary-alba {
    color: var(--color-secondary);
    font-family: var(--font-main);
    font-weight: bold;
    font-size: 1.1rem;
}

.contact-info-list p, .contact-info-list a {
    color: var(--color-neutral);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info-list a:hover {
    color: var(--color-primary);
}

/* Estilos para el Footer */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-light);
    padding-left: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.4s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px);
    color: white;
}

.section-padding {
    padding: 80px 0 40px 0;
}


/* Ajuste quirúrgico para móviles muy estrechos (< 380px) */
@media (max-width: 400px) {
    
    .hero .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ajuste para dispositivos móviles (Responsive) */
@media (max-width: 768px) {
}

.hero .display-4 {
    font-size: 2.5rem; /* El slogan es más pequeño que el nombre ahora */
    opacity: 0.9;
}

/* Ajustes del Navbar */
.custom-navbar {
    background-color: var(--color-secondary);
    padding: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* El Logo: Clave del éxito */
.logo-main {
    height: 65px; /* Altura ideal para legibilidad sin saturar */
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1)); /* Da profundidad */
}

.logo-main:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}

/* Enlaces del Nav */
.navbar-nav .nav-link {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 10px 20px !important;
    color: #ffffff !important;
    position: relative;
}

/* Botón de Contacto en el Nav (UI Highlight) */
.btn-nav-contacto {
    background-color: var(--color-primary);
    border-radius: 4px;
    margin-left: 15px;
    transition: 0.3s !important;
}

.btn-nav-contacto:hover {
    background-color: var(--color-light) !important;
    color: var(--color-secondary) !important;
}

/* --- AJUSTES GLOBALES PARA EVITAR DESBORDAMIENTO --- */
html, body {
    overflow-x: hidden; /* Evita el scroll horizontal accidental */
    width: 100%;
}

.company-name-hero {
    font-family: 'SOLEN', sans-serif;
    /* clamp(min, viewport-width, max) */
    font-size: clamp(2rem, 10vw, 5.5rem); 
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    display: block;
    width: 100%;
    /* Evita que las letras se amontonen o se salgan */
    letter-spacing: normal; 
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    /* Fuerza a que el texto se ajuste al contenedor */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --- AJUSTES DEL HERO --- */
.hero .display-4 {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* Ajuste fluido del slogan */
    opacity: 0.9;
}

/* --- RESPONSIVE ESPECÍFICO --- */

/* Tablets y Móviles grandes */
@media (max-width: 991px) {
    .logo-main { 
        height: 50px; 
    }
    
    .navbar-nav {
        padding: 20px 0;
    }

    /* Centrar elementos en el menú desplegable */
    .navbar-nav .nav-link {
        text-align: center;
        padding: 15px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .btn-nav-contacto { 
        margin-left: 0; 
        margin-top: 10px; 
        width: 100%; /* Botón de contacto ancho completo en móvil */
    }
}

@media (max-width: 400px) {

    .hero .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Móviles pequeños (iPhone SE, etc) */
@media (max-width: 576px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        height: auto; /* Permitir que el hero crezca si hay mucho texto */
        min-height: 100vh;
    }

    .hero .display-4 {
        font-size: 1.4rem;
    }

    /* Ajustar los botones del hero para que no se encimen */
    .hero .d-flex {
        flex-direction: column; 
        width: 100%;
    }

    .hero .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Ajuste para que las fotos del slider no salgan deformadas */
#carouselServicios .carousel-item img {
    height: 60vh;
    min-height: 350px;
    max-height: 550px;
    background-color: #000; /* Fondo negro por si la imagen es estrecha */
}

.text-justify {
	text-align: justify;
}

/* ======================================================== */
/* AJUSTE CRUCIAL PARA EL SLIDER DE DETALLES (EVITA ZOOM)   */
/* ======================================================== */

/* 1. Forzamos una altura fija y controlada al contenedor de Swiper en detalles */
.projectDetailGallery {
    height: 450px; /* Altura ideal fija para que Swiper no recalcule infinitamente */
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a1a1a; /* Fondo oscuro elegante por si la foto tarda en cargar */
}

/* 2. Control total de las imágenes dentro de este slider específico */
.projectDetailGallery .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Mantiene la proporción sin estirar */
    
    /* Anulamos drásticamente cualquier herencia de animación/zoom del home */
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Ajuste responsive para pantallas móviles (para que el slider no sea tan alto) */
@media (max-width: 768px) {
    .projectDetailGallery {
        height: 300px; /* Reducimos la altura en celulares */
    }
}

/* Color de fondo sutil para la sección completa */
.bg-light-alba {
    background-color: #f8f9fa;
}

/* --- ESTILOS DE MISIÓN Y VISIÓN (Tarjetas Estratégicas) --- */
.strategic-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategic-card h3 {
    font-family: var(--font-main);
    color: var(--color-secondary);
}

/* Contenedor circular flotante para los iconos de Misión y Visión */
.mvv-icon-box {
    width: 65px;
    height: 65px;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(0, 75, 70, 0.2);
}

/* Asignamos tus colores dinámicamente */
.bg-primary-alba { background-color: var(--color-primary) !important; }
.bg-secondary-alba { background-color: var(--color-secondary) !important; }

/* --- ESTILOS DE LA REJILLA DE VALORES --- */
.value-card {
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-top: 3px solid transparent !important; /* Preparado para el hover */
}

.value-card h4 {
    font-family: var(--font-main);
    color: var(--color-secondary);
}

.value-icon {
    font-size: 2rem;
    color: var(--color-primary); /* O el color que tengas mapeado */
}

/* --- EFECTOS HOVER (UI Interactiva) --- */
.strategic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 75, 70, 0.08) !important;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
    border-top: 3px solid var(--color-primary) !important; /* Ilumina la parte superior al pasar el mouse */
}

/* Espaciado de letras para títulos secundarios */
.letter-spacing-2 {
    letter-spacing: 2px;
}


/* --- CONFIGURACIONES DE TARJETAS DE SERVICIO --- */
.service-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent !important;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 75, 70, 0.08) !important;
    border-top: 3px solid var(--color-primary) !important;
}

.service-icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 75, 70, 0.1); /* Opacidad ligera de color-primary */
    color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* --- MAPA DE PROCESO SECUENCIAL --- */
.process-number {
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 75, 70, 0.2);
    transition: background-color 0.3s ease;
}

.process-step:hover .process-number {
    background-color: var(--color-secondary);
}

/* Línea conectora entre los círculos de proceso en computadoras */
@media (min-width: 768px) {
    .process-row::before {
        content: '';
        position: absolute;
        top: 22px; /* Alineado exactamente a la mitad del círculo */
        left: 10%;
        width: 80%;
        height: 2px;
        background-color: #e0e0e0;
        z-index: 1;
    }
}

/* Clases auxiliares */
.letter-spacing-2 {
    letter-spacing: 2px;
}
.text-justify {
    text-align: justify;
}


/* --- ESTILOS COMPLEMENTARIOS DE DIFERENCIADORES Y CIERRE --- */
.diff-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

/* Animación sutil para el botón de llamado a la acción final */
.btn-cta-cierre {
    transition: all 0.4s ease !important;
}

.btn-cta-cierre:hover {
    background-color: #ffffff !important;
    color: var(--color-primary) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

/* Clases de control adicionales */
.letter-spacing-2 {
    letter-spacing: 2px;
}
.z-2 {
    z-index: 2;
}
