/* ================================
   MÓDULO: HERO SECTION
   Estilos exclusivos del hero
   ================================ */

/* Reset específico del módulo */
.hero,
.hero * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container principal del hero */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('../images/hero1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax */
}

/* Overlay transparente sobre la imagen */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(166, 123, 91, 0.15) 0%,
        rgba(224, 120, 86, 0.1) 50%,
        rgba(145, 166, 138, 0.08) 100%
    );
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Content del hero */
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
}

/* Texto del hero */
.hero__text {
    max-width: 700px;
    margin: 0 auto;
}

/* Título principal */
.hero__title {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease-out;
}

/* Subtítulo */
.hero__subtitle {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Container de botones */
.hero__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Estilos base de botones */
.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero__btn svg {
    width: 18px;
    height: 18px;
}

/* Botón primario */
.hero__btn--primary {
    background: rgba(255, 255, 255, 0.95);
    color: #A67B5B;
    backdrop-filter: blur(10px);
}

.hero__btn--primary:hover {
    background: #fff;
    color: #3E2723;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Botón WhatsApp */
.hero__btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.hero__btn--whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ================================
   ANIMACIONES
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   RESPONSIVE: TABLET
   ================================ */
@media screen and (max-width: 968px) {
    .hero {
        min-height: 90vh;
        background-attachment: scroll; /* Mejor rendimiento en tablets */
    }

    .hero__title {
        font-size: 3.2rem;
    }

    .hero__subtitle {
        font-size: 1.3rem;
    }

    .hero__btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* ================================
   RESPONSIVE: MÓVIL
   ================================ */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        background-attachment: scroll;
    }

    .hero__content {
        padding: 0 1.5rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__btn {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        min-height: 100vh;
    }

    .hero__content {
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .hero__btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ================================
   EFECTO SCROLL REVEAL (Opcional)
   ================================ */
.hero__content.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.hero__content.reveal.active {
    opacity: 1;
    transform: translateY(0);
}