/*
   GUIA.CSS 
   Evidencia 
   Diseño creado para organizar la
   información en formato de guía
   educativa con navegación interna.
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#f5f5f5;
    color:#17182c;
    line-height:1.8;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ==========================
   CONTENEDOR
========================== */

.guia-contenedor{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* 
   NAVBAR
 */

.guia-navbar{
    background:white;
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:1px solid #eee;
}

.guia-flex{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.guia-logo{
    font-size:1.5rem;
    font-weight:700;
    color:#17182c;
}

.guia-menu-lista{
    display:flex;
    gap:20px;
    align-items:center;
}

.guia-menu-lista a{
    color:#17182c;
    transition:.3s;
}

.guia-menu-lista a:hover{
    opacity:.7;
}

.boton-menu{
    background:#17182c;
    color:white !important;
    padding:12px 22px;
    border-radius:12px;
}

.guia-menu-boton{
    display:none;
    font-size:1.5rem;
    border:none;
    background:none;
    cursor:pointer;
}

/* ==========================
   HERO
========================== */

.guia-hero{
    padding:100px 0;
    text-align:center;
}

.guia-hero h1{
    font-size:4.5rem;
    font-weight:300;
    max-width:900px;
    margin:auto;
    line-height:1.1;
    margin-bottom:30px;
}

.guia-hero p{
    max-width:850px;
    margin:20px auto;
    color:#555;
}

/* ==========================
   ÍNDICE
========================== */

.guia-indice{
    background:white;
    padding:40px;
    border-radius:25px;
    margin-bottom:60px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.05);
}

.guia-indice h2{
    margin-bottom:20px;
}

.guia-indice ul{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.guia-indice a{
    color:#17182c;
    font-weight:600;
}

/* ==========================
   SECCIONES
========================== */

.guia-contenedor h2{
    margin-bottom:20px;
    font-size:2rem;
}

.guia-contenedor p{
    margin-bottom:20px;
    color:#555;
}

.guia-contenedor{
    margin-bottom:60px;
}

/* ==========================
   PASOS
========================== */

.guia-seccion{
    width:90%;
    max-width:1200px;
    margin:auto;

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

    margin-bottom:80px;
}

.guia-caja{
    background:white;
    padding:35px;
    border-radius:25px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.05);

    transition:.3s;
}

.guia-caja:hover{
    transform:translateY(-6px);
}

.guia-caja h2{
    font-size:1.3rem;
    margin-bottom:15px;
}

/* ==========================
   CONCLUSIÓN
========================== */

.guia-conclusion{
    background:#17182c;
    color:white;

    padding:60px;
    border-radius:30px;
}

.guia-conclusion p{
    color:#ddd;
}

.guia-enlaces{
    margin-top:30px;

    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.guia-enlaces a{
    background:white;
    color:#17182c;

    padding:12px 20px;
    border-radius:12px;
    font-weight:600;
}

/* ==========================
   ALERTA
========================== */

.guia-alerta{
    width:90%;
    max-width:1200px;

    margin:40px auto;

    background:#fff3cd;

    color:#856404;

    padding:20px;

    border-radius:15px;

    border-left:6px solid #ffc107;
}

/* ==========================
   BOTÓN MODO OSCURO
========================== */

.guia-btn-modo{

    position:fixed;

    bottom:20px;
    right:20px;

    background:#17182c;
    color:white;

    padding:15px 20px;

    border-radius:15px;

    cursor:pointer;

    z-index:999;
}

/* ==========================
   FOOTER
========================== */

.guia-footer{
    background:white;

    text-align:center;

    padding:50px 20px;

    border-top:1px solid #eee;
}

.guia-footer p{
    color:#666;
    margin-bottom:10px;
}

/* ==========================
   MODO OSCURO
========================== */

#modo-check{
    display:none;
}

#modo-check:checked ~ *{
    filter:invert(.93) hue-rotate(180deg);
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:900px){

    .guia-hero h1{
        font-size:3rem;
    }

    .guia-indice ul{
        grid-template-columns:1fr;
    }

    .guia-menu-lista{
        gap:12px;
        flex-wrap:wrap;
        justify-content:center;
    }

}

@media(max-width:700px){

    .guia-flex{
        flex-direction:column;
        gap:20px;
    }

    .guia-hero h1{
        font-size:2.3rem;
    }

    .guia-conclusion{
        padding:35px;
    }

    .guia-enlaces{
        flex-direction:column;
    }

}