﻿root {
    --cada-item: 28px;
    --cantidad-items: 2;
}

body {
    margin: 0;
    font-family: 'Georgia', serif;
    background: url('images/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #222;
    height: 100%;
    margin: 0;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 220px;
    background-color: rgb(255, 255, 255,0.75); /* Color con transparencia */
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

    .sidebar h2 {
        font-family: 'Times New Roman', serif;
        margin-bottom: 1.0rem;
        color: rgb(9, 68, 118);
        font-size: 1.1rem;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

    .sidebar li {
        margin-bottom: 1rem;
    }

    .sidebar a {
        text-decoration: none;
        font-size: 1.2rem;
        color: rgb(9, 68, 118);
        font-family: 'Times New Roman', serif;
    }

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 👈 evita que se corte arriba */
    padding: 2rem;
    width: 100%;
    min-height: 100vh; /* 👈 permite crecer si el contenido lo requiere */
    overflow-y: auto;
    box-sizing: border-box;
}

.form-box {
    background-color: rgba(255, 255, 250, 0.95);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    margin-top: 6rem; /* 👈 separa del top visualmente */
}

    .form-box h1,
    .form-box h2 {
        font-family: 'Times New Roman', serif;
        margin-top: 0;
        color: black;
    }

    .form-box p {
        font-family: 'Times New Roman', serif;
        margin-top: 0;
        color: black;
    }


form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

input[type="text"],
input[type="file"] {
    /*    display: block;*/
    width: 100%;
    margin-top: 0.5rem;
    /*    padding: 0.5rem;*/
    font-family: inherit;
    box-sizing: border-box;
}

button {
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: #3e2f23;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

    button:hover {
        background-color: #2e2119;
    }

ul {
}

    ul li {
        position: relative;
        padding: 5px;
        color: white;
        cursor: pointer;
    }

nav ul ul {
    height: 0px;
    overflow: hidden;
    transition: 2s;
    counter-reset: items;
}



nav ul li:hover ul {
    height: 90px;
    padding-top: 20px;
    margin-bottom: -20px;
    /*
    height: 100%;
    max-height: calc( counter(items) * var(--cada-item) );
    */
}

.fila {
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

.mi-detailsview {
    width: 100%;
    border-collapse: collapse;
}

    .mi-detailsview th {
        background-color: #007bff;
        color: white;
        padding: 10px;
        text-align: left;
    }

    .mi-detailsview td {
        padding: 10px;
        border: 1px solid #ccc;
    }




html, body * {
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.body-formulario {
    background: linear-gradient( rgba(246,247,249,0.8), rgba(246,247,249,0.8)), no-repeat center center fixed;
    background-size: cover;
}

.body-login {
    background-image: url('images/background.png');
    background-size: cover;
    background-attachment: fixed;
}



.container {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 100px;
}

.frame {
    height: 575px;
    background: linear-gradient(rgb(37, 81, 151, 0.70), rgb(0 0 0 / 95%)) no-repeat center center;
    background-size: cover;
    margin-left: auto;
    margin-right: auto;
    border-top: solid 1px rgba(255,255,255,.5);
    border-radius: 5px;
    box-shadow: 0px 2px 7px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all .5s ease;
}

.frame-long {
    height: 615px;
}

.frame-short {
    height: 400px;
    margin-top: 50px;
    box-shadow: 0px 2px 7px rgba(0,0,0,0.1);
}

.nav {
    width: 100%;
    height: 100px;
    padding-top: 40px;
    opacity: 1;
    transition: all .5s ease;
}

.nav-up {
    transform: translateY(-100px);
    opacity: 0;
}

li {
    padding-left: 10px;
    font-size: 18px;
    display: inline;
    text-align: left;
    text-transform: uppercase;
    padding-right: 10px;
    color: #ffffff;
}

.signin-active a {
    padding-bottom: 10px;
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: solid 2px #FFFFFF;
    transition: all .25s ease;
    cursor: pointer;
}

.signin-inactive a {
    padding-bottom: 0;
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
}

.signup-active a {
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    border-bottom: solid 2px #FFFFFF;
    padding-bottom: 10px;
}

.signup-inactive a {
    cursor: pointer;
    color: rgba(255,255,255,.3);
    text-decoration: none;
    transition: all .25s ease;
}

.form-signin {

    height: 375px;
    font-size: 16px;
    font-weight: 300;
    padding-left: 37px;
    padding-right: 37px;
    padding-top: 55px;
    transition: opacity .5s ease, transform .5s ease;
}

.form-signin-left {
    transform: translateX(-400px);
    opacity: .0;
}

.form-signup {

    height: 375px;
    font-size: 16px;
    font-weight: 300;
    padding-left: 37px;
    padding-right: 37px;
    padding-top: 55px;
    position: relative;
    top: -375px;
    left: 400px;
    opacity: 0;
    transition: all .5s ease;
}
.frame,
.form-signin,
.form-signup {
    width: 100%;
    max-width: 430px;
}

.form-signup-left {
    transform: translateX(-399px);
    opacity: 1;
}

.form-signup-down {
    top: 0px;
    opacity: 0;
}

.success {
    width: 80%;
    height: 150px;
    text-align: center;
    position: relative;
    top: -890px;
    left: 450px;
    opacity: .0;
    transition: all .8s .4s ease;
}

.success-left {
    transform: translateX(-406px);
    opacity: 1;
}

.successtext {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    margin-top: -35px;
    padding-left: 37px;
    padding-right: 37px;
}

#check path {
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: .85px;
    stroke-dasharray: 60px 300px;
    stroke-dashoffset: -166px;
    fill: rgba(255,255,255,.0);
    transition: stroke-dashoffset 2s ease .5s, fill 1.5s ease 1.0s;
}

#check.checked path {
    stroke-dashoffset: 33px;
    fill: rgba(255,255,255,.03);
}

.form-signin input, .form-signup input {
    color: rgb(0 0 0 / 95%);
    font-size: 18px;
}

.form-styling {
    width: 100%;
    height: 35px;
    padding-left: 15px;
    border: none;
    border-radius: 20px;
    margin-bottom: 20px;
    background: rgba(255,255,255,.2);
}

label {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 13px;
    padding-left: 15px;
    padding-bottom: 10px;
    color: rgba(255,255,255,.7);
    display: block;
}

:focus {
    outline: none;
}



[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    display: none;
}

    [type="checkbox"]:not(:checked) + label,
    [type="checkbox"]:checked + label {
        position: relative;
        padding-left: 85px;
        padding-top: 2px;
        cursor: pointer;
        margin-top: 8px;
    }

        [type="checkbox"]:not(:checked) + label:before,
        [type="checkbox"]:checked + label:before,
        [type="checkbox"]:not(:checked) + label:after,
        [type="checkbox"]:checked + label:after {
            content: '';
            position: absolute;
        }

        [type="checkbox"]:not(:checked) + label:before,
        [type="checkbox"]:checked + label:before {
            width: 65px;
            height: 30px;
            background: rgba(255,255,255,.2);
            border-radius: 15px;
            left: 0;
            top: -3px;
            transition: all .2s ease;
        }

        [type="checkbox"]:not(:checked) + label:after,
        [type="checkbox"]:checked + label:after {
            width: 10px;
            height: 10px;
            background: rgba(255,255,255,.7);
            border-radius: 50%;
            top: 7px;
            left: 10px;
            transition: all .2s ease;
        }

        /* on checked */
        [type="checkbox"]:checked + label:before {
            background: #0F4FE6;
        }

        [type="checkbox"]:checked + label:after {
            background: #ffffff;
            top: 7px;
            left: 45px;
        }

        [type="checkbox"]:checked + label .ui,
        [type="checkbox"]:not(:checked) + label .ui:before,
        [type="checkbox"]:checked + label .ui:after {
            position: absolute;
            left: 6px;
            width: 65px;
            border-radius: 15px;
            font-size: 14px;
            font-weight: bold;
            line-height: 22px;
            transition: all .2s ease;
        }

        [type="checkbox"]:not(:checked) + label .ui:before {
            content: "no";
            left: 32px;
            color: rgba(255,255,255,.7);
        }

        [type="checkbox"]:checked + label .ui:after {
            content: "yes";
            color: #ffffff;
        }

[type="checkbox"]:focus + label:before {
    box-sizing: border-box;
    margin-top: -1px;
}

.btn-signup {
    float: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-align: center;
    color: #1059FF;
    padding-top: 8px;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 20px;
    margin-top: 23px;
    background-color: #1059FF;
}

.btn-signin {
    float: left;
    padding-top: 8px;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 20px;
    margin-top: -8px;
    color: darkred;
}

.btn-animate {
    float: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255, 1);
    padding-top: 8px;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 20px;
    margin-top: 23px;
    background-color: rgba(16,89,255, 1);
    left: 0px;
    top: 0px;
    transition: all .5s ease, top .5s ease .5s, height .5s ease .5s, background-color .5s ease .75s;
}

.btn-animate-grow {
    width: 130%;
    height: 625px;
    position: relative;
    left: -55px;
    top: -420px;
    color: rgba(255,255,255,0);
    background-color: rgba(16,89,255, 1);
}

a.btn-signup:hover, a.btn-signin:hover {
    cursor: pointer;
    background-color: #b61818;
    transition: background-color .5s;

    @media screen and (max-width: 600px) {
        .sidebar {
            width: 100%;
            padding: 1rem;
            text-align: center;
        }

        .main-content {
            flex-direction: column;
            padding: 1rem;
        }

        .form-box {
            padding: 1rem;
            font-size: 14px;
        }

        .frame {
            height: auto;
            margin: 20px;
        }

        .form-signin,
        .form-signup {
            padding: 20px;
        }
    }
}
.btn-auditoria {
    width: 100%;
    padding: 10px 10px;
    border-radius: 6px;
    background-color: #094576;
    color: white;
    border: none;
    cursor: pointer;
    font-size:15px;
}

    .btn-auditoria:hover {
        background-color: #0c47cc;
    }