/* HERO SECTION STYLES */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Carrusel mejorado */
#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#heroCarousel .carousel-item {
    height: 100vh;
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

#heroCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.8); /* Aumentamos el brillo para ver mejor las imágenes */
}

/* Contenido del hero con degradado más transparente */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(70, 64, 63, 0.5) 0%,     /* Más transparente */
        rgba(51, 48, 48, 0.4) 50%,   /* Más transparente */
        rgba(36, 32, 32, 0.3) 100%   /* Más transparente */
    );
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Sombra más pronunciada */
}

.text-accent {
    color: #f8f9fa !important;
    position: relative;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Botones */
.hero-buttons {
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #34495e, #2c3e50);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1); /* Fondo semitransparente */
}

.btn-outline-light:hover {
    background: white;
    color: #e74c3c !important;
    transform: translateY(-3px);
}

/* Características */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.feature-item i {
    font-size: 1.2rem;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-link {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    display: block;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.scroll-link:hover {
    color: #f8f9fa;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        justify-content: center;
        text-align: center;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    /* Ajuste del degradado para móviles */
    .hero-content {
        /*background: linear-gradient(135deg, 
            rgba(231, 76, 60, 0.6) 0%,
            rgba(192, 57, 43, 0.5) 100%
        );*/
        background: linear-gradient(135deg, 
            rgba(70, 64, 63, 0.5) 0%,     /* Más transparente */
            rgba(51, 48, 48, 0.4) 50%,   /* Más transparente */
            rgba(36, 32, 32, 0.3) 100%   /* Más transparente */
        );
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .scroll-link {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
/*Fin Seccion Hero*/


/* CTA SECTION */
.cta-section {
    padding: 100px 0;
    position: relative;
}

.cta-background {
    background-image: 
        linear-gradient(135deg, 
            rgba(231, 76, 60, 0.85) 0%,
            rgba(192, 57, 43, 0.80) 100%
        ),
        url('../img/webp/cta-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
}

.cta-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-description {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Botones CTA - ESTILOS UNIFICADOS */
.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0.5rem;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-buttons .btn-primary {
    background: linear-gradient(45deg, #2c3e50, #34495e);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #34495e, #2c3e50);
}

.cta-buttons .btn-success {
    background: linear-gradient(45deg, #25D366, #128C7E);
}

.cta-buttons .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(45deg, #128C7E, #25D366);
}

.cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.cta-features .feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-features .feature-item i {
    color: #f1c40f;
    font-size: 1.3rem;
}

.cta-with-image {
    background-image: 
        linear-gradient(135deg, 
            rgba(55, 58, 61, 0.9) 0%,
            rgba(38, 47, 56, 0.85) 100%
        ),
        url('../img/webp/cta-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 40px;
    /*border-radius: 15px;*/
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 18, 18, 0.1);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-with-image h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-with-image p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive para CTA */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-background {
        padding: 60px 0;
        background-attachment: scroll; /* Quitamos fixed en móviles */
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 1rem auto;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-with-image {
        padding: 40px 20px;
    }
    
    .cta-with-image h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
/*Fin CTA*/