/* ============================================
   AIR-E PORTAL DE PAGOS - STYLES
   Colores exactos de la página original
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #212121;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 14px;
}

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

/* ============================================
   NAVBAR - Azul marino oscuro exacto
   ============================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0055d4;
    padding: 0 18px;
    height: 58px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo Air-e */
.logo-link {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Hamburger - estilo original */
.hamburger-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hamburger-btn .material-icons {
    font-size: 26px;
    color: #ffffff;
}

/* Portal Brand */
.portal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.portal-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-icon-img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

/* Navbar Right - Iniciar / Registrarse */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 0;
    transition: background 0.15s;
    cursor: pointer;
    font-weight: 400;
}

.nav-action:hover {
    background: rgba(255,255,255,0.08);
}

.nav-action .material-icons {
    font-size: 22px;
    color: #ffffff;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-layout {
    display: flex;
    margin-top: 58px;
    min-height: calc(100vh - 58px - 36px);
    flex: 1;
    background: #ffffff;
}

/* ============================================
   SIDEBAR - Blanco con bordes suaves
   ============================================ */
.sidebar {
    width: 180px;
    min-width: 180px;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding-top: 0;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 36px;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #616161;
    letter-spacing: 0.2px;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
    line-height: 1.3;
}

.sidebar-item:hover {
    background: #f5f5f5;
    color: #1976d2;
}

.sidebar-item.active {
    background: #e8f0fe;
    color: #1976d2;
    border-left-color: #1976d2;
    font-weight: 700;
}

.sidebar-item .material-icons {
    font-size: 20px;
    color: #757575;
    min-width: 20px;
}

.sidebar-item.active .material-icons {
    color: #1976d2;
}

.sidebar-item:hover .material-icons {
    color: #1976d2;
}

.sidebar-label {
    line-height: 1.3;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content {
    flex: 1;
    margin-left: 180px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 58px);
    background: #ffffff;
}

/* Page Title Bar - borde amarillo/dorado exacto */
.page-title-bar {
    background: #ffffff;
    padding: 18px 28px;
    border-bottom: 1px solid #fbc02d;
}

.page-title-bar h1 {
    font-size: 16px;
    font-weight: 600;
    color: #263238;
    letter-spacing: 0.2px;
    font-family: 'Roboto', sans-serif;
}

/* Content Body */
.content-body {
    padding: 30px 32px 36px;
    flex: 1;
    display: flex;
    justify-content: center;
    background: #ffffff;
}

.content-inner {
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
}

.welcome-text {
    font-size: 14px;
    line-height: 1.75;
    color: #263238;
    max-width: 760px;
    margin: 0 auto;
    font-weight: 600;
    text-align: center;
}

.pagar-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1040px;
    padding-top: 16px;
    margin: 0;
}

.pagar-btn {
    background: #0c3a72;
    color: #ffffff;
    border: none;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.pagar-btn:hover {
    background: #0b3166;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.pagar-btn:active {
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* Spinner inside button */
.pagar-btn.loading {
    pointer-events: none;
    opacity: 0.95;
}

.pagar-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: spin 0.9s linear infinite;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Total box */
.total-box {
    margin: 20px 0;
    width: 100%;
    max-width: 1040px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    padding: 14px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 16px rgba(2,6,23,0.03);
}

.total-icon {
    width: 36px;
    height: 36px;
    background: #1b5e20;
    color: #fff;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.total-text { font-weight:700; color:#0f1724; }


/* ============================================
   PAYMENT CARD - Tarjeta de pago NIC
   ============================================ */
.payment-card {
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 24px 22px 24px;
    width: 250px;
    min-height: 230px;
    background: #f3f3f3;
    position: relative;
    margin: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.payment-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #444444;
    text-align: center;
    margin-bottom: 8px;
}

.payment-card-highlight {
    font-weight: 700;
    color: #212121;
}

.payment-card-label {
    font-size: 12px;
    font-weight: 400;
    color: #6d6d6d;
    text-align: center;
    margin-bottom: 26px;
    letter-spacing: 0.04em;
}

.nic-input-wrapper {
    max-width: 200px;
    margin: 0 auto;
}

.nic-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #cfd8dc;
    outline: none;
    padding: 8px 0 6px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    background: transparent;
    color: #263238;
    transition: border-color 0.3s ease;
}

.nic-input::placeholder {
    color: #90a4ae;
}

.nic-input:focus {
    border-bottom-color: #1976d2;
    border-bottom-width: 2px;
}


/* ============================================
   EXTRA INFO SECTION
   ============================================ */
.info-page {
    background: #f7f8fb;
    padding: 40px 0 20px;
}

.info-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

.info-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f4f98;
    text-align: center;
    margin-bottom: 16px;
}

.info-lead {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3,
.info-card h4,
.info-block h4 {
    font-size: 16px;
    color: #0f4f98;
    margin-bottom: 12px;
}

.info-block p,
.info-block li,
.info-card p {
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 18px 20px;
    box-shadow: 0 6px 18px rgba(15,79,152,0.06);
}

.info-card ul,
.advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li,
.advantages-list li {
    margin-bottom: 10px;
}

.info-card li strong,
.advantages-list li strong {
    color: #111827;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    background: #eef2ff;
    color: #1d4ed8;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.service-link:hover {
    background: #dbeafe;
}

.coverage-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.coverage-image {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
}

.coverage-image[aria-hidden="true"] {
    min-height: 120px;
    background: linear-gradient(180deg, rgba(14,165,233,0.06), rgba(99,102,241,0.06));
    border: 1px dashed rgba(0,0,0,0.04);
}

/* ============================================
   CHECKOUT FORM
   ============================================ */
/* Make checkout form visually inline with content (no outer card) */
.checkout-form {
    width: 100%;
    max-width: 1040px;
    margin: 0 0 20px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    text-align: left;
    align-self: stretch;
}
/* --- Ajustes para centrar y dar estilo al formulario de pago --- */
/* Centrar el área de contenido principal */
.content-body, .container, .main-content {
    max-width: 1040px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}
.content-inner {
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
}

/* Cabecera del formulario con línea amarilla superior */
.checkout-header { display: none; }

.terms-title {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #333;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0cb47;
}
.terms-checkbox {
    display: block;
    margin-top: 12px;
    line-height: 1.75;
    color: #4d4d4d;
    font-size: 14px;
}
.terms-checkbox input {
    margin-right: 10px;
    vertical-align: middle;
    transform: scale(1.05);
}

/* Grid: tres campos en una fila, banco ocupa toda la fila */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.form-row label {
    display: block;
    font-size: 13px;
    color: #4a4a4a;
    margin-bottom: 12px;
}
.input-field {
    width: 100%;
    padding: 10px 0 8px;
    border: none;
    border-bottom: 1px solid #c8c8c8;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    color: #2c2c2c;
}
.input-field:focus {
    outline: none;
    border-bottom-color: #1976d2;
}
.bank-row {
    grid-column: 1 / -1;
}

.total-box {
    margin: 28px 0;
    width: 100%;
    max-width: 1040px;
    background: #f7f7f7;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.total-box .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2fa54a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}
.total-box .text {
    font-size: 15px;
    color: #333;
}
.total-box .amount {
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
}

/* Términos con línea amarilla fina arriba */
.terms {
    display: none;
}

/* Botón Pagar alineado a la derecha */
.confirm-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
.confirm-btn {
    background: #053162;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 3px 0 rgba(0,0,0,0.12);
    cursor: pointer;
    font-weight: 600;
}

.cancel-btn { display: none; }

@media (max-width: 800px) {
    .form-grid { grid-template-columns: 1fr; }
    .confirm-actions { justify-content: center; }
}

/* Force overall page background and center content area like screenshot */
body { background: #f3f3f3; }
.content-body { background: transparent; padding: 40px 0 60px; }



/* Place pagar button aligned to bottom-right of the form area */
.checkout-form .confirm-actions { margin-top: 16px; }

@media (max-width:900px) {
    .form-grid { grid-template-columns: 1fr; }
    .bank-row { grid-column: auto; }
}

@media (max-width:720px) {
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .info-grid,
    .services-grid,
    .coverage-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .info-title {
        font-size: 20px;
    }

    .info-lead,
    .info-card p,
    .info-block p {
        font-size: 14px;
    }

    .service-link {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* ============================================
   FOOTER - Gris claro exacto
   ============================================ */
.footer {
    background: #f5f5f5;
    padding: 8px 12px;
    font-size: 11px;
    color: #9e9e9e;
    border-top: 1px solid #e0e0e0;
    text-align: left;
    height: 36px;
    display: flex;
    align-items: center;
}

.page-loader-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    backdrop-filter: blur(4px);
}

.loader-card {
    max-width: 520px;
    width: calc(100% - 40px);
    padding: 34px 32px;
    background: transparent;
    border-radius: 28px;
    border: none;
    box-shadow: none;
    text-align: center;
    color: #ffffff;
}

.loader-circle {
    width: 68px;
    height: 68px;
    border: 6px solid rgba(255,255,255,0.18);
    border-top-color: #66ff96;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 0.95s linear infinite;
}

.loader-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #000;
}

.loader-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 16px;
}

.loader-countdown {
    font-size: 14px;
    color: #a5f4d5;
    margin-top: 12px;
    font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section styles for gradient background and cards
.testimonials-section {
    padding: 56px 0;
    background: linear-gradient(90deg, #5b6bff 0%, #8e58c7 100%);
    color: #ffffff;
}

.testimonials-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.testimonials-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.testimonials-sub {
    font-size: 13px;
    opacity: 0.95;
    margin-bottom: 28px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
    justify-items: center;
}

.testimonial-card {
    background: #ffffff;
    color: #0f1724;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15,79,152,0.12);
    text-align: left;
    width: 100%;
    max-width: 260px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(15,79,152,0.16); }

.tc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #6b46c1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.tc-name {
    font-weight: 700;
    font-size: 14px;
}

.tc-stars {
    color: #f59e0b;
    font-size: 12px;
}

.tc-text {
    font-size: 13px;
    line-height: 1.45;
    margin: 8px 0 12px;
    color: #334155;
}

.tc-meta {
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 1100px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-section { padding: 28px 0; }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 48px 0;
    background: #f8fafc;
}

.faq-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 18px;
    text-align: center;
}

.faq-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.faq-card {
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
    text-align: left;
}

.faq-q {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 6px;
    text-decoration: none;
}

.faq-a {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-top: 6px;
}

@media (max-width: 720px) {
    .faq-container { padding: 0 12px; }
}

/* ============================================
   SERVICE INFO
   ============================================ */
.service-info {
    padding: 44px 0 64px;
}

.service-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 18px;
    text-align: center;
}

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

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

.service-box {
    background: #ffffff;
    border-radius: 6px;
    padding: 18px;
    border-left: 3px solid #4f46e5;
    text-align: left;
    box-shadow: 0 6px 16px rgba(79,70,229,0.04);
}

.service-box h4 { color: #1f2937; margin-bottom: 8px; }
.service-box p { color: #4b5563; font-size: 14px; line-height: 1.6; }

.info-highlight {
    background: linear-gradient(90deg, #eef2ff, #f3e8ff);
    border-radius: 8px;
    padding: 18px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(99,102,241,0.06);
}

@media (max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 16px rgba(0,0,0,0.15);
    }

    .content {
        margin-left: 0;
    }

    .navbar-left {
        gap: 12px;
    }

    .hamburger-btn {
        min-width: 46px;
        min-height: 46px;
        padding: 8px;
        border-radius: 0;
        background: none !important;
        border: none;
    }

    .hamburger-btn .material-icons {
        font-size: 28px;
    }

    .logo-link {
        display: none;
    }

    .navbar-right {
        display: none;
    }

    .portal-brand {
        margin-left: 32px;
        padding-left: 0;
    }

    .content-body {
        padding: 16px 14px;
    }

    .page-title-bar {
        padding: 12px 14px;
    }

    .payment-card {
        width: 220px;
    }

    .pagar-btn-wrapper {
        justify-content: center;
        padding-top: 20px;
        max-width: 100%;
    }

    .pagar-btn {
        padding: 10px 26px;
    }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
