/* Hero Section - Estilo Moderno y Minimalista */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 50px;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-icon {
    margin-bottom: 30px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.9;
    transition: all 0.5s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
}

.carousel-slide.active .service-icon {
    opacity: 1;
    transform: translateY(0);
}

.carousel-slide:not(.active) .service-icon {
    opacity: 0;
    transform: translateY(20px);
}

.carousel-content h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.2;
    transition: all 0.5s ease 0.1s;
}

.carousel-slide.active .carousel-content h2 {
    opacity: 1;
    transform: translateY(0);
}

.carousel-slide:not(.active) .carousel-content h2 {
    opacity: 0;
    transform: translateY(30px);
}

.carousel-content p {
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 300;
    transition: all 0.5s ease 0.2s;
}

.carousel-slide.active .carousel-content p {
    opacity: 1;
    transform: translateY(0);
}

.carousel-slide:not(.active) .carousel-content p {
    opacity: 0;
    transform: translateY(30px);
}

.carousel-content .btn {
    transition: all 0.5s ease 0.3s;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.carousel-content .btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.carousel-slide.active .carousel-content .btn {
    opacity: 1;
    transform: translateY(0);
}

.carousel-slide:not(.active) .carousel-content .btn {
    opacity: 0;
    transform: translateY(30px);
}

.carousel-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    transition: opacity 1s ease;
}

.carousel-slide.active .carousel-image {
    opacity: 0.15;
}

.image-placeholder {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-align: center;
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

/* Mostrar placeholder si la imagen no carga */
.carousel-image:not([style*="background-image"]),
.carousel-image[style*="background-image: url('../images/hero/"]:not([style*=".jpg"]):not([style*=".png"]):not([style*=".jpeg"]) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.carousel-image:not([style*="background-image"]) .image-placeholder,
.carousel-image[style*="background-image: url('../images/hero/"]:not([style*=".jpg"]):not([style*=".png"]):not([style*=".jpeg"]) .image-placeholder {
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
    padding: 0 20px;
}

.carousel-controls button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    padding: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 4;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator.active {
    background-color: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Hero Responsive */
@media (max-width: 1200px) {
    .carousel-content h2 {
        font-size: 3rem;
    }
    
    .service-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 992px) {
    .carousel-content {
        padding: 0 30px;
    }
    
    .carousel-content h2 {
        font-size: 2.5rem;
    }
    
    .carousel-content p {
        font-size: 1.1rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .carousel-image {
        width: 100%;
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 90vh;
    }
    
    .carousel-content h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .carousel-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .carousel-content .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .carousel-controls button {
        width: 50px;
        height: 50px;
        padding: 15px;
    }
    
    .carousel-indicators {
        bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 85vh;
    }
    
    .carousel-content h2 {
        font-size: 1.8rem;
    }
    
    .carousel-content p {
        font-size: 0.95rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-controls button {
        width: 45px;
        height: 45px;
        padding: 12px;
        font-size: 1.2rem;
    }
}

/* Animaciones suaves para el texto */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slide.active .carousel-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.carousel-slide.active .service-icon {
    animation-delay: 0.1s;
}

.carousel-slide.active .carousel-content h2 {
    animation-delay: 0.2s;
}

.carousel-slide.active .carousel-content p {
    animation-delay: 0.3s;
}

.carousel-slide.active .carousel-content .btn {
    animation-delay: 0.4s;
}