/* ================= HERO BASE ================= */

.hero-css {
    height: 91.3vh;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

body.loaded .hero-css {
    opacity: 1;
    transform: scale(1);
}

/* ================= IMÁGENES ================= */

.hero-images {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-img.active {
    opacity: 1;
}

/* ================= OVERLAY ================= */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* ================= SLIDES TEXTO ================= */

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* ================= CONTENIDO ================= */

.hero-content {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 500px;
    text-align: right;
    color: #fff;
}

/* ================= TEXTO ================= */

.hero-css h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.2;

    /* 🔧 FIX SALTO DE LÍNEA */
    white-space: normal;       /* permite saltos */
    word-break: keep-all;      /* NO corta palabras */
    overflow-wrap: normal;     /* salto limpio */
}

.hero-css p {
    font-size: 1.2rem;
    margin-bottom: 10px;

    /* 🔧 FIX SALTO DE LÍNEA */
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* 🔹 Importante para animación letra por letra */
.hero-css h1 span,
.hero-css p span {
    white-space: pre;          /* mantiene espacios reales */
}

/* ================= BOTÓN ================= */

.hero-btn {
    padding: 12px 25px;
    background: #00A651;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
    background: #008f46;
    transform: translateY(-2px);
}

/* ================= ANIMACIÓN DE LETRAS ================= */

.hero-slide h1 span,
.hero-slide p span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.hero-slide.active h1 span,
.hero-slide.active p span {
    animation: heroLetter 0.45s ease forwards;
}

@keyframes heroLetter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= DOTS ================= */

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dots .dot.active {
    background: #00A651;
    transform: scale(1.3);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .hero-css {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
        margin-top: 420px;
    }

    .hero-css h1 {
        font-size: 1.2rem;
    }

    .hero-css p {
        font-size: 0.7rem;
    }
}
