:root {
    --color-morado: #8D2F88 ;
    --color-verde: #BFFC19;
    --color-rosa: #FB1CAB;
    --color-rosaOscuro: #E6267C;
    --color-amarillo: #F8B40B;
    --color-texto: #222222;
    --color-blanco: #ffffff;
    --color-gris: #A1A1A1;
    --color-verde: #C5D205;
    --color-negro: #000;
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Nunito Sans';
    /*overflow: hidden;*/
}

.font-miches {
    font-family: 'Miches';
}

.font-nun {
    font-family: 'Nunito Sans';
    font-weight: 300;
}

.color-rosa{
    color: var(--color-rosaOscuro)!important;
}

.color-morado{
    color: var(--color-morado)!important;
}

body{
    margin-top: 30px;
}

/* === login ==*/

.logo-container {
    text-align: center;
}

body.login_control {
    background-image: url(../img/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 100vh;
    font-family: 'Nunito Sans';
    padding: 5%;
}
.login-card {
    background: var(--color-negro);
    color: #333;
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    margin-top: 5%;
}

.login-card input {
    padding: 10px;
    margin: 8px auto;
    border: 1px solid #ffffff22;
    border-radius: 3px;
    background: #474747;
    color: #FFF;
}

.login-card input::placeholder{
    color: var(--color-blanco);
    font-style: italic;
}

.login-card h2 {
    color: var(--color-blanco);
    font-weight: 700;
    font-size: 32px;
}
.login-card p {
    color: var(--color-blanco);
    margin-bottom: 1.5rem;
}
.btn-primary {
    background-color: #5e60ce;
    border: none;
    transition: 0.3s;
}
.btn-primary:hover {
    background-color: #4b4dd6;
    transform: scale(1.03);
}
.error {
    color: #b00020;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

button.btn-ingresar {
    background-color: var(--color-verde);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10%;
    margin-bottom: 10%;
    font-family: 'Miches';
}

/* ===== HEADER FIJO ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #F2F2F1;
    z-index: 1050;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    transition: all 0.3s ease;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.main-header.scrolled {
    height: 60px;
    background: #F2F2F1;
}

.main-header img.logo {
    width: 235px;
    /*height: 45px;*/
    transition: all 0.3s ease;
}

.main-header.scrolled img.logo {
    height: 50px;
}

/* === index ===*/



.btn-custom {
      transition: all 0.3s ease;
    }

    .btn-custom:hover {
      transform: scale(1.05);
      opacity: 0.9;
    }

    .section-title {
      color: #6f42c1;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .section-desc {
      color: #555;
      margin-bottom: 30px;
      font-size: 18px;
    }

    .equal-height {
      height: 100%;
    }

    @media (max-width: 992px) {
      .col-lg-6 {
        margin-bottom: 2rem;
      }
    }

a.btn-operacion{
    transition: transform 0.3s ease;
}

a.btn-operacion:hover img {
transform: scale(1.01);
}

a.btn-regresar {
    font-size: 18px;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 2%;
    background: var(--color-morado);
}

a.btn-regresar:hover{
    background-color: var(--color-rosa);
}

/* === HOME ===*/
 body.container-home{
    background-image: url(../img/bg-home.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 100vh;
    font-family: 'Nunito Sans';
    padding-top: 90px !important;
 }

.col-line-right {
    border-right: 1px dashed #606060;
}

/* === FOOTER NUEVO === */
.main-footer {
    margin-top: -40px;
    /* background: white;*/
    text-align: center;
    padding: 40px 30px 20px;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
    overflow: hidden;
}

/* Contenedor de logos */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto 0;
    flex-wrap: wrap;
}

.footer-left img {
    height: 70px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-right img {
    height: 50px;
}

.footer-divider {
    width: 1px;
    height: 50px;
    background-color: var(--color-gris);
}

.footer-right:before {
    content: "Convenio";
    color: var(--color-gris);
}

.footer-left {
    text-align: left;
}

.footer-left img {
    width: 56%;
    height: auto;
    /* max-width: 60%; */
}

/*RESPONSIVE*/

@media (max-width: 768px) {

    .main-header {
        padding: 10px;
    }

    .main-header img.logo {
        width: 211px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-divider {
        display: none;
    }

    .footer-right img {
        height: 40px;
    }
}