body {
    background-color: gainsboro;    
}

body>header {
    background-color: black;
    padding: 10px;
    width: calc(100vw - 40px);
    height: 40px;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
}

body>header>nav>ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
}

main>header {
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
    height: 15svh;
    margin: 0%;
    width: calc(100% - 40px);
    position: relative;
    overflow: hidden;
    max-height: 100px;
    z-index: 3;
}

header > nav > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

header > nav > ul > li {
    list-style: none;
    text-align: center;
    font-size: 1em;
}

header > nav > ul > li :hover {
    font-size: 1.5em;
}

header > nav > ul > li > a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    display: inline-block;
}

.introduccion {
    font-size: 18px;
    line-height: 1.6;
    color: white;
    background-color: black;
    margin-bottom: 20px;
    margin-top: 0%;
    padding: 20px;
    width: calc(100% - 40px);
    height: 75svh;
    position: relative;
    overflow: hidden;
    display: flex;
    max-height: 500px;
}

.section-rigida {
    width: 450px;
    height: 75svh;
    display: flex;
    margin-right: 100px;
}

.section-rigida > .inline {
    margin-left: 50px;
}

.section-rigida > .inline> img {
    width: 200px;
    height: 200px;
}

.section-rigida > .inline > h2 {
    text-align: start;
}

.section-rigida > .inline > pre {
    font-size: 4rem;
    text-align: center;
    position: relative;
    top: -60px;
}

.inline {
    display: inline-block;
}

.section-interactive {
    width: calc(100vw - 600px);
    height: 75svh;
    display: block;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.section-interactive > article {
    height: 75svh;
    width: calc(100vw - 600px);
    position: relative;
}

.section-interactive > article > section {
    width: 50%;
    height: 75svh;
}

.vacio-animado {
    background: rgba(112, 112, 112, 0.308);
}

.section-left {
    position: absolute;
    text-align: start;
    top: 0;
    left: 0;
}

.section-rigth {
    position: absolute;
    text-align: center;
    top: 0;
    right: 100px;
}

.scroll-article {
    display: flex;
    flex-direction: column;
    position:fixed;
    top: 50%;
    right: 11px;
    justify-content: center;
    text-align: center;
    align-items: center;
    width: 10px;
}

.burble, .minum-next , .burble-select {
    font-size: 1.5rem;
    list-style: none;
}

.burble:hover, .minum-next:hover {
    font-size: 1rem;
}

.burble-select:hover {
    text-shadow: 0 0 25px white;
    font-size: 1rem;
}

.burble>a, .minum-next>a, .burble-select>a {
    text-decoration: none;
    color: white;
}

.burble-select {
    font-size: 2rem;
    text-shadow: 0 0 25px white;
}

.banner-app {
    min-height: 150px;
    width: calc(100% - 70px);
    background-color: gainsboro;
    border-radius: 12px;
    padding: 20px;
    text-align: justify;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-app:hover {
    width: calc(100% - 40px);
    box-shadow: 0 0 10px 5px grey;
}

.banner-app> article> img {
    width: 120px;
    position: absolute;
    right: 20px;
    top: 0;
    border-radius: 12px;
}

.banner-app > article > p {
    max-width: 700px;
    width: 80%;
}

#DigiCurva {
    background-image: url(https://jaceacode.shop/DigiCurva-App/Web/assets/fondoHome.jpg);
    background-position-y: -120px;
}

.banner-app > article {
    z-index: 1;
    position: relative;
}

.digi-crystal {
    background-color: rgba(104, 232, 255, 0.466);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#SneakyChat {
    background-color: darkorchid;
    color: #dbdbdb;
}

#SneakyChat > article > h2, #SneakyChat > article > h3 {
    color: white;
}

#SneakyChat > article > img {
    background-color: darkviolet;
    border: 4px solid white;
}

#Novedades {
    background-color: gainsboro;
    padding: 12px;
}

#Novedades > article {
    padding: 20px;
    background-color: white;
    margin-bottom: 20px;
    box-shadow: 0 0 5px 2px grey;
    border-radius: 12px;
}

footer {
    background-color: white;
    padding: 40px;
    padding-top: 50px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================= */

@media screen and (max-width: 768px) {
    main>header {
        height: auto;
        max-height: none;
        padding: 10px;
	position:relative;
        margin:0;

    }

    .introduccion {
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 10px;
    }

    .section-rigida {
        width: 100%;
        height: auto;
        margin-right: 0;
        justify-content: center;
        margin-bottom: 20px;
    }

    .section-rigida > .inline {
        margin-left: 0;
        text-align: center;
    }

    .section-rigida > .inline > h2 {
        text-align: center; 
    }
    .section-rigida > .inline> img {
        width: 120px;
        height: 120px;
    }
.section-rigida > .inline > pre {
    font-size: 2rem;
    text-align: center;
    position: relative;
    top: -30px;
}
main>header > nav > ul {
    display: grid;
   grid-template-columns: repeat(auto-fit, minmax(100px, 0.5fr));
    gap: 5px;
    margin-top: 5px;
    width: 90%;
}
    /* Ocultamos el nav de las burbujas */
    #scroll-article {
        display: none !important;
    }

    /* Forzamos a que los artículos se vean en móvil ignorando el JS */
    .section-interactive article {
        transform: none !important;
        opacity: 1 !important;
        position: relative !important;
        height: auto !important;
    }
    .section-interactive {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .section-interactive > article,
    .section-interactive > article > section {
        width: 100%;
        height: auto;
    }

    .section-left, 
    .section-rigth {
        position: relative;
        text-align: center;
        right: auto;
        left: auto;
        margin-bottom: 20px;
    }

    .banner-app {
        width: 100%;
        padding: 15px;
        box-sizing: border-box; /* Evita que el padding desborde la pantalla */
    }

    .banner-app:hover {
        width: 100%; 
    }

    .banner-app > article {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .banner-app > article > p {
        width: 100%;
    }

    .banner-app> article> img {
        position: relative;
        right: auto;
        top: auto;
        margin-bottom: 15px;
        order: -1;
    }

    .scroll-article {
        right: 0;
        top: auto;
        bottom: 0; /* Pegado abajo */
        flex-direction: row; 
        width: 100%;
        justify-content: space-evenly;
        background: rgba(0,0,0,0.8); 
        padding: 10px 0;
        z-index: 10;
    }
    #Novedades > article > ol > li > img {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    header > nav > ul {
        grid-template-columns: 1fr; 
    }
}
/* Estilos base para el botón de hamburguesa (oculto por defecto) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Responsivo: Menú comprimido */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Aparecen las rayitas */
    }

    body>header {
        height: auto; /* Permite que el header crezca al abrir el menú */
        width: 100%;
    }

    .nav-list {
        display: none; /* Ocultamos la lista por defecto */
        flex-direction: column;
        width: 100%;
        background-color: black;
        position: absolute;
        top: 60px; /* Debajo del header */
        left: 0;
        padding: 20px 0;
    }

    /* Clase que activaremos con JS */
    .nav-list.active {
        display: flex;
    }

    body>header>nav>ul {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
}
