/* CLASE HERO RESPONSIVE */
.hero {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    background-image: url("");
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
    background-color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 50px;
    padding-right: 50px;
    text-align: left;
    padding-top: 55px;

    /* Animación inicial */
    opacity: 0;
    transform: translateX(-50px);
    animation: heroFadeIn 1s forwards;
    animation-delay: 0.2s;
}

.hero-content {
    max-width: 600px;
    margin-left: 200px;

    /* Animación de aparición escalonada de elementos */
    opacity: 0;
    transform: translateX(-30px);
    animation: contentFadeIn 1s forwards;
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.hero-title {
    font-size: 58px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #ffffff;
    line-height: 1.2;
}

.hero-line {
    width: 50px;
    border: 2px solid #ffffff; 
    margin-bottom: 20px;
}

.hero-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #e2e8f0;
    line-height: 1.6;
}

.hero-bullet {
    font-size: 16px;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.hero-button {
    display: inline-block;
    background-color: #ffffff;
    color: #2d3748;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;

    /* Animación del botón */
    opacity: 0;
    transform: translateY(20px);
    animation: buttonFadeIn 0.8s forwards;
    animation-delay: 1s;
}

.hero-button:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Carousel de imágenes */
.hero-carousel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;

    /* Animación del carousel */
    opacity: 0;
    animation: carouselFadeIn 1s forwards;
    animation-delay: 1.2s;
}

.hero-carousel img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform 0.2s;
}

.hero-carousel img:hover {
    transform: scale(1.2);
    border-color: #e2e8f0;
}

/* Keyframes de animación */
@keyframes heroFadeIn {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes contentFadeIn {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes buttonFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes carouselFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


/* Tablets grandes y pantallas medianas (hasta 1200px) */
@media screen and (max-width: 1200px) {
    .hero-content {
        margin-left: 100px;
        max-width: 550px;
    }

    .hero-title {
        font-size: 48px;
    }
}

/* Tablets (hasta 992px) */
@media screen and (max-width: 992px) {
    .hero {
        height: 55vh;
        min-height: 450px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-content {
        margin-left: 50px;
        max-width: 500px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-text, .hero-bullet {
        font-size: 15px;
    }
}

/* Tablets pequeños (hasta 768px) */
@media screen and (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 400px;
        padding-left: 30px;
        padding-right: 30px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .hero-text, .hero-bullet {
        font-size: 14px;
    }

    .hero-line {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-carousel {
        bottom: 15px;
        gap: 8px;
    }

    .hero-carousel img {
        width: 25px;
        height: 25px;
    }
}

/* Móviles (hasta 576px) */
@media screen and (max-width: 576px) {
    .hero {
        height: auto;
        min-height: 500px;
        padding: 80px 15px 40px 15px;
        overflow-x: hidden;
    }

    .hero-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .hero-line {
        width: 40px;
        margin-bottom: 15px;
    }

    .hero-text {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.5;
        word-wrap: break-word;
    }

    .hero-bullet {
        font-size: 13px;
        margin-bottom: 20px;
        word-wrap: break-word;
    }

    .hero-button {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        text-align: center;
        max-width: 280px;
        display: block;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .hero-carousel {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 30px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .hero-carousel img {
        width: 22px;
        height: 22px;
    }
}

/* Móviles muy pequeños (hasta 375px) */
@media screen and (max-width: 375px) {
    .hero {
        padding: 70px 10px 30px 10px;
        min-height: 450px;
    }

    .hero-content {
        padding: 0 3px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 11px;
    }

    .hero-text, .hero-bullet {
        font-size: 12px;
        line-height: 1.5;
    }

    .hero-button {
        padding: 10px 15px;
        font-size: 12px;
        max-width: 250px;
    }
}

/* Landscape móviles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 20px 40px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .hero-text, .hero-bullet {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .hero-button {
        padding: 8px 18px;
        margin-top: 10px;
    }

    .hero-carousel {
        position: relative;
        margin-top: 20px;
    }
}