/* SIMIT Clone CSS - Pixel Perfect Refined v3 */

:root {
    --primary-blue: #163673; 
    --secondary-blue: #2563eb; 
    --top-bar-bg: #1e3a8a;
    --text-dark: #374151;
    --text-gray: #6b7280;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --footer-bg: #f9fafb;
    --yellow-colombia: #fcd116;
    --blue-colombia: #003893;
    --red-colombia: #ce1126;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-blue {
    color: var(--primary-blue);
}

/* Accessibility Sidebar */
.accessibility-sidebar {
    position: fixed;
    left: 0;
    top: 180px;
    background-color: var(--secondary-blue); 
    color: white;
    padding: 20px 12px;
    border-radius: 0 8px 8px 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.acc-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
}

.acc-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.acc-icons button {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
}

.acc-icons button:hover {
    transform: scale(1.1);
}

/* Top Bar */
.top-bar {
    background-color: var(--top-bar-bg);
    color: white;
    font-size: 13px;
    padding: 6px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-left a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left a:hover, .top-bar-right a:hover {
    opacity: 0.8;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right a {
    font-size: 16px;
}

/* Header */
.header {
    background-color: white;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--secondary-blue);
}

.btn-ingresar {
    border: 1px solid var(--secondary-blue);
    background: transparent;
    color: var(--secondary-blue);
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ingresar:hover {
    background: var(--secondary-blue);
    color: white;
}

.btn-menu {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #4b5563;
    cursor: pointer;
}

.flag-line {
    display: flex;
    height: 5px;
    width: 100%;
}

.flag-yellow { background-color: var(--yellow-colombia); width: 50%; }
.flag-blue { background-color: var(--blue-colombia); width: 25%; }
.flag-red { background-color: var(--red-colombia); width: 25%; }

/* Main Content & Hero */
.main-content {
    position: relative;
    background-color: white; 
    padding-bottom: 80px;
}

.hero-wrapper {
    position: relative;
    background-color: var(--bg-light);
    border-bottom-right-radius: 20%; 
    border-bottom-left-radius: 20%;
    padding-bottom: 120px;
    overflow: hidden; /* Evita desbordamientos */
}

.hero-container {
    display: flex;
    align-items: center;
    min-height: 480px;
    position: relative;
    z-index: 2;
    padding-top: 30px;
}

/* Left Side: Girl Image */
.hero-image-container {
    flex: 0 0 35%; /* Volvemos al ancho original para no afectar las imágenes */
    position: relative;
    height: 450px;
}

/* Fix bg waves to stick to left edge */
.bg-waves {
    position: absolute;
    top: 5%;
    left: 0;
    height: 90%;
    width: 38%;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
    z-index: 1;
}

.hero-girl {
    position: absolute;
    bottom: -120px; 
    left: -399px; /* Aleja la chica unos '6cm' visuales acercándola al borde izquierdo del container */
    height: 105%; /* Ligeramente más proporcionada */
    width: auto;
    object-fit: contain;
    z-index: 2;
}

/* Right Side: Search Form */
.hero-search-container {
    flex: 0 0 65%;
    padding-left: 20px; 
    margin-left: -120px; /* Desplaza todo el bloque de búsqueda más hacia la izquierda (centro visual) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.main-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.main-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Align search form perfectly with the middle + right card */
.search-form {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 16px 20px;
    font-size: 15px;
    outline: none;
    color: var(--text-dark);
    font-family: 'Open Sans', sans-serif;
}

.search-form input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.btn-search {
    background-color: var(--secondary-blue);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    width: 60px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background-color: #1d4ed8;
}

/* Floating Cards Layout (3 Columns) */
.floating-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -80px; /* Pulls cards up over the gray area perfectly */
    position: relative;
    z-index: 10;
}

.floating-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Left Card: Info */
.info-card {
    padding: 25px 20px;
    justify-content: center;
    height: 280px;
}

.card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: var(--secondary-blue);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.info-content {
    flex: 1;
    padding: 0 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

.info-illustration {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
}

.card-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
}

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

/* Middle Card: Links */
.links-card {
    height: 280px;
    padding: 10px 0;
    justify-content: space-evenly;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    transition: background 0.3s;
}

.link-item:hover {
    background: #f9fafb;
}

.link-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background-color: #e0f2fe;
    color: var(--secondary-blue);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.link-text p {
    font-size: 12px;
    color: var(--text-gray);
}

.divider {
    height: 1px;
    background-color: #f3f4f6;
    margin: 0 25px;
}

/* Right Card: Map */
.map-card {
    height: 280px;
}

.map-image-area {
    width: 100%;
    height: 130px;
    position: relative;
    background-color: #e5e7eb;
}

.map-content {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    flex: 1;
}

.map-text {
    flex: 1;
}

.map-text .card-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.btn-outline-blue {
    border: 1px solid var(--secondary-blue);
    background: transparent;
    color: var(--secondary-blue);
    padding: 8px 18px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 15px;
    white-space: nowrap;
}

.btn-outline-blue:hover {
    background: var(--secondary-blue);
    color: white;
}

/* Alerts */
.alert-box {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 15px;
}

.alert-loading {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    padding: 60px 0 40px;
    font-size: 14px;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 280px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
}

.footer-col p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.mt-4 {
    margin-top: 30px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #9ca3af;
    border-radius: 50%;
    color: #6b7280;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-social a:hover {
    background-color: #4b5563;
    color: white;
    border-color: #4b5563;
}

.footer-note {
    font-size: 12px;
    margin-top: 25px !important;
    color: #9ca3af;
}

.footer-links {
    margin-top: 15px;
    font-size: 13px;
}

.footer-links a {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.payment-logos {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
}

.pse-logo {
    height: 35px;
    object-fit: contain;
}

/* Results Section */
.results-section {
    padding: 50px 0;
    background: white;
}

.results-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.results-raw pre {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    font-size: 13px;
    font-family: monospace;
    color: #334155;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .main-nav ul {
        display: none;
    }
    
    .hero-container {
        flex-direction: column;
        min-height: auto;
        padding-top: 40px;
        text-align: center;
    }
    
    .hero-image-container {
        width: 100%;
        height: 350px;
        order: 2;
        margin-top: 40px;
    }
    
    .hero-girl {
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 120%;
    }
    
    .bg-waves {
        left: 0;
        width: 100%;
    }

    .hero-search-container {
        width: 100%;
        padding-left: 0;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .search-form {
        margin: 0 auto;
    }
    
    .floating-cards-container {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    
    .accessibility-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .map-card {
        height: auto;
    }
}

/* -------------------------------------
   RESULTS MODE OVERRIDES
-------------------------------------- */

body.results-mode {
    background-color: #f4f6f8;
}

body.results-mode .hero-wrapper {
    padding-bottom: 25px;
    border-radius: 0;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

body.results-mode .hero-image-container,
body.results-mode .bg-waves,
body.results-mode .floating-cards-container {
    display: none !important;
}

body.results-mode .hero-container {
    min-height: auto;
    padding: 20px 0 0 0;
}

body.results-mode .hero-search-container {
    flex: 1 1 100%;
    margin-left: 0;
    padding-left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

body.results-mode .search-title-group {
    flex: 1;
}

body.results-mode .main-title {
    font-size: 26px;
    margin-bottom: 0;
}

body.results-mode .main-subtitle {
    font-size: 14px;
    margin-bottom: 0;
    margin-top: 4px;
}

body.results-mode .search-form {
    max-width: 500px;
    margin: 0;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

/* RESULTS SECTION (Cards, Tables, Actions) */
.results-section {
    padding: 30px 0;
    background: transparent;
}

.results-summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.resumen-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 2;
    padding: 15px 20px;
    border: 1px solid #e5e7eb;
}

.resumen-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
    font-size: 13px;
}

.fw-700 { font-weight: 700; }
.text-dark { color: #374151; font-weight: 600; font-size: 14px; }
.text-dark-blue { color: #163673; }
.blue-link { color: var(--secondary-blue); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.blue-link:hover { text-decoration: underline; }

.resumen-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
    font-size: 14px;
}

.res-total-value { font-size: 16px; margin-left: 5px; }

.small-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 25px;
}

.table-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.table-responsive {
    overflow-x: auto;
}

.simit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.simit-table th {
    background-color: #f8fafc;
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.simit-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.simit-table tr:hover {
    background-color: #f8fafc;
}

.table-footer-total {
    text-align: right;
    padding: 15px 20px 0;
    font-size: 15px;
    color: var(--text-dark);
}

.results-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    padding-bottom: 40px;
}

.final-total {
    font-size: 18px;
}

.final-total strong {
    font-size: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-solid-blue {
    background-color: var(--secondary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-solid-blue:hover {
    background-color: #1d4ed8;
}

.btn-outline-blue.btn-imprimir {
    padding: 10px 20px;
}

/* SPINNER OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-container {
    text-align: center;
    color: var(--primary-blue);
}

.spinner {
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--secondary-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Small formatting utilities */
.text-xs { font-size: 11px; color: #64748b; margin-top: 4px; }
.d-block { display: block; }

/* ═══════════════════════════════════════════════════════════════
   PAYMENT PROCESSING & MODAL STYLES
   ═══════════════════════════════════════════════════════════════ */
.payment-processing-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.payment-processing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
}

.payment-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--secondary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.processing-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.processing-status {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 22px;
    min-height: 20px;
}

.processing-progress-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.processing-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.processing-secure-badge {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Modal */
.payment-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.25s ease;
    overflow-y: auto;
}

.payment-modal-container {
    background: #ffffff;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
}

.payment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.header-icon-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-header-badge {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    font-size: 20px;
    flex-shrink: 0;
}

.header-icon-title h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.header-icon-title p {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.payment-modal-body {
    padding: 22px 24px;
}

.payment-amount-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.18);
}

.amount-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #e0e7ff;
}

.amount-value {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.payment-options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-option-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    background: #ffffff;
    transition: all 0.25s ease;
    position: relative;
}

.payment-option-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.payment-option-card.option-featured {
    border: 2px solid #fbbf24;
    background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    background: linear-gradient(90deg, #ea580c, #f97316);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 3px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

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

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bancolombia-icon-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.bancolombia-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.card-icon-box {
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
}

.option-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.option-info p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

.bancolombia-cta-area {
    margin-top: 14px;
}

.btn-bancolombia-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-bancolombia-pay:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.btn-bancolombia-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.card-logos-row {
    display: flex;
    gap: 8px;
    margin: 12px 0 14px;
    flex-wrap: wrap;
}

.card-chip {
    font-size: 11px;
    font-weight: 600;
    background: #f8fafc;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-action-area {
    margin-top: 6px;
}

.btn-card-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f8fafc;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-select:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

/* ─── CARD PAYMENT VIEW ─── */
.card-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.btn-back-link {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-back-link:hover {
    background: #eff6ff;
    text-decoration: underline;
}

.card-view-amount {
    font-size: 13px;
    color: #64748b;
}

.card-view-amount strong {
    font-size: 15px;
    color: var(--primary-blue);
}

/* Virtual Card */
.virtual-card-container {
    perspective: 1000px;
    margin-bottom: 18px;
}

.virtual-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.virtual-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.vcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.vcard-chip-icon {
    width: 34px;
    height: 24px;
    background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
    border-radius: 5px;
    border: 1px solid #ca8a04;
    position: relative;
}

.vcard-brand {
    font-size: 24px;
    color: #ffffff;
}

.vcard-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #f8fafc;
}

.vcard-bottom {
    display: flex;
    justify-content: space-between;
}

.vcard-label {
    font-size: 9px;
    color: #94a3b8;
    display: block;
    letter-spacing: 1px;
}

.vcard-value {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    text-transform: uppercase;
}

/* Card Input Form */
.card-input-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-input-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-input-form label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.card-input-form input,
.card-input-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.input-with-icon input {
    padding-left: 36px;
    padding-right: 42px;
}

.card-input-form input:focus,
.card-input-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.card-type-indicator {
    position: absolute;
    right: 12px;
    font-size: 16px;
}

.bin-detect-info {
    font-size: 11px;
    color: #059669;
    font-weight: 600;
    margin-top: 3px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-submit-payment {
    margin-top: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.disabled-notice-card {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
    margin-bottom: 20px;
}

.disabled-notice-icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 10px;
}

.disabled-notice-title {
    font-size: 16px;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 6px;
}

.disabled-notice-desc {
    font-size: 13px;
    color: #7f1d1d;
    line-height: 1.45;
    margin: 0;
}

.only-payment-available {
    position: relative;
    margin-bottom: 16px;
}

.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.disabled-actions-footer {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.btn-secondary-link {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-secondary-link:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.payment-modal-footer {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}


.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    flex-wrap: wrap;
}

.text-green {
    color: #10b981;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .payment-modal-container {
        border-radius: 16px;
    }
    .payment-modal-header,
    .payment-modal-body,
    .payment-modal-footer {
        padding: 16px;
    }
    .form-row-grid {
        grid-template-columns: 1fr;
    }
    .vcard-number {
        font-size: 15px;
    }
}

/* ─── Mobile Responsiveness Fixes ─── */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
        padding-top: 30px;
        text-align: center;
        gap: 20px;
    }
    .hero-image-container {
        display: none; /* Hide the girl image on mobile to save space and match reference */
    }
    .bg-waves {
        display: none;
    }
    .hero-search-container {
        margin-left: 0;
        padding-left: 0;
        flex: 0 0 100%;
        width: 100%;
    }
    .floating-cards-container {
        flex-direction: column;
        margin-top: 30px;
        padding: 0 20px;
        gap: 20px;
    }
    .summary-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .main-nav ul {
        display: none;
    }
    .header-container {
        height: auto;
        padding: 15px 0;
    }
    .logo img {
        height: 35px;
    }
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .top-bar-left > i,
    .top-bar-left > a:nth-child(4) {
        display: none; /* Hide wheelchair and email on mobile */
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }
    .main-subtitle {
        font-size: 16px;
    }
    .search-form {
        flex-direction: column;
        border-radius: 12px;
        padding: 15px;
        gap: 15px;
        background: white;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }
    .search-form input {
        border-radius: 8px;
        text-align: center;
        border: 1px solid var(--border-color);
        padding: 12px;
        width: 100%;
    }
    .btn-search {
        border-radius: 8px;
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    .simit-table {
        min-width: 800px; /* force scroll on mobile */
    }
    .summary-card {
        padding: 15px;
    }
    .totals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .results-mode .results-section {
        padding: 20px 10px;
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    .accessibility-sidebar {
        display: none;
    }
}
