﻿:root {
    --green-900: #004C32; /* principal */
    --green-500: #2ABE76; /* acento */
    --yellow-500: #FFDD00; /* warning */
    --bs-primary: var(--green-900);
    --bs-success: var(--green-500);
    --bs-warning: var(--yellow-500);
}

body {
    min-height: 100vh;
    background: #dddddd;
    font-family: 'Montserrat', Verdana, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 13px; /* Ajustar según sea necesario */
}

a {
    color: #4e4a46;
    text-decoration: none;
    outline: none;
}

    a:hover, a:focus {
        color: var(--bs-secondary);
        outline: none;
    }

button:focus {
    outline: none;
}

section {
    padding: 1em;
    text-align: center;
}

/* Header */
.codrops-header {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

    .codrops-header h1 {
        margin: 0 auto;
        line-height: 1;
    }

        .codrops-header h1 span {
            display: block;
            padding-top: 0.325em;
        }

.codrops-links {
    text-transform: uppercase;
    line-height: 2.2;
    padding: 1.61em 5em;
}

    .codrops-links a {
        display: inline-block;
        padding: 0 1em;
        text-decoration: none;
        letter-spacing: 1px;
    }

.codrops-icon:before {
    margin: 0 4px;
    text-transform: none;
    line-height: 1;
    speak: none;
    -webkit-font-smoothing: antialiased;
}

.codrops-icon-drop:before {
    content: "\e001";
}

.codrops-icon-prev:before {
    content: "\e004";
}

/* Demo Buttons Style */
.codrops-demos {
    max-width: 1200px;
    margin: 3em auto 5em;
    padding: 2em 10em 0;
}

    .codrops-demos > a {
        display: inline-block;
        margin: 0.75em;
        padding: 1.35em 1.1em;
        width: 15em;
        background: #fffce1;
        outline: none;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 20px/50px;
    }

        .codrops-demos > a.current-demo {
            background: var(--bs-secondary);
            color: #fffce1;
        }

/* Related demos */
.related {
    margin-top: 5em;
    padding: 0 3em 5em;
}

    .related > a {
        display: inline-block;
        text-align: center;
        margin: 20px 10px;
        padding: 25px;
        border-radius: 35px/200px;
        background: #fffce1;
        max-width: 100%;
    }

    .related a img {
        max-width: 100%;
        opacity: 0.8;
        border-radius: 20px/100px;
    }

    .related a:hover img,
    .related a:active img {
        opacity: 1;
    }

    .related a h3 {
        margin: 0;
        padding: 0.5em 0.75em 0.3em;
        max-width: 300px;
        text-align: left;
    }

body #cdawrap {
    top: auto;
    bottom: 35px;
    right: 35px;
    background: #dddddd;
    border: 1px solid rgba(131,135,151,0.6);
}

.demo-wave body #cdawrap {
    top: 35px;
    right: 35px;
    bottom: auto;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.container-base {
    background: var(--bs-primary);
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

@media (max-width: 768px) {
    .container-base {
        flex-direction: column;
    }
}

.menu-wrap a {
    color: #b8b7ad;
}

    .menu-wrap a:hover,
    .menu-wrap a:focus {
        color: var(--bs-secondary);
    }

.content-wrap {
    flex: 1;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.content {
    position: relative;
    background: #dddddd;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
}

    .content::before {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        content: '';
        opacity: 0;
        -webkit-transform: translate3d(100%,0,0);
        transform: translate3d(100%,0,0);
        -webkit-transition: opacity 0.3s, -webkit-transform 0s 0.3s;
        transition: opacity 0.3s, transform 0s 0.3s;
    }

/* Menu Button */
.menu-button {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
    width: 58px;
    height: 58px;
    border: none;
    text-indent: -9999px;
    color: var(--bs-primary);
    background: transparent;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

    .menu-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2em;
        height: 1.5em;
        transform: translate(-50%, -50%);
        background: linear-gradient(currentColor 20%, transparent 20%, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%, transparent 80%, currentColor 80%);
        pointer-events: none;
    }

    .menu-button:hover {
        opacity: 0.6;
    }

/* Menu */
.menu-wrap {
    position: absolute;
    opacity: 0;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
}

.menu-top {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    align-items: center;
    justify-content: flex-end;
    background: var(--bs-primary);
    padding-right: 1em;
    z-index: 999;
}

.show-menu .menu-top {
    display: flex;
}

.menu-side {
    width: 300px;
    margin-top: 58px;
    overflow-y: auto;
    max-height: 100vh;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .menu-side {
        width: 100%;
    }
}

.icon-list {
    display: flex;
}

    .icon-list a {
        margin: 0 1em 0 0;
        padding: 0;
        color: #b8b7ad;
    }

        .icon-list a:hover,
        .icon-list a:focus {
            color: var(--bs-secondary);
        }

@media screen and (max-width: 32em) {
    .icon-list {
        padding-left: 1em;
    }
}

.menu-side a {
    display: block;
    padding: 0.5em;
    font-size: 12px;
}

    .menu-side a:first-child {
        /*  border-top: 1px solid rgba(0, 0, 0, 0.1);*/
    }

    .menu-side a i {
        vertical-align: middle;
        font-size: 12px;
        margin-right: 8px;
    }

.menu-side > ul > li {
    margin-bottom: 8px;
}

.menu-side ul.submenu,
.menu-side ul.subsubmenu {
    margin-left: 0;
}

/* Shown menu */
.show-menu .menu-wrap {
    opacity: 1;
}

.show-menu .content-wrap {
    -webkit-transform: translate3d(300px,0,0);
    transform: translate3d(300px,0,0);
}

.show-menu .menu-button {
    -webkit-transform: none;
    transform: none;
    color: #b8b7ad;
}

.show-menu .content::before {
    opacity: 1;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* Eliminar las viñetas y márgenes en li y ul dentro de .menu-side */
.menu-side li, .menu-side ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Agregar un espacio de 20px de margen izquierdo para cada nivel de indentación */
.menu-side li {
    margin-left: 20px;
}

/* También puedes ajustar la indentación de los subsubmenús si es necesario */
.menu-side ul.subsubmenu {
    margin-left: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo ahumado con opacidad */
    z-index: 1000; /* Asegura que esté por encima de todo el contenido */
}

.loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1001; /* Asegura que esté por encima del fondo ahumado */
}
