/* Fuente Poppins para todo el sitio */
* {
    font-family: 'Poppins', sans-serif;
}

/* Estilos para tarjetas colapsables con Tailwind */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    opacity: 0;
}

.collapsible-content.expanded {
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.collapsible-trigger {
    transition: transform 0.3s ease-in-out;
}

.collapsible-trigger.rotated {
    transform: rotate(180deg);
}

/* Transición suave para el texto */
.bg-white.rounded-xl p {
    transition: all 0.3s ease-in-out;
}

/* Estilo para tarjetas expandidas */
.bg-white.rounded-xl.expanded {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #19009B;
    transform: scale(1.02);
}

/* Asegurar que las tarjetas tengan el comportamiento correcto */
.bg-white.rounded-xl {
    transition: all 0.3s ease-in-out;
}

.bg-custom-home {
    background-image: url('../img/bannerHome.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Estilos para el header dinámico */
#main-header {
    transition: all 0.3s ease-in-out;
}

/* Estado normal del header */
#main-header:not(.scrolled) {
    background: transparent;
}

/* Estado scrolled del header */
#main-header.scrolled {
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header-container {
    transition: all 0.3s ease-in-out;
}

/* Estado normal del contenedor */
#main-header:not(.scrolled) #header-container {
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Estado scrolled del contenedor - COMPLETAMENTE TRANSPARENTE */
#main-header.scrolled #header-container {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    
}

#header-content {
    transition: all 0.3s ease-in-out;
}

#logo-img {
    transition: all 0.3s ease-in-out;
}

/* Animaciones suaves para los elementos del header */
nav a {
    transition: all 0.3s ease-in-out;
}

#collaboration-section span {
    transition: all 0.3s ease-in-out;
}

/* Efecto de hover mejorado para los enlaces */
nav a:hover {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #main-header.scrolled #header-content {
        padding: 0.75rem 1rem;
    }
}

/* Asegurar que no haya superposición de estilos */
#main-header * {
    box-sizing: border-box;
}

/* Limpiar cualquier estilo conflictivo */
#main-header.scrolled #header-container {
    background: rgba(255, 255, 255) !important;
}

/* Padding top dinámico para el hero banner */
#hero-banner {
    transition: padding-top 0.3s ease-in-out;
}

/* Clases para padding dinámico */
.hero-padding-expanded {
    padding-top: 12rem; /* 192px para header expandido */
}

.hero-padding-compact {
    padding-top: 4rem; /* 64px para header compacto */
}

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .hero-padding-expanded {
        padding-top: 8rem; /* 128px en móviles */
    }
    
    .hero-padding-compact {
        padding-top: 3rem; /* 48px en móviles */
    }
}

@media (max-width: 480px) {
    .hero-padding-expanded {
        padding-top: 10rem; /* 96px en móviles pequeños */
    }
    
    .hero-padding-compact {
        padding-top: 2.5rem; /* 40px en móviles pequeños */
    }
}

@media (min-width: 1024px) {
    .hero-padding-expanded {
        padding-top: 14rem; /* 224px en desktop */
    }
    
        .hero-padding-compact {
            padding-top: 5rem; /* 80px en desktop */
        }
    }

    /* Estilos para el carrusel Women In */
    .womenInSwiper {
        padding: 20px 0 100px 0;
    }

    .womenInSwiper .swiper-wrapper {
        align-items: stretch;
    }

    .womenInSwiper .swiper-slide {
        height: 100%;
    }

    .womenInSwiper .swiper-slide > div {
        height: 100%;
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }

    .womenInSwiper .swiper-slide .text-center {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem 0;
    }

    .womenInSwiper .swiper-slide .mb-6 {
        flex-shrink: 0;
    }

    .womenInSwiper .swiper-slide p {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 120px;
        padding: 1rem;
    }

    /* Sobrescribir la altura de Swiper y forzar altura uniforme */
    .womenInSwiper .swiper-slide {
        height: auto !important;
        min-height: 300px !important;
    }

    .womenInSwiper .swiper-slide > div {
        height: auto !important;
        min-height: 300px !important;
    }

    /* Asegurar que todas las slides tengan la misma altura */
    .womenInSwiper .swiper-wrapper {
        display: flex;
        align-items: stretch;
    }

    .women-in-next,
    .women-in-prev {
        color: #330066;
        background: white;
        border: 2px solid #330066;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        margin-top: -25px;
        box-shadow: 0 4px 12px rgba(51, 0, 102, 0.2);
        transition: all 0.3s ease;
    }

    .women-in-next:hover,
    .women-in-prev:hover {
        background: #330066;
        color: white;
        transform: scale(1.1);
    }

    .women-in-next:after,
    .women-in-prev:after {
        font-size: 18px;
        font-weight: bold;
    }

    .women-in-next {
        right: 10px;
    }

    .women-in-prev {
        left: 10px;
    }

    /* Responsive para botones de navegación */
    @media (max-width: 768px) {
        .women-in-next,
        .women-in-prev {
            width: 40px;
            height: 40px;
            margin-top: -20px;
        }
        
        .women-in-next:after,
        .women-in-prev:after {
            font-size: 14px;
        }
    }