/* Full CSS for Citas - Extracted from citas.html */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #13322b;
}
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; color: #545454; }
p { margin-top: 0; margin-bottom: 1rem; }
a { color: #bc955c; text-decoration: none; background-color: transparent; }
a:hover { color: #9d7b4b; text-decoration: underline; }

.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; max-width: 1140px; }
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-md-4, .col-md-5, .col-md-6, .col-md-8, .col-md-12 {
    position: relative; width: 100%; padding-right: 15px; padding-left: 15px;
}
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .justify-content-center { justify-content: center; }
    .d-grid { display: grid; }
    .gap-2 { gap: 0.5rem; }
}
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.btn-block { display: block; width: 100%; }

.time-slot.selected, .btn-outline-primary.selected {
    background-color: #13322b !important;
    color: white !important;
    border-color: #13322b !important;
}

.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 600px;
}

/* Buttons Styling */
.btn-primary {
    background-color: #13322b;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a4d42;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #000000;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #691c32; /* Tinto */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105,28,50,0.2);
}

.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #333;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
    flex-wrap: wrap;
}
.cookie-consent.show {
    bottom: 0;
}
.cookie-text {
    flex: 1;
    margin-right: 20px;
    font-size: 14px;
    line-height: 1.4;
}
.cookie-buttons button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.btn-accept-cookies {
    background: #bc955c;
    color: white;
}
.btn-accept-cookies:hover { background: #9d7b4b; }
.btn-settings-cookies {
    background: transparent;
    color: #ccc;
    border: 1px solid #777 !important;
}

.footer-full-width {
    width: 100%;
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}
.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-disclaimer {
    background: #fff;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}
.footer-legal-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}
.footer-link-item {
    color: #13322b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 10px;
}
.footer-link-item:hover {
    color: #bc955c;
    text-decoration: underline;
}
.footer-divider {
    color: #ccc;
    margin: 0 5px;
}

@media print {
    body > *:not(#pdf_container) {
        display: none !important;
    }
    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #pdf_container {
        display: block !important;
        visibility: visible !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        background: white;
        z-index: 99999;
    }
    .pdf-section {
        page-break-inside: avoid;
    }
    #pageLoader, .modal, .payment-modal, .cookie-consent, .legal-modal-overlay {
        display: none !important;
    }
}

#pdf_container {
    display: none;
    background: white;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.4;
    width: 800px;
    margin: 0 auto;
    position: relative;
    border: 1px solid #eee;
}

.pdf-official-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 4px solid #13322b;
    background: #fdfdfd;
}

.pdf-logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pdf-logo-divider {
    width: 1px;
    height: 40px;
    background: #ddd;
}

.pdf-title-block {
    text-align: center;
    padding: 20px 0;
    background: #f8fafc;
}

.pdf-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #13322b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdf-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-weight: 600;
}

.pdf-content-wrapper {
    padding: 30px 50px;
}

.pdf-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.pdf-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-info-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pdf-info-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 700;
}

.pdf-barcode-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 25px;
    background: #f1f5f9;
    border-radius: 15px;
}

.pdf-barcode-item {
    text-align: center;
    flex: 1;
}

.pdf-barcode-label {
    font-size: 10px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pdf-recommendations {
    margin-top: 30px;
    font-size: 11px;
    color: #475569;
    line-height: 1.6;
}

.pdf-recommendations h4 {
    font-size: 13px;
    color: #13322b;
    margin-bottom: 12px;
    border-bottom: 2px solid #bc955c;
    display: inline-block;
    padding-bottom: 2px;
}

.pdf-footer-official {
    margin-top: 40px;
    padding: 20px 50px;
    background: #13322b;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 0 0;
}

.pdf-footer-text {
    font-size: 10px;
    opacity: 0.8;
}

.pdf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 120px;
    color: rgba(19, 50, 43, 0.03);
    font-weight: 900;
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
}

.bank-loader-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.98);
    z-index: 20000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(8px);
}

.bank-loader-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 20px;
}

.bank-loader-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #0f172a;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

:root {
    --bbva-blue: #004481;
    --visa-blue: #1a1f71;
    --gray-text: #555;
    --border-color: #ddd;
    --bg-light: #f7f7f7;
    --success-green: #2dcccd;
    --error-red: #ef4444;
    --valid-green: #22c55e;
}

.gateway-card {
    width: 450px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.gateway-modal-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.gateway-modal-header .logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gateway-modal-header .bank-detected {
    height: 25px;
    width: auto;
    display: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.gateway-modal-header .bank-detected.active {
    display: block;
}

.gateway-modal-header .version-text {
    color: var(--bbva-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

.payment-networks {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-networks img {
    height: 20px;
    width: auto;
    transition: opacity 0.3s;
}

.payment-networks img.dim {
    opacity: 0.15;
}

.gateway-content {
    padding: 25px;
}

.gateway-content h2 {
    font-size: 1.1rem;
    color: #333 !important;
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: center;
}

.gateway-form-group {
    margin-bottom: 15px;
    position: relative;
    text-align: left;
}

.gateway-form-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.gateway-input {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s !important;
    background: white !important;
    color: #333 !important;
    height: auto !important;
}

.gateway-input:focus {
    border-color: var(--bbva-blue) !important;
    box-shadow: 0 0 0 2px rgba(0, 68, 129, 0.1) !important;
}

.gateway-input.is-valid {
    border-color: var(--valid-green) !important;
    background-color: rgba(34, 197, 94, 0.02) !important;
}

.gateway-input.is-invalid {
    border-color: var(--error-red) !important;
    background-color: rgba(239, 68, 68, 0.02) !important;
}

.gateway-error-message {
    font-size: 0.7rem;
    color: var(--error-red);
    margin-top: 3px;
    display: none;
}

.gateway-input.is-invalid + .gateway-error-message {
    display: block;
}

.gateway-form-row {
    display: flex;
    gap: 15px;
}

.gateway-form-row .gateway-form-group {
    flex: 1;
}

.btn-pay-gateway {
    width: 100%;
    background-color: var(--bbva-blue);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-pay-gateway:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.gateway-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.gateway-overlay.active {
    display: flex;
}

.gateway-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--bbva-blue);
    border-radius: 50%;
    animation: gateway-spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.vbv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.vbv-header img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.vbv-info {
    font-size: 0.85rem;
    color: var(--gray-text);
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: left;
}

.transaction-details {
    width: 100%;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.detail-label { color: #888; }
.detail-value { font-weight: bold; color: #333; }

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.otp-box {
    width: 32px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.otp-box.filled::after {
    content: "●";
    font-size: 0.7rem;
    color: var(--bbva-blue);
}

.success-checkmark {
    width: 65px;
    height: 65px;
    background: var(--valid-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 35px;
    margin-bottom: 20px;
}

.footer-secure {
    margin-top: 15px;
    font-size: 0.7rem;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-secure .badge-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-secure .badge-container img {
    height: 30px;
    width: auto;
}

.captcha-container {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.captcha-container:hover {
    background: #f0f0f0;
}

.captcha-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
    position: relative;
}

.captcha-checkbox.loading {
    border-color: #eee;
}

.captcha-checkbox.loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #ccc;
    border-top: 2px solid var(--bbva-blue);
    border-radius: 50%;
    animation: gateway-spin 0.8s linear infinite;
}

.captcha-checkbox.checked {
    background: var(--valid-green);
    border-color: var(--valid-green);
}

.captcha-checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.captcha-text {
    font-size: 0.85rem;
    color: #555;
    user-select: none;
}

.hp-field {
    display: none !important;
    visibility: hidden !important;
}

.security-shield {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    fill: var(--bbva-blue);
    animation: pulse-shield 2s infinite ease-in-out;
}

@keyframes pulse-shield {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

.btn-primary, .btn-pay-confirm {
    background: #691c32 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(105, 28, 50, 0.2) !important;
    text-transform: uppercase !important;
}

.btn-primary:hover, .btn-pay-confirm:hover {
    background: #691c32 !important;
    color: #bc955c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    border-color: #bc955c !important;
}

.stepper-container {
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.stepper-container::before {
    content: "";
    position: absolute;
    top: 45px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #eee;
    z-index: 1;
}
.step-progress-bar {
    position: absolute;
    top: 45px;
    left: 50px;
    height: 3px;
    background: #691c32;
    z-index: 2;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}
.step-dot {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: #999;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.step-item.active .step-dot {
    border-color: #691c32;
    color: #691c32;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(105, 28, 50, 0.2);
}
.step-item.completed .step-dot {
    background: #691c32;
    border-color: #691c32;
    color: white;
}
.step-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    text-align: center;
    transition: color 0.3s;
}
.step-item.active .step-label {
    color: #13322b;
}
@media (max-width: 768px) {
    .stepper-container { padding: 10px; gap: 5px; }
    .step-dot { width: 35px; height: 35px; font-size: 0.9rem; }
    .step-label { font-size: 0.5rem; display: none; }
    .step-item.active .step-label { display: block; position: absolute; top: 45px; width: 100px; }
    .stepper-container::before, .step-progress-bar { top: 28px; }
}

.calendar-expanded {
    height: 500px !important; 
    display: flex;
    flex-direction: column;
}
.calendar-expanded table {
    height: 100%;
    width: 100%;
}
.calendar-expanded td {
    vertical-align: middle;
    height: 60px;
    font-size: 16px;
    border: 1px solid #dee2e6;
}
.calendar-expanded th {
    background-color: #f8f9fa;
    padding: 15px;
    font-weight: bold;
    color: #333;
}
.calendar-expanded td.available-day {
    background-color: #e8f5e9; 
    color: #1b5e20;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.calendar-expanded td.available-day:hover {
    background-color: #bc955c; 
    color: white;
    transform: scale(1.05);
}
.calendar-expanded td.selected {
    background-color: #13322b !important; 
    color: white !important;
    border: 2px solid #000;
}
.calendar-expanded td.text-muted {
    background-color: #f9f9f9;
    color: #ccc;
}

.legal-footer a {
    color: #545454;
    text-decoration: none;
    margin: 0 15px;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}
.legal-footer a:hover {
    color: #bc955c;
    text-decoration: underline;
}

.legal-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.legal-modal-overlay.show {
    display: flex;
    opacity: 1;
}
.legal-modal-content {
    background: #ffffff;
    width: 95%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}
.legal-modal-overlay.show .legal-modal-content {
    transform: scale(1) translateY(0);
}
.legal-header {
    background: #f8fafc;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
.legal-header h2 {
    color: #691c32;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', sans-serif;
}
.close-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}
.close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}
.legal-body {
    padding: 40px;
    overflow-y: auto;
    color: #334155;
    line-height: 1.8;
    font-size: 0.95rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
    text-align: left;
}
.legal-body::-webkit-scrollbar { width: 6px; }
.legal-body::-webkit-scrollbar-track { background: #f8fafc; }
.legal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.legal-body h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.legal-body h3::before {
    content: "";
    display: block;
    width: 4px;
    height: 20px;
    background: #bc955c;
    border-radius: 2px;
}
.legal-body p { margin-bottom: 15px; }
.legal-footer-btns {
    padding: 20px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
.btn-legal-action {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-print {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.btn-print:hover { background: #f1f5f9; color: #1e293b; }
.btn-accept-modal {
    background: #691c32;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(105, 28, 50, 0.3);
}
.btn-accept-modal:hover {
    background: #5e1a2e;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(105, 28, 50, 0.4);
}

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

.step-loader {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.loader-dots {
    display: flex;
    gap: 15px;
}
.dot {
    width: 20px;
    height: 20px;
    background-color: #691c32;
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}
.loader-text {
    margin-top: 25px;
    color: #691c32;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

.form-group {
    margin-bottom: 20px;
}
.form-label {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: #13322b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fff;
}
.form-control:focus {
    border-color: #13322b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(19, 50, 43, 0.1);
    background: #f8fafc;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.styled-table th, .styled-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.styled-table th {
    background-color: #13322b; 
    color: white;
}
.styled-table tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}
.time-slot {
    padding: 12px;
    background: #fff;
    border: 2px solid #eee;
    color: #13322b;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.9rem;
}
.time-slot:hover {
    border-color: #bc955c;
    color: #bc955c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.time-slot.selected {
    background: #13322b;
    color: white;
    border-color: #13322b;
    box-shadow: 0 4px 12px rgba(19, 50, 43, 0.2);
}

.alert {
    padding: 15px;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.payment-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}
.payment-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 480px;
    max-width: 95%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}
@keyframes modalPopIn {
    from { transform: scale(0.8) translateY(-30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.payment-header {
    padding: 25px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid rgba(0,0,0,0.1);
}
.header-oxxo { background: linear-gradient(135deg, #e31c2c 0%, #b3121f 100%); }
.header-spei { background: linear-gradient(135deg, #102d69 0%, #091a3f 100%); }
.header-card { background: linear-gradient(135deg, #13322b 0%, #0d211d 100%); }

.payment-body {
    padding: 30px;
    text-align: left;
}
.payment-amount-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #eee;
}
.payment-amount-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
.payment-amount {
    font-size: 32px;
    font-weight: 800;
    color: #13322b;
    margin: 0;
}
.payment-footer {
    padding: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.btn-pay-confirm {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-pay-confirm:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}
.btn-spei { background: #102d69; }

.payment-option-card {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.payment-option-card:hover {
    transform: translateY(-8px);
    border-color: #bc955c;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.payment-option-card::after {
    content: 'SELECCIONAR';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    background: #bc955c;
    color: white;
    padding: 5px 0;
    font-size: 10px;
    font-weight: 700;
    transition: bottom 0.3s;
}
.payment-option-card:hover::after {
    bottom: 0;
}

.total-pay-badge {
    background: #f8f9fa;
    border: 2px solid #13322b;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
}
.total-pay-badge h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}
.total-pay-badge .amount {
    font-size: 2rem;
    color: #13322b;
    font-weight: 800;
}

.header-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}
