*{
    box-sizing: border-box;
}

:root {
    --col-izq: 280px ;
}

body{
    background-color: #fff0f5;
    font-family: 'Garet', sans-serif;
    font-size: 12pt;
    color: #373734;
    text-align: justify;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    }

header {
    background-color: #ee8faa;
    padding: 20px 30px;
    color: #373734;
    display: flex;
    align-items: center;
    margin: 0.5%;
    border-style: solid;
    border-color: #ee6faa;
    border-radius: 20px;
}

#cajalogo {
    width: var(--col-izq);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
#cajatitulo {
    padding-left: 2.5%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;    
}

#cajatitulo h2 {
    margin: 0;
    text-align: center;
    font-size: 25pt;
    font-weight: bold;
}

#home {
    width: var(--col-izq);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #405f6b;
}

main {
    display: flex;
    width: 100%;
}

hr {
    border-color: #373734;
    border-style: solid;
}

#central {
    font-family: 'Garet', sans-serif;
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
}

nav {
    flex: .5;
    background: #ffc9da;
    padding: 20px;
    margin: 0.2%;
    border-style: solid;
    border-color: #ee8faa;
    border-radius: 10px;
}
section {
    flex: 3;
    background-color: #f5f1ed;
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0.5%;
    border-style: solid;
    border-color: #a79e90;
    border-radius: 20px;
}

article {
    text-align: justify;
    font-family: 'Garet', sans-serif;
    margin-left: 1%;
    margin-right: 1%;
    padding: 15px;
}
ul#temas {
    list-style-type: none;
    padding: 20px;
}

li.opcion {
    padding-bottom: 25px;
    font-size: 14pt;
    font-weight: bold;
}

#pieFoto {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}
a:link {
    color: #f5f1ed;
    text-decoration-line: none;
}

a:visited {
    color: #42364a;
    text-decoration-line: none;
    font-weight: normal;
}

a:hover {
    color: #373734;
    text-decoration-line: none;
    font-size: 15pt;
}

a:active {
    color: #f5f1ed;
    text-decoration-line: none;
}

@media (max-width: 800px) {
    main {
    flex-direction: column;
    }
}

h1 {
    text-align: center;
    font-family: 'Garet', sans-serif;
    
} 

#intro {
    background-color: #e39b98;
    margin:20px auto;
    padding: 10px;
    font-family: 'Garet', sans-serif;
    border-style: solid;
    border-color: #934b49;
    border-radius: 15px;
    align-items: center;
    text-align: center;
}

#decisiones {
    background-color: #e39b98;
    margin:20px auto;
    padding: 10px;
    font-family: 'Garet', sans-serif;
    border-style: solid;
    border-color: #934b49;
    border-radius: 15px;
    align-items: center;
    text-align: center;

}#importancia {
   background-color: #e39b98;
    margin:20px auto;
    padding: 10px;
    font-family: 'Garet', sans-serif;
    border-style: solid;
    border-color: #934b49;
    border-radius: 15px;
    align-items: center;
    text-align: center;

}#como {
    background-color: #e39b98;
    margin:20px auto;
    padding: 10px;
    font-family: 'Garet', sans-serif;
    border-style: solid;
    border-color: #934b49;
    border-radius: 15px;
    align-items: center;
    text-align: center;

}

#Conclusión {
    background-color: #e39b98;
    margin:20px auto;
    padding: 10px;
    font-family: 'Garet', sans-serif;
    border-style: solid;
    border-color: #934b49;
    border-radius: 15px;
    align-items: center;
    text-align: center;
}

#in {
    
    font-family: 'Garet', sans-serif;
    align-items: center;
    text-align: center;
}
footer {
    background-color: #ee8faa;
    padding: 5px;
    text-align: center;
    font-size: 10pt;
    color: #373734;
    margin: 0.5%;
    border-style: solid;
    border-color: #ee6faa;
    border-radius: 20px;
}

.contenedor-intro {
    display: flex;         
    justify-content: space-between; 
    align-items: center;   
    gap: 20px;             
    margin: 20px 0;        
}

#cerebro-izq, #cerebro-der {
    width: 200px;   
    height: auto;   
    flex-shrink: 0; 
}


.contenedor-intro p {
    flex: 1;        
    text-align: justify; 
    font-family: 'Garet', sans-serif;
    font-size: 18px;
}


@media (max-width: 768px) {
    .contenedor-intro {
        flex-direction: column;
    }
    #cerebro-der {
        order: -1; 
    }
}

.contenedor-desplegable {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    font-family: 'Garet', sans-serif;
}

.boton-desplegable {
    width: 100%;
    background-color: #ffb3b3;
    border: 2px solid #e68a8a;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 18px;
    color: #2b2b40;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.boton-desplegable:hover {
    background-color: #ffd6d6;
}

.flecha {
    transition: transform 0.3s ease;
    display: inline-block;
}


.contenido-desplegable {
    max-height: 0;          
    overflow: hidden;     
    transition: max-height 0.5s ease;
    margin-top: 5px;
    
}

.cajas-opciones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.caja {
    background-color: #fff2f5;
    border: 2px solid #e68a8a;
    padding: 12px;
    text-align: center;
    color: #2b2b40;
}

.caja:nth-child(1) { border-radius: 50px 0 0 50px; }
.caja:nth-child(4) { border-radius: 0 50px 50px 0; }

@media (max-width: 700px) {
    .cajas-opciones { grid-template-columns: 1fr; }
    .caja:nth-child(1), .caja:nth-child(4) { border-radius: 50px; }
}


.sofia-site .offcanvas .menu-list{
    display:grid;
    gap:10px;
}

.sofia-site .offcanvas .menu-list a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 13px;
    border-radius:16px;
    color:var(--sofia-ink);
    text-decoration:none;
    font-weight:800;
    border:2px solid transparent;
}

.sofia-site .offcanvas .menu-list a:hover,
.sofia-site .offcanvas .menu-list a.active{
    background:var(--sofia-pink);
    border-color:var(--sofia-line);
}
