/* ============================================================
   iniciov2.css
   Cambios de esta iteración:
   1. Hero nuevo con <picture> (imágenes distintas por dispositivo)
   2. Categorías: grilla de 8 ítems, 4 por fila
   ============================================================ */

/* ---------- HERO ---------- */

.hero.hero-inicio {
    position: relative;
    width: 100%;
    height: 500px;          /* desktop, según lo acordado */
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero.hero-inicio .hero-picture,
.hero.hero-inicio .hero-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;   /* la parte importante que diseñes queda centrada */
    display: block;
    margin: 0;
    z-index: 0;
}

.hero.hero-inicio .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Degradado suave para legibilidad del texto sobre la foto.
       Si tu imagen ya trae una zona oscura/negativa donde va el texto,
       puedes bajar la opacidad aquí o quitar este bloque. */
    background: linear-gradient(
        90deg,
        rgba(10, 20, 15, 0.75) 0%,
        rgba(10, 20, 15, 0.45) 45%,
        rgba(10, 20, 15, 0.15) 100%
    );
}

.hero.hero-inicio .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-left: min(8vw, 80px);
    padding-right: min(8vw, 40px);
    max-width: 600px;
}

.hero.hero-inicio .hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 12px 0;
    font-weight: 700;
    color: #fff;
    letter-spacing: normal;
    word-spacing: normal;
    white-space: normal;
}

.hero.hero-inicio .hero-content p {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: normal;
    word-spacing: normal;
    white-space: normal;
}

.hero.hero-inicio .hero-cta {
    display: inline-block;
    background: #f2b705;
    color: #2b2016;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.hero.hero-inicio .hero-cta:hover {
    background: #d9a400;
}

/* Tablet: 601px–1023px */
@media (max-width: 1023px) {
    .hero.hero-inicio {
        height: 420px;
    }
}

/* Móvil: hasta 600px */
@media (max-width: 600px) {
    .hero.hero-inicio {
        height: 380px;
        align-items: flex-end;   /* título y botón pegados abajo */
    }
    .hero.hero-inicio .hero-content {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 32px;
    }
    .hero.hero-inicio .hero-content p {
        display: none;   /* en móvil solo va título + botón, sin descripción */
    }

    /* La imagen de móvil (hero-smartphone.png) es un fondo rosa pastel
       muy claro — se refuerza el oscurecido para que el texto blanco
       siga siendo legible sin perder de vista el mueble. */
    .hero.hero-inicio .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(10, 20, 15, 0.88) 0%,
            rgba(10, 20, 15, 0.65) 45%,
            rgba(10, 20, 15, 0.35) 100%
        );
    }
}


/* ---------- CATEGORÍAS: 4 por fila (8 ítems = 2 filas) ---------- */

.lounge-categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tablet: 2 por fila se ve mejor que forzar 4 apretados */
@media (max-width: 1023px) {
    .lounge-categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Móvil: 2 por fila también (4 filas de 2), evita ítems demasiado angostos */
@media (max-width: 480px) {
    .lounge-categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}