main>.container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer>.container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}


/* add sorting icons to gridview sort links */

a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}


/* align the logout "link" (button in form) of the navbar */

.nav li>form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}


/* =========================================================
   PALETA
========================================================= */

:root {
    --color-primary: #F62440;
    --color-primary-dark: #D91E37;
    --color-primary-light: #FFF0F2;
    --color-secondary: #4274D9;
    --color-secondary-dark: #3562BA;
    --color-secondary-light: #EEF4FF;
    --color-dark: #4A4A4A;
    --color-dark-light: #6B7280;
    --color-bg: #F8F9FB;
    --color-gray: #EAECF0;
    --color-gray-dark: #D9DDE5;
    --color-white: #FFFFFF;
    --color-success: #00C68D;
    --color-success-light: #EAF8F1;
    --color-warning: #F59E0B;
    --color-warning-light: #FFF7E6;
    --color-danger: #DC3545;
    --color-danger-light: #FFF0F1;
    --color-info: #4274D9;
    --color-info-light: #EEF4FF;
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 6px rgba(74, 74, 74, 0.08);
    --shadow: 0 4px 15px rgba(74, 74, 74, 0.10);
}


/* =========================================================
   BODY
========================================================= */

body {
    background: var(--color-bg);
    color: var(--color-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.text-success {
    color: var(--color-success) !important;
}


/* =========================================================
   BOTONES BASE
========================================================= */

.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 9px 16px;
    transition: all .2s ease;
    border-width: 1px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}


/* =========================================================
   BOTÓN PRINCIPAL
========================================================= */

.btn-primary-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 10px rgba(246, 36, 64, .25);
}


/* =========================================================
   BOTÓN SECUNDARIO
========================================================= */

.btn-secondary-custom {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.btn-secondary-custom:hover,
.btn-secondary-custom:focus {
    background: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: #fff;
    box-shadow: 0 4px 10px rgba(66, 116, 217, .25);
}


/* =========================================================
   BOTÓN OUTLINE
========================================================= */

.btn-outline-primary-custom {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary-custom:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-outline-secondary-custom {
    background: transparent;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline-secondary-custom:hover {
    background: var(--color-secondary);
    color: #fff;
}


/* =========================================================
   BOTÓN GRIS
========================================================= */

.btn-gray {
    background: var(--color-gray);
    border-color: var(--color-gray);
    color: var(--color-dark);
}

.btn-gray:hover {
    background: var(--color-gray-dark);
    color: var(--color-dark);
}


/* =========================================================
   BOTÓN ÉXITO
========================================================= */

.btn-success-custom {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.btn-success-custom:hover {
    filter: brightness(.92);
    color: #fff;
}


/* =========================================================
   BOTÓN PELIGRO
========================================================= */

.btn-danger-custom {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: #fff;
}

.btn-danger-custom:hover {
    filter: brightness(.92);
    color: #fff;
}


/* =========================================================
   BOTÓN ICONO
========================================================= */

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}


/* =========================================================
   LABELS
========================================================= */

.label-custom {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}


/* Primary */

.label-primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}


/* Secondary */

.label-secondary {
    background: var(--color-secondary-light);
    color: var(--color-secondary);
}


/* Success */

.label-success {
    background: var(--color-success-light);
    color: var(--color-success);
}


/* Warning */

.label-warning {
    background: var(--color-warning-light);
    color: #B76E00;
}


/* Danger */

.label-danger {
    background: var(--color-danger-light);
    color: var(--color-danger);
}


/* Gray */

.label-gray {
    background: var(--color-gray);
    color: var(--color-dark);
}


/* =========================================================
   INPUTS
========================================================= */

.form-control {
    border: 1px solid var(--color-gray-dark);
    border-radius: var(--radius);
    min-height: 42px;
    color: var(--color-dark);
    transition: all .2s ease;
}

.form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(66, 116, 217, .12);
}


/* =========================================================
   LABEL DE FORMULARIO
========================================================= */

.control-label {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}


/* =========================================================
   CARDS
========================================================= */

.card-custom {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}


/* =========================================================
   CARD CON BORDE DE COLOR
========================================================= */

.card-primary {
    border-left: 4px solid var(--color-primary);
}

.card-secondary {
    border-left: 4px solid var(--color-secondary);
}

.card-success {
    border-left: 4px solid var(--color-success);
}


/* =========================================================
   TITULOS
========================================================= */

.title-custom {
    color: var(--color-dark);
    font-weight: 700;
}

.subtitle-custom {
    color: var(--color-dark-light);
    font-size: 14px;
}


/* =========================================================
   ALERTAS
========================================================= */

.alert-custom {
    border-radius: var(--radius);
    padding: 12px 16px;
    border: 1px solid transparent;
}


/* Primary */

.alert-primary-custom {
    background: var(--color-primary-light);
    border-color: #FFD1D7;
    color: var(--color-primary);
}


/* Secondary */

.alert-secondary-custom {
    background: var(--color-secondary-light);
    border-color: #D5E2FF;
    color: var(--color-secondary);
}


/* Success */

.alert-success-custom {
    background: var(--color-success-light);
    border-color: #C8EBDD;
    color: var(--color-success);
}


/* Warning */

.alert-warning-custom {
    background: var(--color-warning-light);
    border-color: #FFE4B0;
    color: #9A6500;
}


/* Danger */

.alert-danger-custom {
    background: var(--color-danger-light);
    border-color: #FFD0D5;
    color: var(--color-danger);
}


/* =========================================================
   TABLAS
========================================================= */

.table-custom {
    width: 100%;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-custom thead th {
    background: var(--color-gray);
    color: var(--color-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px;
}

.table-custom tbody td {
    padding: 12px;
    border-top: 1px solid var(--color-gray);
}

.table-custom tbody tr:hover {
    background: #FAFBFC;
}


/* =========================================================
   BADGES
========================================================= */

.badge-primary-custom {
    background: var(--color-primary);
    color: #fff;
}

.badge-secondary-custom {
    background: var(--color-secondary);
    color: #fff;
}

.badge-success-custom {
    background: var(--color-success);
    color: #fff;
}

.badge-warning-custom {
    background: var(--color-warning);
    color: #fff;
}

.badge-danger-custom {
    background: var(--color-danger);
    color: #fff;
}


/* =========================================================
   DIVISORES
========================================================= */

.divider {
    border-top: 1px solid var(--color-gray);
    margin: 20px 0;
}


/* =========================================================
   LINKS
========================================================= */

a {
    color: var(--color-secondary);
    text-decoration: none;
}

a:hover {
    color: var(--color-secondary-dark);
}


/* =========================================================
   SOMBRAS
========================================================= */

.shadow-sm-custom {
    box-shadow: var(--shadow-sm);
}

.shadow-custom {
    box-shadow: var(--shadow);
}


/* =========================================================
   TEXTO
========================================================= */

.text-primary-custom {
    color: var(--color-primary) !important;
}

.text-secondary-custom {
    color: var(--color-secondary) !important;
}

.text-dark-custom {
    color: var(--color-dark) !important;
}

.text-muted-custom {
    color: var(--color-dark-light) !important;
}

.text-success-custom {
    color: var(--color-success) !important;
}

.text-danger-custom {
    color: var(--color-danger) !important;
}


/* =========================================================
   FONDOS
========================================================= */

.bg-primary-custom {
    background-color: var(--color-primary) !important;
    color: #fff;
}

.bg-secondary-custom {
    background-color: var(--color-secondary) !important;
    color: #fff;
}

.bg-gray-custom {
    background-color: var(--color-gray) !important;
}

.bg-light-custom {
    background-color: var(--color-bg) !important;
}


/* =========================================================
   ESTADOS
========================================================= */

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot-primary {
    background: var(--color-primary);
}

.status-dot-secondary {
    background: var(--color-secondary);
}

.status-dot-success {
    background: var(--color-success);
}

.status-dot-warning {
    background: var(--color-warning);
}

.status-dot-danger {
    background: var(--color-danger);
}


/* =========================================================
   UTILIDADES
========================================================= */

.rounded-custom {
    border-radius: var(--radius);
}

.rounded-lg-custom {
    border-radius: var(--radius-lg);
}

.cursor-pointer {
    cursor: pointer;
}


/* =========================================================
   INPUTS - MODERN UI
========================================================= */

.form-control,
.form-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    background-color: #fff;
    border: 1px solid #D9DDE5;
    border-radius: 9px;
    color: #4A4A4A;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}


/* Placeholder */

.form-control::placeholder {
    color: #A3A8B2;
    opacity: 1;
}


/* Hover */

.form-control:hover,
.form-select:hover {
    border-color: #BFC5D0;
}


/* Focus */

.form-control:focus,
.form-select:focus {
    border-color: #4274D9;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(66, 116, 217, .12);
    color: #4A4A4A;
}


/* Input inválido */

.form-control.is-invalid,
.form-control.has-error {
    border-color: #F62440;
    box-shadow: 0 0 0 3px rgba(246, 36, 64, .10);
}


/* Input válido */

.form-control.is-valid {
    border-color: #22A06B;
    box-shadow: 0 0 0 3px rgba(34, 160, 107, .10);
}


/* Disabled */

.form-control:disabled,
.form-control[readonly] {
    background-color: #F5F6F8;
    color: #8C929D;
    cursor: not-allowed;
}


/* =========================================================
   LABELS
========================================================= */

.control-label,
.form-label {
    display: block;
    margin-bottom: 7px;
    color: #4A4A4A;
    font-size: 13px;
    font-weight: 600;
}


/* Asterisco de requerido */

.required label::after {
    content: " *";
    color: #F62440;
}


/* =========================================================
   AYUDA / ERROR
========================================================= */

.help-block {
    margin-top: 5px;
    font-size: 12px;
    color: #7A808B;
}

.has-error .help-block {
    color: #F62440;
}

.has-success .help-block {
    color: #22A06B;
}

footer {
    background-color: #1d2d50;
    color: #ffffff;
    text-align: center;
    padding: 25px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

footer p {
    color: #b0c4de;
}


/* =========================================================
   TITULOS DE SECCIÓN / FORMULARIOS
========================================================= */

.title-section {
    position: relative;
    margin-bottom: 25px;
    padding-left: 15px;
}


/* Línea/acento */

.title-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 28px;
    background: #F62440;
    border-radius: 10px;
}


/* Título */

.title-section h1,
.title-section h2,
.title-section h3 {
    margin: 0;
    color: #4A4A4A;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}


/* Subtítulo */

.title-section .subtitle {
    margin-top: 5px;
    color: #8A909B;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   TITULO PRINCIPAL
========================================================= */

.page-title {
    margin-bottom: 30px;
}

.page-title .title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4A4A4A;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.page-title .title-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #FFF0F2;
    color: #F62440;
    font-size: 17px;
}

.page-title .subtitle {
    margin-top: 7px;
    margin-left: 54px;
    color: #8A909B;
    font-size: 13px;
}


/* Contenedor */

.ios-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    cursor: pointer;
}


/* Ocultar checkbox */

.ios-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* Fondo */

.ios-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7ea;
    /* gris suave */
    border-radius: 30px;
    transition: all 0.3s ease;
}


/* Bolita */

.ios-toggle-slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


/* Estado ON */

.ios-toggle-input:checked+.ios-toggle-slider {
    background: #5FAF7A;
    /* tu verde personalizado */
}


/* Movimiento */

.ios-toggle-input:checked+.ios-toggle-slider::before {
    transform: translateX(22px);
}


/* Efecto activo (click) */

.ios-toggle:active .ios-toggle-slider::before {
    width: 28px;
}


/* Glow sutil (glass feeling) */

.ios-toggle-input:checked+.ios-toggle-slider {
    box-shadow: 0 0 8px rgba(95, 175, 122, 0.5);
}

.form-hint-required {
    background-color: #FFF8E1;
    /* cálido suave (combina con tus amarillos) */
    color: #7D6608;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    border-left: 4px solid #F4D03F;
    display: inline-block;
}

.form-hint-info {
    background-color: #E8F4FD;
    /* azul muy claro */
    color: #1B4F72;
    /* azul oscuro legible */
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    border-left: 4px solid #3498DB;
    /* azul principal */
    display: inline-block;
}

.form-hint-success {
    background-color: #E9F7EF;
    color: #1E8449;
    border-left: 4px solid #2ECC71;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

.form-hint-warning {
    background-color: #FFF8E1;
    color: #7D6608;
    border-left: 4px solid #F4D03F;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

.form-hint-danger {
    background-color: #FDEDEC;
    color: #922B21;
    border-left: 4px solid #E74C3C;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

.form-hint-minimal {
    background-color: #F8F9F9;
    color: #555;
    border-left: 4px solid #BDC3C7;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 10px;
}

.form-hint-pink {
    background-color: #e7168923;
    /* azul muy claro */
    color: #e71689;
    /* azul oscuro legible */
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    border-left: 4px solid #e71689;
    /* azul principal */
    display: inline-block;
}

.form-hint-required .asterisk {
    color: #C0392B;
    font-weight: bold;
    margin-right: 4px;
}


/* ==========================================
   BOTONES CRUD
   ========================================== */

.crud-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.crud-btn:hover {
    transform: translateY(-1px);
}

.crud-btn:active {
    transform: translateY(0);
}

.crud-btn i,
.crud-btn svg {
    font-size: 15px;
}


/* CREAR
   ========================================== */

.crud-create {
    color: #fff;
    background: #16a34a;
    box-shadow: 0 3px 8px rgba(22, 163, 74, .20);
}

.crud-create:hover {
    color: #fff;
    background: #15803d;
    box-shadow: 0 5px 12px rgba(22, 163, 74, .30);
}


/* VER
   ========================================== */

.crud-view {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .20);
}

.crud-view:hover {
    color: #fff;
    background: #1d4ed8;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .30);
}


/* EDITAR
   ========================================== */

.crud-edit {
    color: #fff;
    background: #f59e0b;
    box-shadow: 0 3px 8px rgba(245, 158, 11, .20);
}

.crud-edit:hover {
    color: #fff;
    background: #d97706;
    box-shadow: 0 5px 12px rgba(245, 158, 11, .30);
}


/* ELIMINAR
   ========================================== */

.crud-delete {
    color: #fff;
    background: #dc2626;
    box-shadow: 0 3px 8px rgba(220, 38, 38, .20);
}

.crud-delete:hover {
    color: #fff;
    background: #b91c1c;
    box-shadow: 0 5px 12px rgba(220, 38, 38, .30);
}


/* DESHABILITADO
   ========================================== */

.crud-btn:disabled,
.crud-btn.disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.crud-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all .2s ease;
}

.crud-icon-btn:hover {
    transform: translateY(-1px);
}

.crud-icon-view {
    color: #2563eb;
    background: #eff6ff;
}

.crud-icon-view:hover {
    color: #1d4ed8;
    background: #dbeafe;
}

.crud-icon-edit {
    color: #d97706;
    background: #fffbeb;
}

.crud-icon-edit:hover {
    color: #b45309;
    background: #fef3c7;
}

.crud-icon-delete {
    color: #dc2626;
    background: #fef2f2;
}

.crud-icon-delete:hover {
    color: #b91c1c;
    background: #fee2e2;
}

.crud-icon-card {
    color: #413333;
    background: #eeecec;
}

.crud-icon-card:hover {
    color: #413333;
    background: #eeecec;
}

.crud-icon-link {
    color: #8C56D4;
    background: #f3e0f2;
}

.crud-icon-link:hover {
    color: #814bc9;
    background: #ecd5eb;
}


/* ==========================================
   STATUS BADGES
   ========================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}


/* Punto indicador */

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ACTIVO
   ========================================== */

.status-activo {
    color: #15803d;
    background: #dcfce7;
}

.status-activo::before {
    background: #22c55e;
}


/* BAJA
   ========================================== */

.status-baja {
    color: #b91c1c;
    background: #fee2e2;
}

.status-baja::before {
    background: #ef4444;
}


/* SUSPENDIDO
   ========================================== */

.status-suspendido {
    color: #b45309;
    background: #fef3c7;
}

.status-suspendido::before {
    background: #f59e0b;
}


/* PENDIENTE
   ========================================== */

.status-pendiente {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-pendiente::before {
    background: #3b82f6;
}


/* BLOQUEADO
   ========================================== */

.status-bloqueado {
    color: #374151;
    background: #f3f4f6;
}

.status-bloqueado::before {
    background: #6b7280;
}


/* ==========================================
   COLUMNA PRINCIPAL / DESTACADA
   ========================================== */

.table-main-column {
    position: relative;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.1px;
}

.table-main-column a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.table-main-column a:hover {
    color: #2563eb;
}


/* Pequeño indicador */

.table-main-column .main-indicator {
    display: inline-block;
    width: 4px;
    height: 20px;
    margin-right: 9px;
    vertical-align: middle;
    border-radius: 4px;
    background: #2563eb;
}

.price-badge {
    background-color: #FBE462;
    /* color1 */
    color: #1a252f;
    /* color5 */
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.price-badge:hover {
    transform: scale(1.05);
}

.empresa-badge {
    background-color: #3562BA;
    /* color1 */
    color: #FFFFFF;
    /* color5 */
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.empresa-badge:hover {
    transform: scale(1.05);
}

.icon-cube {
    width: 100px;
    height: 90px;
    border-radius: 15px 15px 15px 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-cube-small {
    width: 70px;
    height: 60px;
    border-radius: 15px 15px 15px 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   LOGIN MODERNO
   ========================================================= */

.login-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    /* background: radial-gradient( circle at top left, rgba(37, 99, 235, .08), transparent 35%), radial-gradient( circle at bottom right, rgba(99, 102, 241, .08), transparent 35%), #f8fafc; */
}


/* =========================================================
   TARJETA
   ========================================================= */

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 42px 40px 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
}


/* =========================================================
   LOGO
   ========================================================= */

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo-img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.5px;
}

.login-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   LABELS
   ========================================================= */

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   INPUTS
   ========================================================= */

.login-form .form-group {
    margin-bottom: 20px;
}

.login-input {
    height: 48px;
    padding: 10px 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-input:hover {
    border-color: #9ca3af;
}

.login-input:focus {
    color: #111827;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.login-options {
    margin-top: -2px;
    margin-bottom: 24px;
}

.login-checkbox {
    margin: 0;
}

.login-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
}

.login-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.login-button-container {
    margin-top: 5px;
}

.login-button {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 12px rgba(37, 99, 235, .20);
    transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.login-button:hover {
    color: #ffffff;
    background: #1d4ed8;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .28);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button i {
    font-size: 16px;
}


/* =========================================================
   ERRORES
   ========================================================= */

.login-form .invalid-feedback {
    margin-top: 6px;
    font-size: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 576px) {
    .login-page {
        min-height: 100vh;
        padding: 20px 15px;
    }
    .login-card {
        padding: 32px 24px 25px;
        border-radius: 16px;
    }
    .login-header h1 {
        font-size: 25px;
    }
}


/* Input con icono */

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper .login-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 17px;
    pointer-events: none;
    z-index: 2;
}

.login-input-wrapper .login-input {
    padding-left: 44px;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: #2563eb;
}

.font5 {
    font-size: 5px !important;
}

.font6 {
    font-size: 6px !important;
}

.font7 {
    font-size: 7px !important;
}

.font8 {
    font-size: 8px !important;
}

.font9 {
    font-size: 9px !important;
}

.font10 {
    font-size: 10px !important;
}

.font11 {
    font-size: 11px !important;
}

.font12 {
    font-size: 12px !important;
}

.font13 {
    font-size: 13px !important;
}

.font14 {
    font-size: 14px !important;
}

.font15 {
    font-size: 15px !important;
}

.font16 {
    font-size: 16px !important;
}

.font17 {
    font-size: 17px !important;
}

.font18 {
    font-size: 18px !important;
}

.font19 {
    font-size: 19px !important;
}

.font20 {
    font-size: 20px !important;
}

.font21 {
    font-size: 21px !important;
}

.font22 {
    font-size: 22px !important;
}

.font23 {
    font-size: 23px !important;
}

.font24 {
    font-size: 24px !important;
}

.font25 {
    font-size: 25px !important;
}

.font26 {
    font-size: 26px !important;
}

.font27 {
    font-size: 27px !important;
}

.font28 {
    font-size: 28px !important;
}

.font29 {
    font-size: 29px !important;
}

.font30 {
    font-size: 30px !important;
}

.font35 {
    font-size: 35px !important;
}

.font40 {
    font-size: 40px !important;
}

.font45 {
    font-size: 45px !important;
}


/* =========================================
   BUSCADOR GENERAL
   ========================================= */

.buscador-general {
    width: 100%;
    max-width: 900px;
    margin: 20px auto 30px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 7px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}


/* Efecto al pasar el mouse */

.buscador-general:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.09), 0 2px 5px rgba(15, 23, 42, 0.05);
}


/* Efecto cuando algún elemento tiene focus */

.buscador-general:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.10), 0 8px 25px rgba(15, 23, 42, 0.08);
}


/* =========================================
   ICONO
   ========================================= */

.buscador-icono {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    flex-shrink: 0;
}


/* =========================================
   CONTENEDOR DEL INPUT
   ========================================= */

.buscador-input-wrapper {
    flex: 1;
    margin: 0 !important;
}


/* =========================================
   INPUT
   ========================================= */

.buscador-input {
    width: 100%;
    height: 48px;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 400;
    color: #1e293b;
}

.buscador-input::placeholder {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.buscador-input:focus::placeholder {
    color: #cbd5e1;
}


/* =========================================
   BOTÓN BUSCAR
   ========================================= */

.btn-buscar {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 24px;
    border: 0;
    border-radius: 13px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.20);
    transition: all 0.2s ease;
}

.btn-buscar:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(79, 70, 229, 0.28);
}

.btn-buscar:active {
    transform: translateY(0);
}

.btn-buscar i {
    font-size: 14px;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
    .buscador-general {
        border-radius: 15px;
        padding: 6px;
    }
    .buscador-icono {
        width: 40px;
        font-size: 16px;
    }
    .buscador-input {
        height: 44px;
        font-size: 14px;
        padding: 0 8px;
    }
    .btn-buscar {
        height: 44px;
        width: 48px;
        padding: 0;
        border-radius: 11px;
    }
    .btn-buscar span {
        display: none;
    }
}

.tarjeta-membresia {
    width: 100%;
    max-width: 850px;
    margin: 25px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    color: #1e293b;
}


/* =====================================
   ENCABEZADO
===================================== */

.tarjeta-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 28px;
    /* background: linear-gradient( 135deg, #f8fafc, #eef2ff); */
    border-bottom: 1px solid #e2e8f0;
}

.tarjeta-foto {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 5%;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.12);
}

.tarjeta-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 38px;
}


/* =====================================
   IDENTIDAD
===================================== */

.tarjeta-identidad {
    flex: 1;
}

.tarjeta-etiqueta {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .7px;
}

.tarjeta-identidad h2 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 750;
    color: #0f172a;
}

.tarjeta-sexo {
    color: #64748b;
    font-size: 14px;
}

.tarjeta-sexo i {
    margin-right: 5px;
}


/* =====================================
   SECCIONES
===================================== */

.tarjeta-seccion,
.tarjeta-membresia-info {
    padding: 25px 28px;
}

.tarjeta-membresia-info {
    background: #fafbff;
    border-top: 1px solid #eef2f7;
}

.seccion-titulo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.seccion-titulo i {
    color: #4f46e5;
}


/* =====================================
   DATOS
===================================== */

.datos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.membresia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dato {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dato span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.dato strong {
    color: #1e293b;
    font-size: 15px;
    font-weight: 650;
}

.dato .folio {
    color: #4f46e5;
    font-size: 17px;
    letter-spacing: .5px;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 700px) {
    .tarjeta-header {
        padding: 22px;
        gap: 18px;
    }
    .tarjeta-foto {
        width: 85px;
        height: 85px;
    }
    .tarjeta-identidad h2 {
        font-size: 20px;
    }
    .tarjeta-seccion,
    .tarjeta-membresia-info {
        padding: 22px;
    }
    .datos-grid,
    .membresia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .tarjeta-header {
        align-items: flex-start;
    }
    .tarjeta-foto {
        width: 70px;
        height: 70px;
    }
    .tarjeta-identidad h2 {
        font-size: 18px;
    }
    .datos-grid,
    .membresia-grid {
        grid-template-columns: 1fr;
    }
}

.badge-membresia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.badge-membresia i {
    font-size: 12px;
}


/* VIGENTE */

.badge-vigente {
    background: #dcfce7;
    color: #15803d;
}


/* POR VENCER */

.badge-por-vencer {
    background: #fef3c7;
    color: #b45309;
}


/* VENCIDA */

.badge-vencida {
    background: #fee2e2;
    color: #dc2626;
}


/* SIN FECHA */

.badge-sin-fecha {
    background: #e2e8f0;
    color: #64748b;
}

.form-disabled {
    background: #ecf0f7;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #EAECF0;
    border-radius: 10px;
    padding: 6px 12px;
    height: 48px;
    transition: all .2s ease;
}

.color-picker-wrapper:focus-within {
    border-color: #4274D9;
    box-shadow: 0 0 0 3px rgba(66, 116, 217, .12);
}

.color-picker-input {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-input::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-value {
    font-family: monospace;
    font-size: 14px;
    color: #4A4A4A;
}

.color-preview {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .20);
    vertical-align: middle;
}

.color-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.color-code {
    font-family: monospace;
    font-size: 13px;
    color: #4A4A4A;
    font-weight: 600;
}

.color-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.color-code {
    font-family: monospace;
    font-size: 13px;
    color: #4A4A4A;
    font-weight: 600;
}

.familiares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.familiar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #EAECF0;
    border-radius: 12px;
    transition: all .2s ease;
}

.familiar-card:hover {
    border-color: #4274D9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.familiar-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5FF;
    color: #4274D9;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.familiar-info {
    min-width: 0;
}

.familiar-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #4A4A4A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.familiar-detalles {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: #7A7A7A;
}

.parentesco {
    color: #4274D9;
    font-weight: 600;
    text-transform: uppercase;
}

.separador {
    color: #B8BCC4;
}

.familiares-header {
    margin-bottom: 15px;
}

.familiares-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #4A4A4A;
}

.familiares-header span {
    font-size: 12px;
    color: #888;
}

.pagos-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pago-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #EAECF0;
    border-radius: 12px;
    transition: all .2s ease;
}

.pago-card:hover {
    border-color: #4274D9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.pago-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5FF;
    color: #4274D9;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.pago-info {
    flex: 1;
    min-width: 0;
}

.pago-folio {
    font-size: 14px;
    font-weight: 600;
    color: #4A4A4A;
}

.pago-detalles {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-size: 12px;
    color: #7A7A7A;
}

.pago-detalles i {
    margin-right: 3px;
}

.separador {
    color: #B8BCC4;
}

.pago-total {
    font-size: 16px;
    font-weight: 700;
    color: #4A4A4A;
    white-space: nowrap;
}

.selected_paid {
    border: 3px solid var(--color-success) !important;
    box-shadow: var(--shadow-sm);
}

.selected_membership {
    border: 3px solid var(--color-warning) !important;
    box-shadow: var(--shadow-sm);
}

.selected_none {
    border: 3px solid var(--color-dark) !important;
}

.horarios-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px 0;
    width: 220px;
}

.horarios-card .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 14px;
}

.horarios-card .row:hover {
    background: #f5f5f5;
}


/* ================================
   MODAL AGENDA
================================ */

.modal-agenda .modal-dialog {
    max-width: 900px;
}

.modal-agenda .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}


/* ================================
   HEADER
================================ */

.modal-agenda-header-container {
    padding: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
}

.modal-agenda .modal-header {
    padding: 20px 24px;
}

.agenda-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.agenda-modal-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #4274D9, #5B8DEF);
    color: #fff;
    font-size: 21px;
    box-shadow: 0 6px 15px rgba(66, 116, 217, .25);
}

.agenda-modal-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    color: #2f3542;
    line-height: 1.2;
}

.agenda-modal-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #8a94a6;
}


/* ================================
   BOTÓN CERRAR
================================ */

.modal-agenda .btn-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background-color: #f4f6f8;
    opacity: 1;
    transition: all .2s ease;
}

.modal-agenda .btn-close:hover {
    background-color: #eaecf0;
    transform: rotate(90deg);
}


/* ================================
   BODY
================================ */

.modal-agenda-body {
    padding: 26px;
    background: #fff;
}


/* ================================
   FORMULARIOS DENTRO DE LA MODAL
================================ */

.modal-agenda .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 7px;
}

.modal-agenda .form-control,
.modal-agenda .form-select {
    min-height: 44px;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: none;
    transition: all .2s ease;
}

.modal-agenda .form-control:focus,
.modal-agenda .form-select:focus {
    border-color: #4274D9;
    box-shadow: 0 0 0 3px rgba(66, 116, 217, .10);
}


/* ================================
   BOTONES
================================ */


/* ================================
   FOOTER
================================ */

.modal-agenda .modal-footer {
    border-top: 1px solid #edf0f4;
    padding: 16px 24px;
    background: #fafbfc;
}

.incluye-texto {
    max-width: 300px;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 20px;
    cursor: pointer;
}

.text-justify {
    text-align: justify !important;
}

.card-activa {
    background-color: #DDF4E7;
}

.btn-evidencia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    color: #F62440;
    border: 1px solid #F62440;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-evidencia i {
    font-size: 18px;
}

.btn-evidencia:hover {
    background: #F62440;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(246, 36, 64, .20);
}

.btn-evidencia:active {
    transform: translateY(0);
}