/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    color: #333;
    font-size: 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Header ===== */
header {
    background-color: #2e3f66;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 100;
    min-height: 100px;
}

#logo_producto {
    padding: 10px 15px 10px 25px;
    display: flex;
    align-items: center;
}

#logo_producto img {
    height: 130px;
    object-fit: contain;
}

#logo_cliente {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

#logo_cliente img {
    height: 130px;
    width: 232px;
    object-fit: contain;
}

/* Desktop Menu */
#menu_principal {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 20px;
}

#menu_principal > li { position: relative; }

#menu_principal > li > a {
    display: block;
    color: #fff;
    font-size: 13px;
    padding: 10px 12px;
    white-space: nowrap;
    transition: background 0.2s;
    cursor: pointer;
}

#menu_principal > li > a:hover { background-color: rgba(255,255,255,0.1); }

.ico_pq { margin-left: 5px; font-size: 14px; }

.menu_principal_nivel_2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2e3f66;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 200;
}

#menu_principal > li:hover > .menu_principal_nivel_2 { display: block; }

.menu_principal_nivel_2 li a {
    display: block;
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    transition: background 0.2s;
}

.menu_principal_nivel_2 li a:hover { background-color: rgba(255,255,255,0.15); }

#hamburger {
    display: none;
    margin-left: auto;
    padding: 15px 20px;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
}

/* Mobile Menu */
#contenedor_menus_moviles {
    display: none;
    background-color: #2e3f66;
}

#contenedor_menus_moviles.active { display: block; }

#menu_principal_moviles > li {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#icono_menu_principal_moviles {
    margin-left: auto;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
}

.ico_md { font-size: 22px; }

#submenu_movil { display: none; width: 100%; padding-top: 10px; }
#submenu_movil.active { display: block; }

#submenu_movil li a {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}

#submenu_movil li a:hover { background-color: rgba(255,255,255,0.1); }
#submenu_movil li:last-child a { border-bottom: none; }

/* ===== Main Content ===== */
#contenedor_general {
    flex: 1;
    background: linear-gradient(135deg, #dce3ed 0%, #e8edf5 30%, #f2f4f7 60%, #f8f9fb 100%);
}

.contenidos_especificos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px 60px;
}

/* Home layout */
#seccion_home {
    display: flex;
    gap: 40px;
}

.c2 { flex: 1; min-width: 0; }

/* Form */
.formularios_home { padding: 10px 0; }

#aclaraciones_home h2 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.formularios_home form > div { margin-bottom: 12px; }

.label-largo {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    display: inline-block;
    margin-bottom: 4px;
}

.formularios_home input[type="text"] {
    width: 100%;
    max-width: 320px;
    height: 34px;
    border: 1px solid #aaa;
    border-radius: 2px;
    padding: 4px 8px;
    font-size: 14px;
    font-family: 'Lato', Arial, sans-serif;
    outline: none;
}

.formularios_home input[type="text"]:focus {
    border-color: #2e3f66;
    box-shadow: 0 0 3px rgba(46,63,102,0.3);
}

.label_home { float: none; }
.acepta { margin-right: 0; font-size: 12.4px; font-weight: 400; color: #555; }
.formularios_home input[type="checkbox"] { margin-right: 4px; vertical-align: middle; cursor: pointer; }
.formularios_home a u { color: #2e3f66; }

.button {
    border: none;
    cursor: pointer;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 14px;
    transition: all 0.2s;
}

.button_generico {
    background-color: #10a4ff;
    color: #fff;
    padding: 8px 22px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 13px;
}

.button_generico:hover { background-color: #0d8ad6; }

.formularios_home h3 { font-size: 14px; font-weight: 700; }
.formularios_home h3 a { color: #333; }

.error-msg {
    background: #ffe0e0;
    color: #c0392b;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
    border-left: 4px solid #c0392b;
}

/* Noticias */
.modulo_noticias { padding: 10px 0; }

#encabezado_noticias {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#encabezado_noticias h1 { font-size: 24px; font-weight: 700; color: #333; }

.bot_carrusel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #bbb;
    background: #fff;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    border-radius: 2px;
}

.bot_carrusel:hover { background: #eee; border-color: #888; }

.noticia.hide { display: none; }
.noticia.activo { display: block; }
.noticia h2 { font-size: 16px; font-weight: 700; color: #2e3f66; margin-bottom: 10px; }
.noticia p { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 8px; }
.noticia .button_generico { margin-top: 10px; }

/* ===== Loading ===== */
.loading-container {
    text-align: center;
    padding: 80px 20px;
    color: #2e3f66;
}

.loading-container i { color: #10a4ff; }
.loading-container p { margin-top: 15px; font-size: 16px; font-weight: 700; }

/* ===== Resultados ===== */
.info-vehiculo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0 15px;
    font-size: 20px;
    font-weight: 700;
    color: #2e3f66;
}

.info-vehiculo-header .fa-info-circle { font-size: 24px; color: #10a4ff; }
.info-vehiculo-header strong { color: #10a4ff; }

.btn-volver {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: #2e3f66;
    border: 1px solid #2e3f66;
    padding: 6px 14px;
    border-radius: 3px;
}

.btn-volver:hover { background: #2e3f66; color: #fff; }

/* Tabs */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 25px;
    padding-bottom: 5px;
}

.tab-btn {
    background: #fff;
    border: 1px solid #bbb;
    padding: 8px 16px;
    font-size: 13px;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 400;
    cursor: pointer;
    border-radius: 3px;
    color: #333;
    transition: all 0.2s;
}

.tab-btn:hover { border-color: #2e3f66; color: #2e3f66; }

.tab-btn.active {
    background: #2e3f66;
    color: #fff;
    border-color: #2e3f66;
    font-weight: 700;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Tables */
.table-responsive { overflow-x: auto; margin-bottom: 20px; }

.tabla-info-vehiculo {
    border-collapse: collapse;
    width: 100%;
}

.tabla-info-vehiculo th {
    background-color: #5b8cc4;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #4a7ab5;
}

.tabla-info-vehiculo td {
    background-color: #f5f8fc;
    font-size: 12px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #dde5ee;
}

.tabla-info-vehiculo tr:nth-child(even) td { background-color: #eaf0f7; }

.tabla-datos {
    border-collapse: collapse;
    width: 100%;
}

.tabla-datos thead th {
    background-color: #2e3f66;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #243254;
}

.tabla-datos tbody td {
    font-size: 11px;
    padding: 6px 5px;
    text-align: center;
    border: 1px solid #dde5ee;
}

.tabla-datos tbody tr:nth-child(odd) td { background-color: #f5f8fc; }
.tabla-datos tbody tr:nth-child(even) td { background-color: #eaf0f7; }
.tabla-datos tbody tr:hover td { background-color: #dce8f5; }

.sin-datos {
    text-align: center;
    padding: 25px;
    color: #888;
    font-style: italic;
}

.opciones-icon {
    color: #2e3f66;
    font-size: 22px;
    cursor: pointer;
    margin: 0 4px;
    padding: 4px;
    transition: color 0.2s;
}

.opciones-icon:hover { color: #10a4ff; }

.btn-pagar-btn {
    padding: 8px 18px !important;
    font-size: 12px !important;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* No scrollbar on pendientes table */
#tab-pendientes .table-responsive {
    overflow-x: visible;
}

#tablaVigenciasPendientes {
    table-layout: auto;
    width: 100%;
}

#tablaVigenciasPendientes td,
#tablaVigenciasPendientes th {
    white-space: normal;
    word-break: break-word;
    font-size: 11px;
    padding: 6px 4px;
}

/* Aviso contribuyente */
.aviso-contribuyente {
    background: #f0f4f8;
    border: 1px solid #cdd8e5;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 15px 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

.aviso-contribuyente a { color: #10a4ff; text-decoration: underline; }

.aviso-rojo { color: #c0392b; }

.btn-estado-cuenta-container { text-align: center; margin: 20px 0; }

.btn-estado-cuenta {
    padding: 10px 30px;
    font-size: 14px;
}

/* Banner descuento */
.banner-descuento {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.banner-descuento-icono {
    font-size: 28px;
    color: #2e7d32;
    flex-shrink: 0;
}

.banner-descuento-texto {
    font-size: 15px;
    color: #1b5e20;
    line-height: 1.5;
}

.banner-descuento-texto strong {
    font-size: 17px;
    color: #2e7d32;
}

.banner-descuento-sub {
    display: block;
    font-size: 12px;
    color: #388e3c;
    margin-top: 2px;
}

/* Total adeudado */
.total-adeudado {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    background: #f5f8fc;
    border: 1px solid #cdd8e5;
    border-radius: 6px;
    padding: 15px;
}

.total-adeudado-linea {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-label {
    background: #2e3f66;
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
}

.total-valor {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.total-valor-tachado {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.total-label-descuento {
    background: #4caf50;
}

.total-label-descuento .fa {
    margin-right: 4px;
}

.total-valor-descuento {
    color: #2e7d32;
    font-size: 14px;
}

.total-descuento-linea {
    border-top: 1px dashed #cdd8e5;
    padding-top: 8px;
}

.total-label-final {
    background: #1b5e20;
    font-size: 14px;
    padding: 10px 18px;
}

.total-valor-final {
    font-size: 18px;
    color: #1b5e20;
}

.print-icon {
    font-size: 20px;
    color: #555;
    cursor: pointer;
    margin-left: auto;
}

.total-pagar-todo-linea {
    border-top: 1px dashed #cdd8e5;
    padding-top: 12px;
    margin-top: 4px;
    justify-content: center;
}

.btn-pagar-todo {
    background: linear-gradient(135deg, #1b5e20, #2e7d32) !important;
    color: #fff !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

.btn-pagar-todo:hover {
    background: linear-gradient(135deg, #145218, #256b29) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.4);
}

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

.print-icon:hover { color: #2e3f66; }

/* Descuento en pago electrónico */
.fila-descuento-pago th {
    background: #4caf50 !important;
    color: #fff;
}

.fila-descuento-pago td {
    color: #2e7d32;
    font-weight: 700;
}

.fila-total-pago th {
    background: #1b5e20 !important;
    color: #fff;
    font-size: 14px !important;
}

.fila-total-pago td {
    font-weight: 700;
    font-size: 16px;
    color: #1b5e20;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 6px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: #5b9bd5;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px 6px 0 0;
}

.modal-header h3 { font-size: 16px; font-weight: 700; }

.modal-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #fff;
    font-weight: 700;
}

.modal-close:hover { opacity: 0.7; }

.modal-body { padding: 20px 25px; }

.modal-field {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.modal-field label {
    min-width: 160px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: right;
}

.modal-field input[type="text"],
.modal-field input[type="email"],
.modal-field select {
    flex: 1;
    height: 32px;
    border: 1px solid #aaa;
    border-bottom: 2px solid #5b9bd5;
    border-radius: 2px;
    padding: 4px 8px;
    font-size: 13px;
    font-family: 'Lato', Arial, sans-serif;
    background: #f8f8f8;
    outline: none;
}

.modal-field input:focus,
.modal-field select:focus {
    border-color: #2e3f66;
    background: #fff;
}

.modal-field input[readonly] {
    background: #eee;
    color: #555;
}

.modal-field-check {
    justify-content: flex-end;
    gap: 8px;
}

.modal-field-check label {
    min-width: auto;
    text-align: left;
    font-weight: 400;
    font-size: 12px;
}

.modal-field-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

.modal-btn-container { text-align: center; margin-top: 18px; }

/* Alert modal */
.modal-alert-box { max-width: 400px; }
.modal-alert-header { background: #e67e22; }
.modal-alert-header .fa { margin-right: 8px; }

/* ===== Pago Electrónico ===== */
.pago-electronico-container {
    display: flex;
    gap: 30px;
    padding: 10px 0 40px;
}

.pago-left { flex: 1.2; }
.pago-right { flex: 0.8; }

.pago-titulo {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.tabla-pago-resumen {
    border-collapse: collapse;
    margin: 0 auto 20px;
}

.tabla-pago-resumen th {
    background: #5b9bd5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    text-align: center;
    border: 1px solid #4a8ac4;
}

.tabla-pago-resumen td {
    font-size: 13px;
    padding: 10px 18px;
    text-align: center;
    border: 1px solid #dde5ee;
    background: #f5f8fc;
    min-width: 140px;
}

.pago-declaracion {
    text-align: center;
    margin: 20px 0;
    font-size: 12px;
    color: #555;
}

.pago-declaracion input[type="checkbox"] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    cursor: pointer;
}

.pago-metodos {
    text-align: center;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pago-metodos-titulo {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.pago-img-pse {
    max-width: 200px;
    height: auto;
}

.btn-pagar-pse-grande {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    padding: 12px 30px;
}

.pago-btn-container { text-align: center; margin-top: 15px; }

.pago-info-box {
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 5px;
    padding: 18px;
    margin-bottom: 15px;
}

.pago-info-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: #2e3f66;
    margin-bottom: 10px;
}

.pago-info-box h4 .fa { margin-right: 6px; color: #5b9bd5; }

.pago-info-box p {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 8px;
    text-align: justify;
}

.pago-seguridad { border-color: #c5d9ed; }

/* ===== PSE Modal ===== */
.pse-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.pse-modal-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pse-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.pse-modal-content .modal-close {
    color: #666;
    font-size: 28px;
    cursor: pointer;
}

.pse-modal-body {
    padding: 20px 24px;
}

.pse-form-group {
    margin-bottom: 16px;
}

.pse-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.pse-radio-group {
    display: flex;
    gap: 20px;
}

.pse-radio-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pse-radio-label input[type="radio"] {
    accent-color: #2d6b3f;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pse-input, .pse-select {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Lato', Arial, sans-serif;
    outline: none;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
}

.pse-input:focus, .pse-select:focus {
    border-color: #2d6b3f;
    box-shadow: 0 0 0 2px rgba(45,107,63,0.15);
}

.pse-input::placeholder {
    color: #aaa;
}

.pse-btn-pagar {
    width: 100%;
    padding: 14px;
    background: #2d6b3f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Lato', Arial, sans-serif;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, opacity 0.2s;
}

.pse-btn-pagar:hover:not(:disabled) {
    background: #245a33;
}

.pse-btn-pagar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pse-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
}

.pse-powered-by svg {
    flex-shrink: 0;
}

.pse-footer-text {
    text-align: center;
    padding: 0 24px 16px;
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
}

/* ===== PSE Procesando ===== */
.pse-procesando-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.pse-procesando-spinner {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
}

.pse-spinner-svg {
    width: 100%;
    height: 100%;
    animation: pse-rotate 1.8s linear infinite;
}

@keyframes pse-rotate {
    100% { transform: rotate(360deg); }
}

.pse-spinner-arc {
    stroke: #2d6b3f;
}

.pse-procesando-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.pse-procesando-texto {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pse-procesando-aviso {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    margin-bottom: 12px;
}

.pse-aviso-icono {
    font-size: 18px;
    color: #f9a825;
}

.pse-procesando-timer {
    font-size: 13px;
    color: #888;
}

/* ===== Mobile Cards (Vigencias Pendientes) ===== */
.cards-mobile {
    display: none;
}

.card-vigencia {
    background: #fff;
    border: 1px solid #cdd8e5;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card-vigencia-header {
    background: #2e3f66;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
}

.card-vigencia-body {
    padding: 0;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
}

.card-row:last-child {
    border-bottom: none;
}

.card-label {
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
    margin-right: 10px;
}

.card-value {
    color: #333;
    text-align: right;
    word-break: break-word;
}

.card-value-total {
    font-weight: 700;
    color: #2e3f66;
    font-size: 14px;
}

.card-vigencia-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #eef1f5;
    background: #f9fafb;
}

.card-vigencia-footer .btn-pagar-btn {
    width: 100%;
    padding: 10px !important;
    font-size: 14px !important;
}

/* ===== Footer ===== */
footer {
    background-color: #2e3f66;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    flex-wrap: wrap;
    gap: 15px;
}

#datos_cliente_footer { display: flex; align-items: center; gap: 15px; }
#logo_cliente_footer img { border-radius: 50%; object-fit: contain; }

#textos_cliente_footer { font-size: 12px; line-height: 1.6; color: #ccc; }
#textos_cliente_footer h3 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }

#datos_propios_footer { display: flex; align-items: center; gap: 15px; }
#enlace_datasoft_footer { font-size: 12px; color: #ccc; text-align: right; }
#enlace_datasoft_footer img { margin-top: 4px; vertical-align: middle; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    #menu_principal { display: none; }
    #hamburger { display: block; }
    header { min-height: 80px; }
    #logo_cliente img { height: 90px; width: 115px; }
    #logo_producto img { height: 90px; }

    #seccion_home { flex-direction: column; gap: 30px; }

    .contenidos_especificos { padding: 20px 20px 40px; }
    .formularios_home input[type="text"] { max-width: 100%; }

    .tabs-container { gap: 4px; }
    .tab-btn { padding: 6px 10px; font-size: 12px; }

    .pago-electronico-container { flex-direction: column; }
    .total-adeudado-linea { flex-wrap: wrap; }
    .total-label { font-size: 12px; padding: 6px 12px; }
    .total-valor-final { font-size: 16px; }
    .pago-img-pse { max-width: 160px; }
    .btn-pagar-pse-grande {
        font-size: 15px;
        padding: 12px 24px;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .modal-field { flex-direction: column; align-items: flex-start; gap: 4px; }
    .modal-field label { text-align: left; min-width: auto; }

    /* Show cards, hide table for pendientes */
    #tab-pendientes .table-responsive { display: none; }
    #cardsPendientes { display: block; }
}

@media (max-width: 600px) {
    header { min-height: 70px; }
    #logo_producto { padding: 8px 10px; }
    #logo_producto img { height: 60px; }
    #logo_cliente { padding: 0 5px; }
    #logo_cliente img { height: 65px; width: 80px; }

    .contenidos_especificos { padding: 15px 15px 30px; }
    #aclaraciones_home h2 { font-size: 15px; }
    #encabezado_noticias h1 { font-size: 20px; }

    .info-vehiculo-header { font-size: 16px; flex-wrap: wrap; }
    .btn-volver { margin-left: 0; margin-top: 5px; }

    .tab-btn { padding: 6px 8px; font-size: 11px; }

    .banner-descuento { padding: 10px 12px; gap: 10px; }
    .banner-descuento-icono { font-size: 22px; }
    .banner-descuento-texto { font-size: 13px; }
    .banner-descuento-texto strong { font-size: 15px; }
    .total-adeudado { padding: 12px; }
    .total-label { font-size: 11px; padding: 6px 10px; }
    .total-valor { font-size: 13px; }
    .total-valor-final { font-size: 15px; }
    .total-label-final { padding: 8px 12px; font-size: 12px; }

    .pago-metodos-titulo { font-size: 14px; }
    .pago-img-pse { max-width: 140px; }
    .btn-pagar-pse-grande {
        font-size: 14px;
        padding: 11px 20px;
        width: 100%;
        max-width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    #datos_cliente_footer { flex-direction: column; text-align: center; }
    #datos_propios_footer { flex-direction: column; }
    #enlace_datasoft_footer { text-align: center; }
}

@media (max-width: 400px) {
    header { min-height: 60px; }
    #logo_producto img { height: 45px; }
    #logo_cliente img { height: 50px; width: 62px; }
    .contenidos_especificos { padding: 10px 10px 25px; }
}

/* ===== Modal Banner Inicio ===== */
.modal-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-banner-content {
    position: relative;
    max-width: 750px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: bannerFadeIn 0.3s ease;
}
.modal-banner-img {
    width: 100%;
    height: auto;
    display: block;
}
.modal-banner-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
    transition: background 0.2s;
}
.modal-banner-close:hover {
    background: rgba(0,0,0,0.85);
}
@keyframes bannerFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 500px) {
    .modal-banner-content {
        max-width: 95%;
    }
    .modal-banner-close {
        top: 5px;
        right: 8px;
        font-size: 22px;
        width: 32px;
        height: 32px;
    }
}
