/* =====================================================
   NAIL SUITE v3 - HERO (CARRUSEL IZQ + TEXTO CENTRADO DER)
   ===================================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: min(100vh, 920px);
    padding-top: var(--alto-encabezado);
}

/* ---------- Carrusel (Mitad izquierda) ---------- */
.hero-fotos {
    position: relative;
    overflow: hidden;
    background: var(--malva);
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.hero-diapositiva {
    position: absolute;
    inset: 0;
    visibility: hidden;
}

.hero-diapositiva.activa {
    visibility: visible;
}

.hero-diapositiva img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-puntos {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-puntos button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.hero-puntos button[aria-current="true"] {
    width: 34px;
    background: #fff;
}

/* ---------- Texto (Mitad derecha - Todo Centrado) ---------- */
/* 1. Ajusta el contenedor de texto para darle buen espacio horizontal */
.hero-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(32px, 5vw, 64px);
    width: 100%;
    max-width: 680px;
    /* <--- Asegúrate de que tenga suficiente ancho (600px a 680px) */
    margin: 0 auto;
}

/* 2. Corrige el título para que fluya máximo en 2 renglones */
.hero-titulo {
    width: 100%;
    max-width: 22ch;
    /* <--- Aumenta de 13ch a 22ch (o usa max-width: 100%) */
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    /* <--- Ajuste de tamaño para que quepa bien */
    line-height: 1.15;
    /* Sin text-wrap: balance: choca con SplitText (la animación por
       renglones) y en celular parte el título en renglones disparejos */
}

.hero-logo {
    width: 190px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 20px auto;
    /* Centra la imagen del logo */
}

.hero-texto .antetitulo {
    margin-bottom: 12px;
}


.hero-descripcion {
    max-width: 44ch;
    margin: 0 auto 24px auto;
    color: var(--texto-suave);
}

.hero-acciones {
    display: flex;
    justify-content: center;
    /* Centra los botones horizontalmente */
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.hero-lugar {
    margin: 24px auto 0 auto;
    font-size: 0.9rem;
    color: var(--texto-suave);
}

/* Máscara para SplitText de GSAP */
.linea-mask {
    padding: 0 0.12em 0.1em 0;
    margin-right: -0.12em;
}

/* =====================================================
   RESPONSIVO (MÓVILES Y TABLETS)
   ===================================================== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-fotos {
        height: 45vh;
        min-height: 300px;
    }

    .hero-texto {
        padding: 40px 24px;
    }

    .hero-logo {
        width: 150px;
        margin-bottom: 16px;
    }
}

@media (max-width: 520px) {
    .hero-acciones {
        flex-direction: column;
    }

    .hero-acciones .boton {
        width: 100%;
    }
}