
@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 */
    }
}
