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

:root {
    --primary: #2c88d9;
    --puntuacion: #f7c325;
    --bordes: #c3cfd9;
    --fondos: #dfe6ed;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > * {
    width: 100%;
}

.marca-lognow {
    font-family: 'Limelight', serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    color: #1a1a1a;
}
h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    gap: 1.6rem;
    padding: 0 0.8rem 5rem 0.8rem;
}

header {
    border-bottom: 2px solid var(--bordes);
    background: #f7f9fa;
    position: relative;
    z-index: 5;
}

header > .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1rem;
    height: 4.5rem;
}

header .logo {
    grid-column: 2/span 1;
    justify-self: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 2rem;
}

header .logo .marca-lognow {
    display: inline-block;
}

header .info {
    grid-column: 3/span 1;
    justify-self: end;
    color: dimgray;
    font-size: 1.5rem;
}

.contenido-info {
    display: none;
    position: fixed;
    width: 10rem;
    top: 4.4rem;
    right: 0;
    background: #f7f9fa;
    border: 2px solid var(--bordes);
}

.contenido-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    align-items: center;
    border-bottom: 0.2rem solid var(--bordes);
}

.contenido-info ul a {
    padding: 1rem 0;
    display: block;
    font-weight: 600;
}

.contenido-info .redes-sociales {
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.contenido-info .session-info {
    text-align: center;
    border-bottom: 0.2rem solid var(--bordes);
}

.contenido-info .session-info a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-weight: 600;
}

.contenido-info .copy {
    padding: 1.5rem 0;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 600;
}

header #check-info:checked ~ .contenido-info {
    display: block;
}

header #check-info:checked ~ label {
    color: var(--primary);
}

header .buscar, header nav, header .btnAgregar, header .btn-salir {
    display: none;
}


/* FIN HEADER */

/* parte inferior */

.nav-inferior {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #dfe6ed;
}

.nav-inferior ul {
    display: flex;
}

.nav-inferior li {
    list-style: none;
    flex-grow: 1;
}

.nav-inferior li.active a {
    color: var(--primary);
    border-bottom: 4px solid var(--primary);
}

.nav-inferior li a {
    color: #4b5c6b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.7rem 0 0.4rem 0;
    font-size: 0.9rem;
    gap: 0.25rem;
}

.nav-inferior li i {
    font-size: 1.5rem;
}

footer {
    display: none;
}

@media (min-width: 768px) {

    header nav li.active a{
        font-weight: bold;
    }

    header .buscar, header nav, header .btnAgregar, header .btn-salir {
        display: inline-block;
    }

    header .btn-salir {
        color: #999;
        font-size: 1.3rem;
    }

    header .btn-salir:hover {
        color: var(--primary);
    }

    header .info, .nav-inferior {
        display: none;
    }

    header > .container {
        display: grid;
        grid-column-gap: 1rem;
        grid-template-columns: auto minmax(8rem, 1fr) auto auto;
        padding: 0 2rem;
        height: 5rem;
        width: 100%;
    }

    header .logo {
        grid-column: 1/span 1;
        justify-self: start;
    }

    header .buscar {
        background-color: white;
        border: 2px solid var(--bordes);
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0 0.5rem;
        min-width: 0;
    }

    header .buscar input {
        border: none;
        outline: none;
        height: 2rem;
        line-height: 2rem;
        font-size: 1.1rem;
        flex-grow: 1;
        color: dimgray;
        background: none;
        min-width: 0;
    }

    .buscar:focus-within {
        border-color: var(--primary);
    }

    header .buscar .fa-magnifying-glass {
        color: #999;
    }

    header nav ul {
        list-style: none;
        display: flex;
        gap: 0.9rem;
        font-size: 0.95rem;
    }

    header nav a {
        white-space: nowrap;
    }

    header nav a:hover {
        color: var(--primary);
    }

    header .btnAgregar {
        background: var(--primary);
        padding: 0.75rem 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        border-radius: 4px;
        gap: 1rem;
        cursor: pointer;
    }

    header .btnAgregar span{
        display: none;
    }

    main {
        padding: 0 2rem;
    }

    footer {
        display: block;
        background: #f7f9fa;
        border-top: 2px solid var(--bordes);
        margin-top: 2.5rem;
    }

    footer > .container {
        position: relative;
        padding: 1rem 0;
    }

    footer ul, footer .copy-footer {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 2rem;
        padding: 0.5rem 0;
    }

    footer ul li {
        border-right: 2px solid var(--bordes);
        padding-right: 2rem;
    }

    footer ul li:last-of-type {
        border-right: none;
        padding-right: 0;
    }


    footer .redes-sociales {
        position: absolute;
        right: 1rem;
        top: 40%;
        font-size: 1.2rem;
    }

    footer .redes-sociales i{
        transition: transform 0.2s;
    }

    footer .redes-sociales i:hover {
        transform: scale(1.25);
    }
}

@media (min-width: 992px) {

    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    header nav ul {
        gap: 2rem;
        font-size: 1.2rem;
    }

    header .btnAgregar span{
        display: inline-block;
    }

}
