/* =========================================================
   =================  INICIO - SLIDER HERO  =================
   ========================================================= */

/* Solo la página de inicio bloquea el scroll */
.sin-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* ===== CONTENEDOR DEL HERO ===== */
.contenedor-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    transition: background-color 1s ease-in-out;
    justify-content: center;
    align-items: center;
}

/* ===== DIAPOSITIVAS ===== */
.diapositiva {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.diapositiva.activa {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* ===== TEXTO GRANDE DE FONDO ===== */
.texto-fondo-grande {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: -1;
    line-height: 0.8;

    /* Siempre visible */
    opacity: 1 !important;
}

.texto-fondo-grande span {
    font-size: 3rem;
    opacity: 0.8;
    margin-right: 55%;
    margin-bottom: -10px;
}

.texto-fondo-grande h1 {
    font-size: 20vw;
    font-weight: 800;
    letter-spacing: -5px;
    margin: 0;
    opacity: 1 !important;
}

/* ===== REJILLA PRINCIPAL ===== */
.rejilla-hero {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    max-width: 1400px;
    padding: 0 60px;
    align-items: center;
}

/* ===== COLUMNA IZQUIERDA ===== */
.info-izquierda {
    max-width: 300px;
    color: #fff;

    /* Sin animaciones internas */
    opacity: 1 !important;
    transform: none !important;
}

.info-izquierda h2 {
    font-size: 2rem;
    font-weight: 600;
}

.separador {
    width: 40px;
    height: 3px;
    background: #fff;
    margin-bottom: 20px;
}

/* ===== IMAGEN CENTRAL ===== */
.imagen-centro {
    display: flex;
    justify-content: center;

    opacity: 1 !important;
    transform: none !important;
}

.imagen-principal {
    height: 60vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);

    opacity: 1 !important;
    transform: none !important;
}

/* ===== MENÚ DERECHA ===== */
.menu-derecha {
    display: flex;
    flex-direction: column;

    opacity: 1 !important;
    transform: none !important;
}

.item-menu {
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding: 10px 0;
    width: 200px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: padding 0.3s;

    opacity: 1 !important;
    transform: none !important;
}

.item-menu a {
    color: var(--color-texto);
    text-decoration: none;
}

.item-menu:hover {
    padding-right: 15px;
}

/* ===== INDICADORES ===== */
.indicadores {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5000;
}

.indicador {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.indicador.activo {
    background: #fff;
    transform: scale(1.3);
}

/* =========================================================
   ====================== RESPONSIVE ========================
   ========================================================= */
@media (max-width: 1024px) {

    .encabezado { 
        padding: 20px; 
        flex-direction: column-reverse; 
        gap: 20px; 
    }

    .rejilla-hero { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 30px; 
        padding: 0 20px;
    }

    .imagen-principal { 
        height: 40vh; 
        max-height: 45vh;
        width: auto;
    }

    .texto-fondo-grande h1 { 
        font-size: 15vw; 
    }

    /* Ajustes móvil (más específicos para pantallas pequeñas) */
    @media (max-width: 800px) {

        .contenedor-hero {
            height: calc(100vh - 80px);
            padding-top: 80px;
        }

        .texto-fondo-grande span {
            font-size: 2rem;
            margin-right: 0;
            opacity: 0.4;
        }

        .texto-fondo-grande h1 {
            font-size: 28vw;
            letter-spacing: -2px;
        }

        .rejilla-hero {
            grid-template-columns: 1fr;
            gap: 25px;
            padding: 0 20px;
        }

        .imagen-principal {
            width: 100%;
            height: auto;
            max-height: 45vh;
        }

        .info-izquierda {
            max-width: 100%;
            text-align: center;
        }

        .menu-derecha {
            width: 100%;
            align-items: center;
        }

        .item-menu {
            width: 90%;
            padding: 15px 10px;
            font-size: 1.1rem;
        }

        .indicadores {
            bottom: 20px;
            gap: 20px;
        }

        .indicador {
            width: 14px;
            height: 14px;
        }
    }
}
