/* =========================================
   DEFINICIÓN DE VARIABLES DE COLOR (PALETA)
   Extraídas de las imágenes suministradas
========================================= */
:root {
    /* Verde Principal (Logo y fondos vibrantes) */
    --cosmo-primary: #4CAF50;
    /* Verde Lima (Olas y acentos claros) */
    --cosmo-light: #8BC34A;
    /* Verde Oscuro/Azulado (Cola del colibrí, para la industria) */
    --cosmo-teal-dark: #00695C;
    /* Naranja Acento (Hojas de la imagen 1) */
    --cosmo-accent: #FF5722;
    /* Gris oscuro para textos */
    --text-dark: #333333;
}

/* =========================================
   ESTILOS GENERALES
========================================= */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    /* Evita scroll horizontal indeseado */
}

/* Ajuste para que el contenido no quede oculto tras la navbar fija */
.header-spacing-top {
    margin-top: 76px;
    /* Ajusta según la altura real de tu navbar */
}

/* Utilidades de color personalizadas */
.text-cosmo-primary {
    color: var(--cosmo-primary) !important;
}

.text-cosmo-dark {
    color: var(--cosmo-teal-dark) !important;
}

.text-cosmo-accent {
    color: var(--cosmo-accent) !important;
}

.btn-outline-cosmo-primary {
    color: var(--cosmo-primary);
    border-color: var(--cosmo-primary);
}

.btn-outline-cosmo-primary:hover {
    background-color: var(--cosmo-primary);
    color: white;
}

.btn-cosmo-primary {
    background-color: var(--cosmo-primary);
    border: 2px solid var(--cosmo-primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-cosmo-primary:hover {
    background-color: transparent;
    color: var(--cosmo-primary);
    border-color: var(--cosmo-primary);
}

/* =========================================
   SECCIÓN DE BIENVENIDA
========================================= */
.main-message-img {
    max-height: 500px;
    object-fit: cover;
    /* Asegura que la imagen se vea bien sin deformarse */
    width: 100%;
    border-bottom: 5px solid var(--cosmo-light);
}

/* =========================================
   SECCIÓN DUAL (HOGAR VS INDUSTRIA)
========================================= */
/* Altura mínima para que las cajas se vean imponentes en desktop */
.split-box {
    min-height: 600px;
}

/* Fondo para el área de HOGAR (Verde orgánico, extraído del fondo general) */
.bg-cosmo-hogar {
    background: linear-gradient(135deg, var(--cosmo-primary) 0%, var(--cosmo-light) 100%);
}

/* Fondo para el área de INDUSTRIA (Verde técnico más oscuro, extraído del colibrí) */
.bg-cosmo-industria {
    background: linear-gradient(135deg, var(--cosmo-teal-dark) 0%, #004d40 100%);
    /* Un toque sutil de "petróleo" en el color */
}

/* Animación suave para el colibrí */
.colibri-float {
    animation: float 3s ease-in-out infinite;
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .split-box {
        min-height: auto;
        /* En móviles la altura es automática */
        padding: 3rem 1.5rem !important;
    }

    .split-content.text-md-end {
        text-align: left !important;
        /* En móvil alineamos todo a la izquierda */
    }

    .header-spacing-top {
        margin-top: 60px;
        /* Navbar suele ser más pequeña en móvil */
    }
}

.tech-card {
    border: none;
    border-top: 4px solid var(--cosmo-teal-dark);
    transition: transform 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
}

/* Zoom effect for product images */
.tech-card .col-md-4 {
    overflow: hidden;
    /* Clips the image when it scales */
}

.tech-card img {
    transition: transform 0.5s ease;
    /* Smooth zoom transition */
}

.tech-card:hover img {
    transform: scale(1.1);
    /* Zoom level */
}

.nav-pills .nav-link {
    color: var(--cosmo-teal-dark);
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: var(--cosmo-teal-dark);
}

.bg-cosmo-industria {
    background-color: var(--cosmo-teal-dark) !important;
}

#cookieConsent {
    background-color: rgba(20, 20, 20, 0.8);
    min-height: 40px;
    font-size: 14px;
    color: white;
    line-height: 20px;
    padding: 10px 20px;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    z-index: 9999;
    display: none;
}

.cookieConsentContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookieTitle a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.cookieDesc p {
    margin: 0;
    padding: 0;
}

.cookieButton a {
    color: #000000 !important;
    background-color: white;
    border-radius: 5px;
    padding: 5px 10px;
    font-weight: bold;
    text-decoration: none;
}

.cookieButton a:hover {
    cursor: pointer;
    background-color: #f4f4f4;
}

/* Estilos para el carrusel de productos */
.carousel-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.carousel-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.carousel-caption-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 105, 92, 0.9); /* Verde corporativo con transparencia */
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 5px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
}

.carousel-img-wrapper:hover .carousel-caption-hover {
    transform: translateY(0);
}

.team-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border: 3px solid var(--cosmo-light);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-img:hover {
    transform: scale(1.05);
    border-color: var(--cosmo-primary);
}

.cursor-zoom {
    cursor: zoom-in;
}

.img-shelf-display {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .img-shelf-display {
        height: 550px;
    }
}

.img-infra {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-infra:hover {
    transform: scale(1.05);
}