/* ======================================================

   ANGUILA SUSHI

   PANEL DE ADMINISTRACIÓN

   CSS COMPLETO

   ====================================================== */


/* ======================================================

   CONFIGURACIÓN GENERAL

   ====================================================== */


* {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    padding: 0;


    min-height: 100vh;


    background: #050505;

    color: #ffffff;


    font-family: Arial, Helvetica, sans-serif;

}


button,

input {

    font-family: inherit;

}


button {

    cursor: pointer;

}


button:disabled {

    cursor: not-allowed;

    opacity: 0.55;

}


button:focus-visible,

input:focus-visible {

    outline: 2px solid #ff4148;

    outline-offset: 3px;

}


/* ======================================================

   CONTENEDOR PRINCIPAL

   ====================================================== */


.admin {

    width: 100%;

    max-width: 820px;


    margin: 0 auto;

    padding: 40px 24px 80px;

}


/* ======================================================

   INICIO DE SESIÓN

   ====================================================== */


.login-admin {

    display: flex;

    align-items: center;

    justify-content: center;


    width: 100%;

    min-height: calc(100vh - 120px);

}


.login-card {

    width: 100%;

    max-width: 430px;


    padding: 38px 32px;


    background: #151515;


    border: 1px solid #303030;

    border-radius: 18px;


    box-shadow:

        0 20px 60px rgba(0, 0, 0, 0.45);

}


/* LOGO */


.logo-admin {

    display: block;


    width: 190px;

    max-width: 100%;

    height: auto;


    margin: 0 auto 28px;


    object-fit: contain;

}


/* TÍTULO LOGIN */


.login-card h1 {

    margin: 0 0 12px;


    font-size: 27px;

    font-weight: 800;


    color: #ffffff;


    text-align: center;

}


.login-card > p:not(.mensaje-login) {

    margin: 0 0 30px;


    color: #aaaaaa;


    font-size: 14px;

    line-height: 1.6;


    text-align: center;

}


/* ETIQUETAS */


.login-card label {

    display: block;


    margin: 17px 0 8px;


    color: #eeeeee;


    font-size: 13px;

    font-weight: 600;

}


/* CAMPOS */


.login-card input {

    display: block;


    width: 100%;

    min-height: 48px;


    padding: 12px 14px;


    border: 1px solid #393939;

    border-radius: 10px;


    background: #202020;

    color: #ffffff;


    font-size: 14px;


    outline: none;


    transition:

        border-color 0.2s ease,

        background 0.2s ease;

}


.login-card input::placeholder {

    color: #777777;

}


.login-card input:focus {

    background: #242424;

    border-color: #e51d2a;

}


/* BOTÓN INICIAR SESIÓN */


#iniciar-sesion {

    width: 100%;

    min-height: 48px;


    margin-top: 27px;

    padding: 12px 18px;


    background: #e51d2a;

    color: #ffffff;


    border: none;

    border-radius: 10px;


    font-size: 14px;

    font-weight: 800;


    transition: background 0.2s ease;

}


#iniciar-sesion:hover {

    background: #c91825;

}


/* MENSAJE LOGIN */


.mensaje-login {

    min-height: 18px;


    margin: 16px 0 0;


    color: #ff626b;


    font-size: 13px;

    line-height: 1.5;


    text-align: center;

}


/* ======================================================

   PANEL DE ADMINISTRACIÓN

   ====================================================== */


.panel-admin {

    width: 100%;

}


/* ======================================================

   ENCABEZADO DEL PANEL

   ====================================================== */


.admin-header {

    display: flex;

    align-items: center;

    justify-content: space-between;


    gap: 24px;


    margin-bottom: 30px;

}


.admin-header > div {

    min-width: 0;

}


.admin-header span {

    display: block;


    margin-bottom: 6px;


    color: #ff3041;


    font-size: 11px;

    font-weight: 900;


    letter-spacing: 1.8px;

}


.admin-header h1 {

    margin: 0;


    color: #ffffff;


    font-size: 27px;

    font-weight: 800;


    line-height: 1.2;

}


/* CERRAR SESIÓN */


.cerrar-sesion {

    flex-shrink: 0;


    min-height: 38px;

    padding: 10px 16px;


    background: #141414;

    color: #eeeeee;


    border: 1px solid #323232;

    border-radius: 9px;


    font-size: 12px;

    font-weight: 500;


    transition: 0.2s ease;

}


.cerrar-sesion:hover {

    background: #252525;

    border-color: #e51d2a;

}


/* ======================================================

   TARJETAS DE ADMINISTRACIÓN

   ====================================================== */


.admin-card {

    display: flex;

    align-items: center;

    justify-content: space-between;


    gap: 25px;


    width: 100%;

    min-height: 120px;


    margin-bottom: 16px;

    padding: 24px;


    background:

        linear-gradient(

            135deg,

            #151515,

            #101010

        );


    border: 1px solid #292929;

    border-radius: 16px;


    transition:

        border-color 0.2s ease,

        background 0.2s ease;

}


.admin-card:hover {

    border-color: #383838;

}


.admin-card > div {

    flex: 1;

    min-width: 0;

}


/* ETIQUETA SUPERIOR */


.admin-etiqueta {

    display: block;


    margin-bottom: 9px;


    color: #888888;


    font-size: 10px;

    font-weight: 900;


    letter-spacing: 1.5px;

}


/* TÍTULOS DE LAS TARJETAS */


.admin-card h2 {

    margin: 0 0 12px;


    color: #ffffff;


    font-size: 20px;

    font-weight: 800;


    line-height: 1.3;

}


/* ======================================================

   ESTADOS

   ====================================================== */


.estado-admin {

    margin: 0;


    color: #aaaaaa;


    font-size: 13px;

    font-weight: 700;


    line-height: 1.6;

}


.estado-admin.activo {

    color: #20bf66;

}


.estado-admin.inactivo {

    color: #ff414f;

}


/* ======================================================

   BOTONES GENERALES DEL PANEL

   ====================================================== */


.boton-control {

    display: inline-flex;

    align-items: center;

    justify-content: center;


    flex-shrink: 0;


    min-width: 155px;

    min-height: 44px;


    padding: 12px 18px;


    border: none;

    border-radius: 10px;


    background: #e51d2a;

    color: #ffffff;


    font-size: 13px;

    font-weight: 800;


    text-align: center;


    transition:

        background 0.2s ease,

        transform 0.2s ease;

}


.boton-control:hover:not(:disabled) {

    transform: translateY(-1px);

}


/* BOTÓN VERDE */


.boton-verde {

    background: #159b52;

    color: #ffffff;

}


.boton-verde:hover:not(:disabled) {

    background: #118343;

}


/* BOTÓN ROJO */


.boton-rojo {

    background: #e51d2a;

    color: #ffffff;

}


.boton-rojo:hover:not(:disabled) {

    background: #c81723;

}


/* ======================================================

   TARJETA MÉTODOS DE PAGO

   ====================================================== */


/* DESCRIPCIÓN DE LA TARJETA */


.admin-card .estado-admin:not(.activo):not(.inactivo) {

    line-height: 1.6;

}


/* BOTÓN PARA ABRIR LA VENTANA */


#abrir-modal-pagos {

    min-width: 155px;


    background: #e51d2a;

    color: #ffffff;


    border: none;

}


#abrir-modal-pagos:hover {

    background: #c81723;

}


/* ======================================================

   MENSAJES GENERALES DEL ADMINISTRADOR

   ====================================================== */


.mensaje-admin {

    margin: 20px 0 0;


    color: #cccccc;


    font-size: 13px;

    line-height: 1.6;


    text-align: center;

}


.mensaje-admin:empty {

    display: none;

}


/* ======================================================

   ANGUILA SUSHI

   VENTANA EMERGENTE DE MÉTODOS DE PAGO

   ====================================================== */


/* ======================================================

   VENTANA PRINCIPAL

   ====================================================== */


#modal-metodos-pago {

    position: fixed;


    inset: 0;


    width: calc(100% - 32px);

    max-width: 480px;

    max-height: 90vh;

    max-height: 90dvh;


    margin: auto;

    padding: 0;


    background: #151515;

    color: #ffffff;


    border: 1px solid #383838;

    border-radius: 18px;


    box-shadow:

        0 20px 70px rgba(0, 0, 0, 0.8);


    overflow-y: auto;

    overscroll-behavior: contain;

}


/* FONDO OSCURO DETRÁS DE LA VENTANA */


#modal-metodos-pago::backdrop {

    background: rgba(0, 0, 0, 0.85);


    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);

}


/* ======================================================

   CONTENIDO INTERNO

   ====================================================== */


.modal-pagos-contenido {

    width: 100%;


    padding: 26px;

}


/* ======================================================

   ENCABEZADO DE LA VENTANA

   ====================================================== */


.modal-pagos-encabezado {

    display: flex;

    align-items: center;

    justify-content: space-between;


    gap: 15px;


    margin-bottom: 14px;

}


.modal-pagos-encabezado h2 {

    margin: 0;


    color: #ffffff;


    font-size: 23px;

    font-weight: 800;


    line-height: 1.3;

}


/* BOTÓN X */


.cerrar-modal-pagos {

    display: flex;

    align-items: center;

    justify-content: center;


    flex-shrink: 0;


    width: 38px;

    height: 38px;


    padding: 0;


    background: #252525;

    color: #ffffff;


    border: 1px solid #353535;

    border-radius: 10px;


    font-size: 26px;

    font-weight: 400;


    cursor: pointer;


    transition: 0.2s ease;

}


.cerrar-modal-pagos:hover {

    background: #e51d2a;

    border-color: #e51d2a;

}


/* ======================================================

   TEXTO EXPLICATIVO

   ====================================================== */


.modal-pagos-contenido

> p:not(#mensaje-metodos-pago) {


    margin: 0 0 25px;


    color: #a5a5a5;


    font-size: 13px;

    line-height: 1.6;

}


/* ======================================================

   GRUPOS DE MÉTODOS DE PAGO

   ====================================================== */


.grupo-metodos-pago {

    min-width: 0;


    margin: 0 0 22px;

    padding: 16px;


    background: #1c1c1c;


    border: 1px solid #343434;

    border-radius: 14px;

}


/* TÍTULOS PARA LLEVAR Y DOMICILIO */


.grupo-metodos-pago legend {

    padding: 0 9px;


    color: #ffffff;


    font-size: 15px;

    font-weight: 800;

}


/* ======================================================

   OPCIONES DE PAGO

   ====================================================== */


.opcion-metodo-pago {

    display: flex;

    align-items: center;

    justify-content: space-between;


    gap: 15px;


    width: 100%;


    margin: 0;

    padding: 14px 10px;


    color: #eeeeee;


    border-bottom: 1px solid #303030;


    font-size: 14px;

    font-weight: 500;


    cursor: pointer;


    transition: background 0.2s ease;

}


.opcion-metodo-pago:last-child {

    border-bottom: none;

}


.opcion-metodo-pago:hover {

    background: #252525;

    border-radius: 8px;

}


/* ======================================================

   INTERRUPTORES DE ACTIVADO / DESACTIVADO

   ====================================================== */


.opcion-metodo-pago input[type="checkbox"] {

    appearance: none;

    -webkit-appearance: none;


    position: relative;


    flex-shrink: 0;


    width: 46px;

    height: 26px;


    margin: 0;


    background: #494949;


    border: 1px solid #555555;

    border-radius: 30px;


    cursor: pointer;


    transition:

        background 0.25s ease,

        border-color 0.25s ease;

}


/* CÍRCULO BLANCO */


.opcion-metodo-pago

input[type="checkbox"]::before {


    content: "";


    position: absolute;


    top: 3px;

    left: 3px;


    width: 18px;

    height: 18px;


    background: #ffffff;


    border-radius: 50%;


    transition: transform 0.25s ease;

}


/* INTERRUPTOR ACTIVADO */


.opcion-metodo-pago

input[type="checkbox"]:checked {


    background: #159447;


    border-color: #159447;

}


/* MOVER CÍRCULO A LA DERECHA */


.opcion-metodo-pago

input[type="checkbox"]:checked::before {


    transform: translateX(20px);

}


/* ACCESIBILIDAD */


.opcion-metodo-pago

input[type="checkbox"]:focus-visible {


    outline: 2px solid #ff4148;

    outline-offset: 3px;

}


/* ======================================================

   BOTONES DE LA VENTANA

   ====================================================== */


.acciones-modal-pagos {

    display: flex;

    align-items: center;


    gap: 12px;


    margin-top: 10px;

}


.acciones-modal-pagos button {

    flex: 1;


    min-height: 46px;


    padding: 12px 14px;


    border-radius: 11px;


    font-size: 13px;

    font-weight: 800;


    transition: 0.2s ease;

}


/* CANCELAR */


#cancelar-modal-pagos {

    background: #2a2a2a;

    color: #ffffff;


    border: 1px solid #444444;

}


#cancelar-modal-pagos:hover {

    background: #393939;

}


/* GUARDAR CAMBIOS */


#guardar-metodos-pago {

    min-width: 0;


    background: #e51d2a;

    color: #ffffff;


    border: 1px solid #e51d2a;

}


#guardar-metodos-pago:hover:not(:disabled) {

    background: #c81723;

}


#guardar-metodos-pago:disabled {

    opacity: 0.5;

    cursor: not-allowed;

}


/* ======================================================

   MENSAJES DEL MODAL

   ====================================================== */


#mensaje-metodos-pago {

    margin: 15px 0 0;


    color: #ff6069;


    font-size: 12px;

    line-height: 1.5;


    text-align: center;

}


#mensaje-metodos-pago:empty {

    display: none;

}


/* ======================================================

   VERSIÓN TABLETA

   ====================================================== */


@media (max-width: 768px) {


    .admin {

        padding: 30px 18px 60px;

    }


    .admin-header h1 {

        font-size: 24px;

    }


    .admin-card {

        padding: 21px;

    }


    .admin-card h2 {

        font-size: 18px;

    }


}


/* ======================================================

   VERSIÓN CELULAR

   ====================================================== */


@media (max-width: 650px) {


    /* CONTENEDOR */


    .admin {

        padding: 25px 15px 50px;

    }


    /* LOGIN */


    .login-admin {

        min-height: calc(100vh - 80px);

    }


    .login-card {

        padding: 28px 20px;

    }


    .login-card h1 {

        font-size: 23px;

    }


    .logo-admin {

        width: 160px;

    }


    /* ENCABEZADO */


    .admin-header {

        align-items: flex-start;

        gap: 14px;

    }


    .admin-header h1 {

        font-size: 21px;

    }


    .admin-header span {

        font-size: 9px;

    }


    .cerrar-sesion {

        min-height: 35px;


        padding: 8px 10px;


        font-size: 11px;

    }


    /* TARJETAS */


    .admin-card {

        flex-direction: column;

        align-items: stretch;


        min-height: auto;


        gap: 20px;


        padding: 20px;


        border-radius: 14px;

    }


    .admin-card h2 {

        font-size: 19px;

    }


    .admin-etiqueta {

        font-size: 9px;

    }


    .boton-control {

        width: 100%;

        min-width: 0;

    }


    /* VENTANA DE PAGOS */


    #modal-metodos-pago {

        width: calc(100% - 24px);


        max-height: 88vh;

        max-height: 88dvh;


        border-radius: 15px;

    }


    .modal-pagos-contenido {

        padding: 20px 16px;

    }


    .modal-pagos-encabezado h2 {

        font-size: 20px;

    }


    .grupo-metodos-pago {

        margin-bottom: 18px;

        padding: 12px;

    }


    .grupo-metodos-pago legend {

        font-size: 14px;

    }


    .opcion-metodo-pago {

        padding: 13px 8px;

        font-size: 13px;

    }


    .acciones-modal-pagos {

        gap: 9px;

    }


    .acciones-modal-pagos button {

        padding: 12px 8px;

        font-size: 12px;

    }


}


/* ======================================================

   PANTALLAS MUY PEQUEÑAS

   ====================================================== */


@media (max-width: 380px) {


    .admin-header {

        flex-direction: column;

    }


    .admin-card {

        padding: 17px;

    }


    .modal-pagos-contenido {

        padding: 18px 12px;

    }


    .opcion-metodo-pago {

        font-size: 12px;

    }


}
