/* CSS Document */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");

:root {
    --sidebar-width: 300px;
    --content-gap: 3px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: verdana;
    font-size: 11px;
    color: #666666;
    margin: 0px;
    min-height: 100vh;
    overflow: hidden;
}

main {
    display: flex;
    gap: var(--content-gap);
    height: 100vh;
}

#toggle-sidebar {
    border: none;
    border-radius: 5px;
    background-color: #5097b5;
    display: none;
    position: fixed;
    height: 50px;
    width: 50px;
    z-index: 20;
    left: 5px;
    top: 5px;
    background-image: url(/static/images/menu-collapse.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

body:has(#sidebar.show) #toggle-sidebar {
    left: 245px;
    top: 5px;
}

#sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    background-color: #5097b5;
}

#sidebar .logo {
    margin-bottom: 20px;
}

.logo a {
    display: block;
}

#sidebar .logo img {
    max-width: 100%;
    width: 70%;
}

#sidebar :is(.menu-options, .menu-options-admin) {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 8px #fff solid;
    border-bottom: none;
    border-left: none;
    width: 90%;
}

#sidebar :is(.menu-options, .menu-options-admin):last-child {
    border-bottom: 8px #fff solid;
}

#sidebar h2 {
    margin: 10px;
    color: #fff;
    font-size: 16pt;
    font-weight: bold;
    text-align: right;
    font-family: "Oswald";
}

.menu-option {
    font-weight: 500;
    width: 100%;
    height: 50px;
    --line-color: #0099ff25;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 1px,
            var(--line-color) 1px,
            var(--line-color) 2px),
        linear-gradient(#013258, #8ba7b9);
    background-size: auto, cover;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 10px;
    border-bottom: 1px solid #fff;
    /* text */
    text-shadow: #000000c5 1px 1px 2px;
    font-family: "Oswald";
    color: white;
    font-size: 16pt;
}

.menu-option:hover {
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 1px,
            var(--line-color) 1px,
            var(--line-color) 2px),
        linear-gradient(#d5e4ee, #65a4be);
    text-shadow: #ffffffd2 1px 1px 2px;
    text-decoration: none;
    color: #013258;
}

#content {
    height: 100%;
    flex: 1;
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto auto 1fr auto;
    overflow: auto;
}

#content>.top {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5097b5;
    min-height: 30px;
    border-bottom: 7px solid #11466f;
}

.top .logo {
    display: none;
}

.banner {
    max-height: 100px;
}

.banner img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    object-position: left top;
}

.main {
    padding: 0 30px 0px 10px;
}

footer {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 30px;
    height: 50px;
    font-size: 16pt;
    background-color: #003157;
    font-family: "Oswald";
    color: #fff;
    justify-self: end;
}

.left-aside {
    display: grid;
    grid-template-columns: minmax(200px, auto) 1fr;
    gap: 30px;
}

.indexes {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.text-content::before {
    grid-column-start: 2;
    content: "";
    position: absolute;
    height: 80px;
    width: 2px;
    background-color: #d3d3d3;
    top: 0px;
    left: 0px;
}

.text-content {
    padding-left: 20px;
    position: relative;
}

#productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    gap: 40px;
    margin: 20px;
}

.card {
    display: grid;
    border: #d3d3d3 solid 2px;
    grid-template-rows: 1.4fr 1fr;
    height: 300px;
}

.card h3 {
    font-weight: 600;
}

.card .top {
    display: flex;
    align-content: center;
    justify-content: center;
}

.card img {
    height: auto;
    max-width: 100%;
}

.card .bottom {
    text-align: center;
    border-top: #d3d3d3 solid 2px;
    padding: 0 5px;
}

hr.dotted {
    border: none;
    border-top: dotted #d3d3d3 2px;
    margin: 20px 0;
}

.no-marker {
    list-style: none;
}

.li {
    margin-bottom: 20px;
}

.bold {
    font-weight: bold;
}

.blue {
    color: #5296b4;
}

.hidden {
    display: none !important;
}

.margin-bottom-0 {
    margin-bottom: 0;
}

.block {
    margin-bottom: 70px;
}

h1 {
    font-size: 24pt;
    font-weight: normal;
    color: #5296b4;
    padding: 0px;
}

h2 {
    font-size: 18pt;
    color: #888888;
    font-weight: normal;
}

h3 {
    font-size: 14pt;
    font-weight: normal;
}

li {
    font-size: 12pt;
}

p {
    font-size: 12pt;
    padding: 0px;
    margin: 10px 0px 10px 0px;
}

a {
    color: #5296b4;
    text-decoration: none;
    font-size: 12pt;
}

ul {
    margin-left: 30px;
    padding: 20px;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 1440px) {
    #productos {
        grid-template-columns: repeat(auto-fit, 300px);
    }
}

@media (max-width: 850px) {
    .banner {
        height: 0px;
        overflow: hidden;
    }

    #toggle-sidebar {
        display: block;
    }

    #sidebar {
        display: none;
        position: fixed;
        height: 100%;
        z-index: 10;
        box-sizing: content-box;
        border-right: white 3px solid;
    }

    #sidebar.show {
        display: flex;
    }

    #content>.top {
        min-height: unset;
    }

    .top .logo {
        display: block;
    }

    .top .logo img {
        height: 100px;
    }
}

@media (max-width: 700px) {
    .left-aside {
        grid-template-columns: auto;
        grid-template-rows: auto auto;
    }
}

@media (max-width: 470px) {
    footer {
        font-size: 12pt;
    }
}

.btn-eliminar {
    background-color: #d9534f;
    /* rojo Bootstrap */
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 10pt;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-eliminar:hover {
    background-color: #c9302c;
}