:root {
    --fondo: #002855;
    --letras: #080808;
    --grisClaro: #a5a5a5;
    --blanco: #ffff;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-size: 16px;
    font-family: "Roboto Slab", serif;

    background-color: #e1f4f7;


}

.contenedor {
    max-width: 120rem;
    margin: 0 auto 0 auto;
}

/* Tipografia **/

h1 {
    font-size: 3.8rem;
}

h1,
h2,
h3 {
    text-align: center;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

/* Titulos **/
.titulo span {
    font-size: 2rem;
}


.w-sm-100 {
    width: 100%;
}

@media (min-width: 768px) {
    .w-sm-100 {
        width: auto;
    }
}

.flex {
    display: flex;
}

.alinear-derecha {
    justify-content: flex-end;
}

/** Navegacion */
.nav-bg {
    background-color: var(--fondo);
}

.navegacion-principal {
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
}

.navegacion-principal a {
    display: block;
    text-align: center;
    color: aqua;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
}

.navegacion-principal a:hover {
    background-color: var(--degradado);
    color: orange;
}

/*ESTILOS DEL INICIO */


.home-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 50px 20px;
}


.hero-welcome {
    max-width: 720px;
    margin: 0 auto 50px auto;
    text-align: left;
}


.welcome-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}


.date-text {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
}

/* Título gigante de bienvenida */
.welcome-title {
    text-align: left;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.welcome-title em {
    color: #9e472a;
}

.welcome-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pill-btn {
    background-color: #fff;
    border: 1px solid #dcd9d0;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    color: #222;
    text-decoration: none;
}

.pill-btn:hover {
    background-color: #f0ede6;
}

/* Barra de preguntar/buscar */
.ask-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dcd9d0;
    border-radius: 14px;
    padding: 8px 8px 8px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ask-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #222;
    font-family: inherit;
}

.ask-submit-btn {
    width: 38px;
    height: 38px;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ask-submit-btn:hover {
    background-color: black;
}

/* SECCIÓN TUS MATERIAS*/

.home-divider {
    border: none;
    border-top: 1px solid #dcd9d0;
    margin: 40px 0 30px 0;
}

.subjects-heading {
    text-align: left;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin: 0 0 18px 0;
}


.subjects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.subject-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    border: 1px solid #e2dfd7;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
}

.subject-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.subject-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.bg-pink {
    background-color: #f7dfd9;
    color: #7a2e1d;
}

.bg-cyan {
    background-color: #d0f0f3;
    color: #16565c;
}

.bg-green {
    background-color: #d8f0dc;
    color: #1f5c2b;
}

.bg-purple {
    background-color: #e5dff7;
    color: #3e287a;
}

.bg-yellow {
    background-color: #f5e6cc;
    color: #6e4c15;
}

.bg-blue {
    background-color: #dce8fc;
    color: #1e4280;
}

.bg-rose {
    background-color: #f7d9ec;
    color: #752256;
}

.bg-olive {
    background-color: #e6ebd5;
    color: #47541c;
}

.subject-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.subject-info h4 {
    margin: 0;
    font-size: 13px;
    color: #1a1a1a;
}

.subject-info span {
    font-size: 11px;
    color: #777;
}
/*
#vista-logueado,
.navegacion-principal a.solo-logueado {
    display: none;
}
    */

.btn-flotante-subir {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #00a6ff;
    color: #fff;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-flotante-subir:hover {
    background-color: #060200;
}