/* Hero Section - INICIO */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -70px;
    padding-top: 130px;
}

.hero-main-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-width-half-height {
    height: 50vh;
    width: 100vw;
}

.full-width-half-height .carousel-inner {
    height: 100%;
}

.full-width-half-height .carousel-item {
    height: 100%;
}

.full-width-half-height .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item {
    position: relative;
    overflow: hidden;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--bg-primary-color-hover),
        var(--bg-secondary-color-hover)
    );
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.carousel-subtitle {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInFromRight 1s ease-out 3s forwards;
    opacity: 0;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: fadeInCenter 1s ease-out forwards, slideToLeft 1s ease-out 2s forwards;
}

.hero-logo-wrapper {
    animation: fadeInCenter 1s ease-out forwards, slideToLeft 1s ease-out 2s forwards;
}

.hero-logo {
    width: 150px; 
    height: auto; 
    display: block; 
    margin: 20px auto; 
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCenter {
    from {
        opacity: 0;
        transform: scale(5) translateX(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes slideToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 1;
        transform: translateX(-150px);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(150px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
/* Media query para pantallas más grandes que 992px, pero más pequeñas que la configuración de escritorio "full" (ej. hasta 1200px o 1400px) */
@media (max-width: 1400px) {
    .hero-title {
        /* Reduce el tamaño de la fuente para que se vea mejor en el ancho de 1280px */
        font-size: 2.5rem; 
        /* Si estás usando animaciones con transform, a veces pueden causar problemas, 
           aunque no parece ser el caso aquí, ajusta los valores si es necesario. */
        animation: slideInFromRight 1s ease-out 3s forwards;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-logo-container {
        margin-bottom: 20px;
        order: -1;
        animation: fadeInCenter 1s ease-out forwards;
    }
    
    .hero-logo {
        max-width: 80%;
    }
    
    .hero-title {
        font-size: 2rem;
        animation: slideInFromRight 0.8s ease-out 2.8s forwards;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
        height: 50vh;
        margin-top: 0;
    }
    
    .hero-logo-container {
        animation: fadeInCenter 0.8s ease-out forwards;
    }
    
    .hero-title {
        font-size: 1.8rem;
        animation: slideInFromRight 0.8s ease-out 2.8s forwards;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        max-width: 60%;
    }
    
    .hero-logo-container {
        margin-bottom: 20px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
    }
    
    .full-width-half-height {
        height: 50vh;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 25px 0;
        height: 50vh;
    }
    
    .hero-logo-container {
        animation: fadeInCenter 0.8s ease-out forwards;
    }
    
    .hero-title {
        font-size: 1.6rem;
        animation: slideInFromRight 0.8s ease-out 2.8s forwards;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-logo {
        max-width: 50%;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-subtitle {
        font-size: 0.9rem;
    }
    
    .full-width-half-height {
        height: 50vh;
    }
}