*{
    padding: 0;
    margin:0;
    font-family: sans-serif;
}

/* login */
.login{
    width: 100%;
    height: 100vh;
    background-color: #793e3910;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.login .error{
    padding: 10px;
    display: block;
    margin:10px 0 0 0;
    border-radius: 5px;
    background-color: #fed5d1;
    color: #db0b0b;
}


.login .login-form{
    width: 30%;
    padding:0  10%;
    background-color: #F8EEE6;
    height: 100vh;
    display: flex;
    align-items: center;
}

.login .info-home{
    width: 50%;
    height: 100vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #721c24;
}

.login .info-home img{
    position: absolute;
    width: 105%;
    height: 105%;
    left: -2%;
    left: -2%;
    object-fit: cover;
    z-index: 1;
    filter: blur(3px);
    opacity: .3;
}

.login .info-home h1{
    position: relative;
    z-index:5;
    font-size: 3em;
    font-weight: 600;
    color: #ffffff;
}

@media(max-width:800px){
    .login{
        height: auto;
    }
    .login .login-form{
        width: 80%;
        min-height: 90vh;
        height: auto;
        padding: 0px 10%;
    }

    .login .info-home{
        width: 100%;
        height: auto;
        padding: 5% 0;
        font-size: 20px;
        position: absolute;
        top:0;
        left: 0;
    }

    .login .info-home h1{
        font-size: 20px;
    }
}

.login .form{
    width: 100%;
    max-width: 300px;
    margin:auto;
}

.login .form img{
    max-width: 100px;
    margin:0 0 30px 0;
}

.login .form  h2{
    font-size: 18px;
    color: #313131;
}

.login .form label{
    display: block;
    margin:10px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #414141;
}

.login .form input[type="text"], 
.login .form input[type="password"]{
    padding: 14px 2%;
    width: 96%;
    font-size: 14px;
    border-radius: 5px;
    border:none;
    background-color: #793e3910;
    outline: none;
}

.login .form button{
    background-color: #793e39;
    border:none;
    border-radius: 5px;
    margin:20px 0 0 0;
    padding:14px 50px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

.login .form button:hover, 
.login .form button:focus{
    background-color: #721c24;
}

body{
    background-color: #f9f9f9;
}
header{
    background-color: #F8EEE6;
    width: 95%;
    padding: 0 2.5%;
    display: flex;  
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top:0;
    z-index: 999;
    left: 0;
}

@media(max-width:800px){
    header{
        position: relative;
    }
}

/* search-box */
.search-box{
    width: 40%;
    text-align: center;
}

.search-box form{
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box form input[type="text"]{
    padding: 12px 1%;
    border-radius: 5px 0 0 5px;
    border:none;
    width: 88%;
    outline: none;
}

.search-box form button{
    padding: 12px 1%;
    background-color: #BF4A3F;
    border-radius: 0 5px 5px 0;
    border:none;
    width: 10%;
    outline: none;
    cursor: pointer;
    color: #ffffff;
}

@media(max-width:800px){
    .search-box{
        width: 50%;
        margin:0 1%; 
    }
    .search-box form button{
        padding: 12px 0;
        width: 45px;
        text-align: center;
    }
}

header .logo{
    width: 70px;
}

header .logo img{
    width: 100%;
}

header .logout{
    line-height: 40px;
}


header .logout span{
    margin:0 5px 0 0;
}

@media(max-width:800px){
    header .logout{
        margin:0 80px 0 0;
    }

    header .logout span{
        display: none;
    }
}

header .logout a{
    display: block;
    padding: 0 30px;
    background-color: #BF4A3F;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: all .3s ease;
}

header .logout a:hover{
    background-color: #793e39;
}

#btn-nav {
    display: none;
}




@media(max-width:800px){
    .btn-nav{
        display: block;
        position: absolute;
        width: 48px;
        height: 48px;
        background-color: #793e39;
        z-index: 999;
        right: 20px;
        top:10px;
        border-radius: 5px;
        cursor: pointer;
    }

    .btn-nav span{
        position: absolute;
        width: 60%;
        height: 2px;
        background-color: #ffffff;
        left: 20%;
        transition: all .3s ease;
    }

    .btn-nav span:nth-child(1){
        top:13px;
    }

    .btn-nav span:nth-child(2){
        top:23px;
    }

    .btn-nav span:nth-child(3){
        top:33px;
    }

    #btn-nav:checked ~ label span:nth-child(1){
        transform: rotate(45deg);
        top:22px;
    }

    #btn-nav:checked ~ label span:nth-child(2){
        transform: scale(0);
        top:22px;
    }

    #btn-nav:checked ~ label span:nth-child(3){
        transform: rotate(-45deg);
        top:22px;
    }
    
}

/* aside */
aside{
    width: 250px;
    top:65px;
    background-color: #ffffff;
    height: 100vh;
    position: fixed;
}

@media(max-width:800px){
    aside{
        position: absolute;
        left: 0;
        top:0;
        width: 60%;
        margin:0;
        z-index: 9999;
        text-align: center;
        transform: translateX(-100%);
        transition: all .3s ease;
    }

    #btn-nav:checked ~ aside{
        transform: translateX(0);
    }
}

aside .wellcome{
    padding: 80px 0px 0 0px;
    text-align: center;
}

aside .wellcome .icon {
    display: block;
    line-height: 80px;
    width: 80px;
    margin: 0 auto 20px auto;
    background-color: #BF4A3F;
    color: #ffffff;
    border-radius: 80px;
    font-size: 50px;
    font-weight: 900;
    pointer-events: none;
}


aside .wellcome strong{
    display: block;
    font-size: 1.1em;
    width: 100%;
    font-weight: 400;
    color: #721c24;
}

/* nav */
aside nav{
    padding: 40px 10% 20px 10%;
}

aside nav ul li{
    list-style: none;
}

aside nav ul li a{
    display: block;
    text-decoration: none;
    color: #793e39;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: solid 1px #793e3920;
    transition: all .3s ease;
}

aside nav ul li a:hover{
    color: #313131;
}

aside nav ul li:last-child a{
    border:none;
}

aside nav ul li a i{
    margin:0 5px 0 0;
    display: inline-block;
    transition: all .3s ease;
}

aside nav ul li a:hover i{
    margin:0 10px 0 0;
}

/* content */
.content{
    margin:90px 20px 20px 270px;
}

@media(max-width:800px){
    .content{
        margin:0;
        padding: 10px;
    }
}

/* columns */
.columns{
    display: flex;
    gap:2%;
    justify-content: space-between;
    flex-wrap: wrap;
}

.colum-1 section{
    width: 96%;
    padding: 10px 2%;
}

.colum-3 section{
    width: 28%;
    padding: 10px 2%;
}

.colum-2 section{
    width: 45%;
    padding: 10px 2%;
}

.colum-5 section{
    width: 14%;
    padding: 10px 2%;
}

@media(max-width:800px){
    .colum-3 section,
    .colum-2 section,
    .colum-5 section{
        width: 96%;
    }
}


.btn-1{
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    border:none;
    color: #ffffff;
    background-color: #BF4A3F;
    font-weight: 400;
    outline: none;
    cursor: pointer;
    transition: all .3s ease;
    border-radius: 5px;
}

.btn-1:hover{
    background-color: #793e39;
}

/* modal */
.modal-1 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Modal visible with fade-in effect */
.modal-1 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    pointer-events: none;
}

.modal-1 .close{
    font-size: 20px;
    color: #ffffff;
    position: absolute;
    top:-45px;
    right: -25px;
    cursor: pointer;
}

.modal-1.show {
    opacity: 1;
    pointer-events: all;
}

.content-modal {
    width: 700px;
    max-width: 50%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    position: relative;
}

@media(max-width:800px){
    .content-modal {
        max-width: 85%;
    }
}

.content-modal p{
    margin:10px 0;
}

.content-modal span{
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #515151;
}

.content-modal input[type="text"],
.content-modal input[type="email"]{
    padding: 14px 2%;
    width: 96%;
    border-radius: 5px;
    border:solid 1px #dedede;
    outline: none;
}

.content-modal button{
    background-color:#BF4A3F;
    color: #ffffff;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    padding: 16px 40px;
    border:none;
    transition: all .3s ease;
}


.content-modal button:hover{
    background-color: #793e39;
}


#loaderMessage {
    font-size: 16px;
    color: #555;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-spin6 {
    font-size: 20px;
}

.respuesta {
    font-size: 22px;
    padding: 20px 10px;
    margin-top: 10px;
    text-align: center;
}

.respuesta.error {
    background-color: #f8d7da;
    color: #721c24;
}

.respuesta.success {
    background-color: #d4edda;
    color: #155724;
}

/* Animación para el spinner */
.icon-spinner {
    font-size: 20px;
    margin-right: 5px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* table-socios */
.table-socios{
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
}



@media(max-width:800px){
    .nmv{
        display: none;
    }

    .table-socios{
        max-width: 100%;
        overflow: scroll;
    }
}

.table-socios tr:nth-child(1) td{
    padding: 10px;
    background-color: #793e39;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.table-socios tr td{
    font-size: 14px;
    padding: 10px;
    color: #515151;
}

.table-socios tr td a{
    text-decoration: none;
    background-color: #793e39;
    font-size: 12px;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
}

@media(max-width:800px){
    .table-socios tr td a{
        line-height: 30px;
        display: block;
        text-align: center;
    }
}

.table-socios tr:nth-child(even) td{
    background-color: #fcf4f4;
}

.not-found{
    padding: 20px;
}

.not-found h2{
    font-size: 30px;
    font-weight: 300;
    position: relative;
}

.not-found h2:after{
    content: "";
    position: absolute;
    width: 100px;
    height: 2px;
    background-color: #793e39;
    left: 52px;
    bottom: 0px;
}

.not-found i{
    color: #BF4A3F;
}

.not-found p{
    padding: 20px 51px;
    font-size: 17px;
    color: #212121;

}

/* tips */
.tips{
    padding: 30px 20px;
    background-color: #793e3910;
    display: block;
    width: 100%;
    border-radius: 10px;
}

.tips h2{
    font-size: 20px;
    margin:0 0 20px 0;
}

.tips p{
    padding:14px 0;
    border-bottom:  dashed 1px #dedede;
    font-size: 18px;
    font-weight: 600;
    color: #313131;
    
}

.tips p strong{
    display: block;
    color: #721c24;
    font-size: 14px;
}

.tips p:last-child{
    border:none;
}

.box-historial h2{
    font-size: 20px;
    margin:20px 0 20px 0;
}

.form-comentarios textarea{
    padding: 12px 2%;
    width: 96%;
    border:solid 1px #dedede;
    border-radius: 5px;
    outline: none;
    resize: vertical;
    margin:0 0 10px 0;
}

.form-comentarios button{
    padding: 12px 2%;
    border:none;
    color: #ffffff;
    background-color: #721c24;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.form-comentarios button:hover{
    background-color: #793e39;
}

.tips input[type="checkbox"] {
    display: none;
}

.tips input[type="checkbox"] + label {
    display: inline-block;
    width: 50px;  
    height: 25px; 
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
    transform: translateY(7px);
    margin:0 0 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tips input[type="checkbox"]:checked + label {
    background-color: #4CAF50; 
}

.tips label::after {
    content: "";
    position: absolute;
    top: 3px; 
    left: 3px; 
    width: 20px; 
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease; 
}

.tips input[type="checkbox"]:checked + label::after {
    transform: translateX(25px); 
}

/* historial */
.historial{
    margin:20px 0;
}

.historial article{
    padding: 10px;
    background-color: #ffffff;
    margin:5px 0;
    transition: all .3s ease;
}

.historial article:hover{
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
}

.historial article:last-child{
    border:none;
}

.historial article h3{
    font-size: 15px;
    font-weight: 300;
    color: #313131;
}

.historial article p{
    font-size: 12px;
    padding: 10px 0;
    margin:0 0 10px 0;
    border-bottom:dotted 1px #dedede;
    text-align: right;
    color: #793e39;
}

.formDonaciones{
    padding: 10px;
    border-radius: 5px;
    background-color: #ffffff;
    margin:20px 0 0 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.formDonaciones h2{
    width: 100%;
    margin:0 0 5px 0;
    font-size: 15px;
}

.formDonaciones input[type="number"]{
    padding: 14px 2%;
    border:solid 1px #dedede;
    width: 70%;
    outline: none;
}

.formDonaciones button{
    padding: 14px 0%;
    border:none;
    background-color: #721c24;
    color: #ffffff;
    width: 25%;
    outline: none;
    cursor: pointer;
}



.formDonaciones2{
    padding: 10px;
    border-radius: 5px;
    background-color: #ffffff;
    margin:20px 0 0 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.formDonaciones2 h2{
    width: 100%;
    margin:0 0 5px 0;
    font-size: 15px;
}

.formDonaciones2 input[type="text"]{
    padding: 14px 2%;
    border:solid 1px #dedede;
    width: 70%;
    outline: none;
}

.formDonaciones2 button{
    padding: 14px 0%;
    border:none;
    background-color: #721c24;
    color: #ffffff;
    width: 25%;
    outline: none;
    cursor: pointer;
}




/* table-donaciones */
.table-donaciones{
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

@media(max-width:800px){

    .table-donaciones{
        max-width: 100%;
        overflow: scroll;
    }
}

.table-donaciones tr:nth-child(1) td{
    padding: 10px;
    background-color: #793e39;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.table-donaciones tr td{
    font-size: 14px;
    padding: 10px;
    color: #515151;
}

.table-donaciones tr td a{
    text-decoration: none;
    background-color: #793e39;
    font-size: 12px;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
}

@media(max-width:800px){
    .table-donaciones tr td a{
        line-height: 30px;
        display: block;
        text-align: center;
    }
}

.table-donaciones tr:nth-child(even) td{
    background-color: #dedede;
}


/* table-totales */
.table-totales{
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

@media(max-width:800px){

    .table-totales{
        max-width: 100%;
        overflow: scroll;
    }
}

.table-totales tr:nth-child(1) td{
    padding: 10px;
    background-color: #793e39;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.table-totales tr td{
    font-size: 14px;
    padding: 10px;
    color: #515151;
}

.table-totales tr td a{
    text-decoration: none;
    background-color: #793e39;
    font-size: 12px;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
}

@media(max-width:800px){
    .table-totales tr td a{
        line-height: 30px;
        display: block;
        text-align: center;
    }
}

.table-totales tr:nth-child(even) td{
    background-color: #dedede;
}


/* 12-11-2024 */
.btn-editar a{
    display: inline-block;
    line-height: 50px;
    width: 50px;
    background-color: #721c24;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    text-align: center;
    float: right;
    transition: background .3s ease;
}

.btn-editar a:hover{
    background-color: #793e39;
}

.formEditar input[type="text"],
.formEditar input[type="email"]{
    padding: 12px 1%;
    width: 98%;
    border:solid 1px #ffffff;
    background-color: #ffffff;
    outline: none;
    border-radius: 3px;
    font-size: 16px;
}
.formEditar select{
    padding: 12px 1%;
    width: 100%;
    cursor: pointer;
    border:none;
    background-color: #ffffff;
    outline: none;
    border-radius: 3px;
    font-size: 16px;
}

.formEditar  button{
    padding: 16px 40px;
    border:none;
    border-radius: 5px;
    background-color: #721c24;
    color: #ffffff;
    outline: none;
    cursor: pointer;
    margin:10px 0 0 0;
}

.formEditar button:hover, 
.formEditar button:focus{
    background-color: #793e39;
}


.no-aportes,
.no-result{
    color: #666666;
    padding: 50px 0;
    text-align: center;
    display: block;
    font-weight: 300;
}

/* home */
.wellcome-home{
    padding: 20px;
    color: #313131;
}

.wellcome-home h2{
    font-size: 22px;
}

.wellcome-home p{
    text-align: justify;
    line-height: 35px;
    margin:20px 0;
    font-size: 16px;
    color: #555555;
}

.donaciones-home{
    text-align: center;
    padding: 30px;
    background-color: #793e3910;
    font-size: 18px;
    border-radius: 10px;
}

.donaciones-home i{
    font-size: 50px;
    color: #721c24;
    display: block;
    margin:0 0 20px 0;
}

.donaciones-home span{
    display: block;
    font-size: 40px;
    font-weight: 600;
    color: #721c24;
    margin:20px 0 0 0;
}

.info-donacion{
    padding: 20px;
    font-size: 18px;
    color: #313131;
    border-radius: 10px;
    background-color: #ffffff;
    margin:0 0 30px 0;
}

.info-donacion p{
    font-size: 16px;
    margin:14px 0;
    line-height: 30px;
    text-align: justify;

}

.btn-donacion{
    margin:10px 0;
}

.btn-donacion a{
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    background-color: #721c24;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    transition: all .3s ease;
}

.btn-donacion a:hover{
    background-color: #793e39;
}

.form-compras{
    margin:20px 0;
    width: 100%;
}

.form-compras input[type="text"]{
    padding: 16px 2%;
    width: 45%;
    border:none;
    outline: none;
    background-color: #ffffff;
    border-radius: 5px;
    font-size: 16px;
}

.form-compras button{
    padding: 16px 30px;
    background-color: #721c24;
    color: #ffffff;
    border:none;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin:10px 0 0 0;
}

.level-donation {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto;
}

/* Rangos de donaciones (0-10) */
.status-donation--0 { background-color: #dedede;  }
.status-donation--1 { background: linear-gradient(135deg, #c6e0ff, #99c2ff); }
.status-donation--2 { background: linear-gradient(135deg, #b3f0c9, #80e0a7); }
.status-donation--3 { background: linear-gradient(135deg, #8df0b3, #66d98f); }
.status-donation--4 { background: linear-gradient(135deg, #66cc80, #4da64d); }
.status-donation--5 { background: linear-gradient(135deg, #5cb85c, #47a947); }
.status-donation--6 { background: linear-gradient(135deg, #48c774, #3a9c59); }
.status-donation--7 { background: linear-gradient(135deg, #28a745, #2c974b); }
.status-donation--8 { background: linear-gradient(135deg, #218838, #1e6e2d); }
.status-donation--9 { background: linear-gradient(135deg, #1e7e34, #155d27); }
.status-donation--10 { background: linear-gradient(135deg, #155d27, #0d3d1a); }
