/* ============================
   HERO GENERAL
============================ */
.hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    justify-content: center; /* ✅ centra horizontal */
    align-items: center;

    padding-top: 170px;
    padding-bottom: 0px;

    overflow: hidden;
}

/* ✅ CONTENEDOR CENTRAL */
.hero-inner {
    position: relative;
    width: 100%;
    max-width: 90%; /* 🔥 controla el ancho total */
    margin: 0 auto;
}

/* ============================
   FONDO DEL HERO (SLIDER)
============================ */
.hero-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;

    overflow: hidden;
    border-radius: 20px; /* ✅ opcional: efecto moderno */
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
    filter: blur(4px);

    transform: scale(1.1);
}

.hero-bg img.active {
    opacity: 1;
    animation: zoom 8s ease forwards;
}

@keyframes zoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.15); }
}

/* ============================
   OVERLAY
============================ */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    border-radius: 20px; /* ✅ igual que fondo */
}

/* ============================
   CONTENIDO
============================ */
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "text image"
        "buttons image";

    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

/* ============================
   ÁREAS GRID
============================ */

.hero-text {
   
  grid-area: text; /* ✅ ESTO ARREGLA TODO */
    display: flex;
    flex-direction: column;
    gap: 8px

}

/* TITULO PRINCIPAL */

@font-face {
    font-family: 'Tangerine';
    src: url('../fuente/Tangerine-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Tangerine';
    src: url('../fuente/Tangerine-Bold.ttf') format('truetype');
    font-weight: 700;
}
.hero-text h1 {
    font-size: 50px;
    color: #fff;
    text-align: center;
    margin-bottom: -50px;
}

.hero-text h2 {
    font-family: 'Tangerine', serif;
    font-weight: 400; /* ✅ usa el Regular */
    font-size: 50px;
    letter-spacing: 0.5px;
    color: #fff;
    text-align: center;
    margin-bottom: 0px;
}

/* TEXTO */
.hero-text p {
    font-family: 'vanity', sans-serif;
    font-size: 25px;
    font-weight: 300;
    color: #fff;
    margin-top: 8px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: -30px;

}




.hero-buttons {
    grid-area: buttons;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}


.hero-image {
    grid-area: image;
  display: flex;
    align-items: center;   /* ✅ centra vertical */
    justify-content: center; /* ✅ centra horizontal */

}

.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
  
}

/* TEXTO */
.hero-text h1 {
    color: #fff;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-text p {
    color: #fff;
}

/* ============================
   FIX DESBORDE
============================ */
.hero-text,
.hero-buttons,
.hero-image {
    min-width: 0;
}

/* ============================
   📱 RESPONSIVE (AQUÍ ESTÁ LA MAGIA)
============================ */
@media (max-width: 768px) {

    .hero {
        min-height: 100dvh;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "text text"
            "buttons image";

        text-align: center;
        margin-top: 20px;
        align-items: start; /* ✅ CLAVE */
    }

    /* 🔥 MUY IMPORTANTE */
    .hero-text {
        margin-bottom: 10px; /* controla separación real */
    }

    
.hero-buttons {
    margin-top: 80px;
    justify-content: center;
    align-items: flex-start; /* ✅ hace que no se suba */
    text-align: left;
}

    .hero-image {
        display: flex;
        justify-content: flex-end; /* ✅ alinea imagen */
    }

    .hero-image img {
        max-height: 300px;
        max-width: 200px;
    }

    .hero-inner {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-buttons a {
        font-size: 14px;
        padding: 10px 12px;
        white-space: nowrap;
        width: auto; /* ✅ evita que empuje */
    }
}
    .btn-hero {
    display: block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    width: fit-content;
    transition: all 0.3s ease;
    }

    .btn-hero.gold-hero {
    background: #D4AF37;
    color: #fff;
    }


/* ============================
   ANTI SCROLL HORIZONTAL
============================ */
body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}