/* ==========================================================================
   Variables & Reset - AVISSTUR
   ========================================================================== */
:root {
    --primary-blue: #0A2540;     /* Azul oscuro corporativo */
    --accent-blue: #00AEEF;      /* Celeste aeronáutico */
    --white: #FFFFFF;
    --light-bg: #F0F4F8;
    --gray-100: #F3F4F6;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    --font-main: 'Inter', sans-serif;
    --radius: 12px;
    --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.05);
    --shadow-md: 0 8px 16px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 15px 35px rgba(10, 37, 64, 0.15);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-main); 
    background-color: var(--light-bg); 
    color: var(--gray-800); 
    line-height: 1.5; 
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.fw-bold { font-weight: 700; }
.hidden { display: none !important; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ==========================================================================
   Header Corporativo
   ========================================================================== */
.main-header { 
    background-color: var(--white); 
    box-shadow: var(--shadow-sm); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 3px solid var(--primary-blue);
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-img { 
    height: 55px; 
    object-fit: contain; 
} 

.logo-fallback { 
    font-size: 32px; 
    font-weight: 800; 
    color: var(--primary-blue); 
    letter-spacing: 1.5px; 
}

.logo-subtitle { 
    font-size: 0.8rem; 
    color: var(--gray-600); 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    margin-top: 5px;
}

.security-badge { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--success); 
    font-size: 0.875rem; 
    font-weight: 600; 
    background: #ecfdf5; 
    padding: 8px 16px; 
    border-radius: 20px; 
    border: 1px solid #a7f3d0;
}

.security-badge span { font-size: 18px; }

.back-link { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    color: var(--gray-600); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: color 0.2s; 
}

.back-link:hover { color: var(--primary-blue); }

/* ==========================================================================
   Pantalla de Selección (index.php)
   ========================================================================== */
.selection-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-height: 75vh; 
    padding: 40px 20px; 
}

.selection-header { 
    text-align: center; 
    margin-bottom: 40px; 
}

.selection-header h2 { 
    color: var(--primary-blue); 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
    font-weight: 800;
}

.selection-header p { 
    color: var(--gray-600); 
    font-size: 1.1rem; 
}

.selection-cards { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    max-width: 800px; 
    width: 100%; 
}

.option-card { 
    background: var(--white); 
    border-radius: var(--radius); 
    padding: 40px 30px; 
    text-align: center; 
    text-decoration: none; 
    color: inherit; 
    box-shadow: var(--shadow-md); 
    transition: all 0.3s ease; 
    border: 2px solid transparent; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.option-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary-blue); 
    box-shadow: var(--shadow-lg); 
}

.option-icon { 
    background: rgba(10, 37, 64, 0.05); 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    color: var(--primary-blue); 
}

.option-icon span { font-size: 40px; }

.option-card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 10px; 
    color: var(--primary-blue); 
    font-weight: 700;
}

.option-card p { 
    color: var(--gray-600); 
    font-size: 0.95rem; 
    margin-bottom: 20px; 
    flex-grow: 1; 
}

/* ==========================================================================
   Layout Checkout & Cards (matricula.php / pensiones.php)
   ========================================================================== */
.main-content { 
    display: grid; 
    grid-template-columns: 350px 1fr; 
    gap: 30px; 
    margin-top: 40px; 
    margin-bottom: 60px; 
}

.card { 
    background: var(--white); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-md); 
    padding: 35px; 
    border: 1px solid rgba(0,0,0,0.05);
}

/* Resumen (Columna Izquierda) */
.summary-card { 
    background: var(--primary-blue); 
    color: var(--white); 
    position: sticky; 
    top: 110px; 
    background-image: linear-gradient(135deg, #0A2540 0%, #15416e 100%);
}

.summary-card h2 { 
    font-size: 1.3rem; 
    margin-bottom: 20px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.15); 
    font-weight: 700;
}

.summary-item { 
    display: flex; 
    flex-direction: column; 
    margin-bottom: 15px; 
}

.summary-item .label { 
    font-size: 0.85rem; 
    color: var(--accent-blue); 
    margin-bottom: 4px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    font-weight: 600;
}

.summary-total { 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px dashed rgba(255,255,255,0.3); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 1.1rem; 
}

.total-amount { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--white); 
}

.beneficiary-box { 
    background: rgba(255,255,255,0.1); 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid rgba(255,255,255,0.2); 
}

.beneficiary-box p { 
    font-size: 0.85rem; 
    margin-bottom: 3px; 
    color: #E5E7EB;
}

.beneficiary-box strong { 
    display: block; 
    font-size: 1.1rem; 
    color: var(--white); 
    margin-top: 2px;
}

/* ==========================================================================
   Formulario Izipay & Checkout Right Column
   ========================================================================== */
.section-title { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 1.2rem; 
    color: var(--primary-blue); 
    margin-bottom: 25px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--light-bg); 
    font-weight: 700;
}

/* Contenedor oficial de Izipay */
.kr-embedded {
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.demo-warning { 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-align: center; 
    margin-bottom: 20px; 
    border: 1px dashed; 
}

/* Botones */
.btn-primary { 
    width: 100%; 
    background-color: var(--primary-blue); 
    color: var(--white); 
    border: none; 
    padding: 18px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
    box-shadow: 0 4px 6px rgba(10,37,64,0.2);
}

.btn-primary:hover { 
    background-color: #0d3156; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(10,37,64,0.3);
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--primary-blue); 
    color: var(--primary-blue); 
    padding: 15px 24px; 
    font-weight: 700; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    display: inline-block;
    text-align: center;
}

.btn-outline:hover { 
    background: var(--primary-blue); 
    color: var(--white); 
}

/* ==========================================================================
   Pantalla de Éxito / Constancia (resultado.php)
   ========================================================================== */
.success-view { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 80vh; 
}

.success-card { 
    max-width: 600px; 
    width: 100%; 
    text-align: center; 
    padding: 50px 40px; 
    border-top: 5px solid var(--success);
}

.success-icon span { 
    font-size: 80px; 
    color: var(--success); 
    margin-bottom: 15px; 
}

.success-card h2 { 
    color: var(--primary-blue); 
    margin-bottom: 10px; 
    font-size: 2.2rem; 
    font-weight: 800;
}

.success-subtitle { 
    color: var(--gray-600); 
    margin-bottom: 30px; 
    font-size: 1.1rem;
}

.success-data { 
    background: #F8FAFC; 
    padding: 25px; 
    border-radius: var(--radius); 
    text-align: left; 
    margin-bottom: 35px; 
    border: 1px solid var(--gray-100);
}

.success-data p { 
    margin-bottom: 12px; 
    font-size: 1.05rem; 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid #E5E7EB; 
    padding-bottom: 10px; 
    color: var(--gray-800);
}

.success-data p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.success-data p strong { 
    color: var(--primary-blue); 
}

/* Status Badge (Pagado) */
.status-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 800; 
    letter-spacing: 0.5px; 
}

.status-badge.paid { 
    background: #D1FAE5; 
    color: var(--success); 
    border: 1px solid #34D399;
}

/* ==========================================================================
   Animaciones & Responsive
   ========================================================================== */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.fade-in { 
    animation: fadeIn 0.5s ease-out forwards; 
}

@media (max-width: 900px) {
    .main-content, .selection-cards { 
        grid-template-columns: 1fr; 
    }
    .summary-card { 
        position: static; 
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .back-link {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .success-card {
        padding: 30px 20px;
    }
    .success-data p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ==========================================================================
   Print Styles (Para la Constancia)
   ========================================================================== */
@media print {
    body { 
        background: white; 
    }
    .main-header, .btn-primary, .btn-outline { 
        display: none !important; 
    }
    .success-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .success-data {
        border: 2px solid #000;
        background: transparent;
    }
}
/* =====================================================
   FORMULARIO DE PAGO - AVISSTUR / CULQI
   ===================================================== */


/* =====================================================
   TARJETA DE PAGO
   ===================================================== */

.payment-card {
    background: var(--white);
    border-radius: var(--radius);
}

.payment-header {
    margin-bottom: 26px;
}

.payment-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.payment-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.payment-title .material-symbols-outlined {
    font-size: 26px;
    color: var(--accent-blue);
}

.payment-subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-600);
}


/* =====================================================
   FORMULARIO
   ===================================================== */

#paymentForm {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-bottom: 8px;

    font-size: 0.875rem;
    font-weight: 600;

    color: var(--gray-800);
}


/* =====================================================
   INPUTS
   ===================================================== */

.form-group input {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--gray-300);
    border-radius: 9px;

    background: var(--white);

    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--gray-800);

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-group input:hover {
    border-color: #B4BCC7;
}

.form-group input:focus {
    outline: none;

    border-color: var(--accent-blue);

    box-shadow:
        0 0 0 3px rgba(0, 174, 239, 0.12);
}


/* =====================================================
   NÚMERO DE TARJETA
   ===================================================== */

.input-wrapper {
    position: relative;
    width: 100%;
}

#cardNumber {
    padding-right: 58px;
}

.card-brand-icon {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 24px;

    font-size: 11px;
    font-weight: 700;

    color: var(--primary-blue);
}


/* =====================================================
   FILA VENCIMIENTO + CVV
   ===================================================== */

.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-group.half-width {
    flex: 1;
    min-width: 0;
}


/* =====================================================
   CVV INFO
   ===================================================== */

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: help;

    color: var(--gray-600);
}

.tooltip-icon .material-symbols-outlined {
    font-size: 17px;
}

.tooltip-icon:hover {
    color: var(--accent-blue);
}


/* =====================================================
   TEXTO DE AYUDA
   ===================================================== */

.help-text {
    display: block;

    margin-top: 6px;

    font-size: 0.75rem;
    line-height: 1.4;

    color: var(--gray-600);
}


/* =====================================================
   ERRORES
   ===================================================== */

.error-message {
    display: none;

    margin-top: 6px;

    font-size: 0.75rem;
    font-weight: 500;

    color: var(--error);
}

.form-group input.is-invalid {
    border-color: var(--error);
}

.form-group input.is-invalid:focus {
    box-shadow:
        0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-group input.is-invalid + .error-message {
    display: block;
}

.input-wrapper + .error-message {
    margin-top: 6px;
}

.form-group input.is-valid {
    border-color: var(--success);
}

.form-group input.is-valid:focus {
    box-shadow:
        0 0 0 3px rgba(16, 185, 129, 0.12);
}


/* =====================================================
   BOTÓN PAGAR
   ===================================================== */

.payment-submit {
    width: 100%;
    min-height: 54px;

    margin-top: 8px;

    border: none;
    border-radius: var(--radius);

    background: var(--primary-blue);
    color: var(--white);

    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    transition:
        background-color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

.payment-submit:hover:not(:disabled) {
    background: #071E35;
    box-shadow: var(--shadow-md);
}

.payment-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.payment-submit:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 4px rgba(0, 174, 239, 0.22);
}

.payment-submit .btn-icon {
    display: inline-flex;
    align-items: center;
}

.payment-submit .btn-icon .material-symbols-outlined {
    font-size: 20px;
}

.payment-submit .btn-text {
    display: inline-flex;
    align-items: center;
}


/* =====================================================
   BOTÓN DESHABILITADO
   ===================================================== */

.payment-submit:disabled {
    cursor: not-allowed;

    background: var(--gray-300);
    color: var(--gray-600);

    box-shadow: none;
}


/* =====================================================
   ESTADO PROCESANDO
   ===================================================== */

.payment-submit.is-processing {
    cursor: wait;

    background: var(--primary-blue);
    opacity: 0.9;
}

.payment-submit.is-processing .btn-icon,
.payment-submit.is-processing .btn-text {
    display: none;
}


/* =====================================================
   SPINNER
   ===================================================== */

.btn-spinner {
    display: none;

    width: 21px;
    height: 21px;

    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);

    border-radius: 50%;

    animation: paymentSpinner 0.8s linear infinite;
}

.payment-submit.is-processing .btn-spinner {
    display: block;
}

@keyframes paymentSpinner {

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   SEGURIDAD
   ===================================================== */

.payment-security {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid var(--gray-100);

    text-align: center;
}

.payment-security-title {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-bottom: 6px;

    font-size: 0.85rem;
    font-weight: 700;

    color: var(--success);
}

.payment-security-title .material-symbols-outlined {
    font-size: 18px;
}

.payment-security-text {
    max-width: 410px;

    margin: 0 auto;

    font-size: 0.75rem;
    line-height: 1.5;

    color: var(--gray-600);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {

    .payment-header {
        margin-bottom: 22px;
    }

    .payment-title h3 {
        font-size: 1.15rem;
    }

    .form-group input {
        height: 50px;
        font-size: 16px;
    }

}


/* =====================================================
   MÓVILES PEQUEÑOS
   ===================================================== */

@media (max-width: 480px) {

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half-width {
        width: 100%;
    }

    .payment-submit {
        min-height: 52px;
    }

    .payment-security-text {
        padding: 0 5px;
    }

}
/* =====================================================
   SELECTOR DE MÉTODOS DE PAGO
   ===================================================== */

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.payment-method {
    min-height: 90px;
    padding: 14px 10px;

    border: 1px solid var(--gray-300);
    border-radius: 10px;

    background: var(--white);
    color: var(--gray-800);

    font-family: var(--font-main);

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.payment-method:hover {
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.payment-method.active {
    border: 2px solid var(--accent-blue);
    background: rgba(0, 174, 239, 0.06);

    box-shadow:
        0 0 0 2px rgba(0, 174, 239, 0.05);
}

.payment-method > .material-symbols-outlined {
    font-size: 27px;
    color: var(--primary-blue);
}

.payment-method.active > .material-symbols-outlined {
    color: var(--accent-blue);
}

.payment-method-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.payment-method-text strong {
    font-size: 0.85rem;
    font-weight: 700;
}

.payment-method-text small {
    font-size: 0.68rem;
    color: var(--gray-600);
}


/* =====================================================
   PANELES
   ===================================================== */

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
    animation: paymentPanelFade 0.2s ease;
}

@keyframes paymentPanelFade {

    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.payment-panel-header {
    margin-bottom: 22px;
}

.payment-panel-header h4 {
    margin: 0 0 5px;

    font-size: 1rem;
    font-weight: 700;

    color: var(--primary-blue);
}

.payment-panel-header p {
    margin: 0;

    font-size: 0.8rem;
    line-height: 1.5;

    color: var(--gray-600);
}


/* =====================================================
   YAPE / PAGOEFECTIVO
   ===================================================== */

.alternative-payment {
    text-align: left;
}

.alternative-payment-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 14px;

    border-radius: 14px;

    background: rgba(0, 174, 239, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary-blue);
}

.alternative-payment-icon .material-symbols-outlined {
    font-size: 30px;
}

.alternative-payment h4 {
    text-align: center;

    margin: 0 0 8px;

    color: var(--primary-blue);

    font-size: 1.05rem;
}

.alternative-payment > p {
    max-width: 410px;

    margin: 0 auto 24px;

    text-align: center;

    font-size: 0.82rem;
    line-height: 1.55;

    color: var(--gray-600);
}


/* =====================================================
   RESPONSIVE MÉTODOS
   ===================================================== */

@media (max-width: 600px) {

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .payment-method {
        min-height: 66px;

        flex-direction: row;
        justify-content: flex-start;

        padding: 12px 16px;
    }

    .payment-method-text {
        align-items: flex-start;
    }

}
/* =====================================================
   LOGOS DE MÉTODOS DE PAGO
   ===================================================== */

.payment-method-logos {
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}


/* LOGO GENERAL */

.payment-logo {
    display: block;

    width: auto;
    max-width: 100%;

    object-fit: contain;
}


/* VISA */

.logo-visa {
    height: 22px;
    max-width: 52px;
}


/* MASTERCARD */

.logo-mastercard {
    height: 27px;
    max-width: 45px;
}


/* YAPE */

.logo-yape {
    height: 32px;
    max-width: 70px;
}


/* PAGOEFECTIVO */

.logo-pagoefectivo {
    height: 30px;
    max-width: 100px;
}


/* =====================================================
   MÉTODO ACTIVO
   ===================================================== */

.payment-method.active .payment-method-logos {
    transform: scale(1.03);
}

.payment-method-logos {
    transition: transform 0.2s ease;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 600px) {

    .payment-method-logos {
        width: 85px;
        flex-shrink: 0;

        justify-content: center;
    }

    .logo-yape {
        height: 30px;
    }

    .logo-pagoefectivo {
        height: 27px;
    }

}
/* =====================================================
   OVERLAY - PROCESANDO PAGO
===================================================== */

.payment-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(3, 27, 73, 0.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.payment-processing-overlay.is-active {
    display: flex;
}

.payment-processing-card {
    width: 100%;
    max-width: 430px;

    padding: 42px 34px;

    text-align: center;

    background: #ffffff;
    border-radius: 22px;

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.22);

    animation:
        paymentProcessingIn
        0.22s ease-out;
}

.payment-processing-spinner {
    width: 58px;
    height: 58px;

    margin:
        0 auto
        24px;

    border: 5px solid #e7edf7;
    border-top-color: #082968;

    border-radius: 50%;

    animation:
        paymentProcessingSpin
        0.8s linear infinite;
}

.payment-processing-card h2 {
    margin:
        0 0
        10px;

    color: #031b49;

    font-size: 24px;
    font-weight: 800;
}

.payment-processing-main {
    margin:
        0 0
        24px;

    color: #667085;

    font-size: 14px;
    line-height: 1.6;
}

.payment-processing-warning {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 16px;

    color: #344054;

    background: #f5f8fc;

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 600;
}

.payment-processing-warning
.material-symbols-outlined {
    color: #082968;
    font-size: 20px;
}


/* ANIMACIONES */

@keyframes paymentProcessingSpin {

    to {
        transform: rotate(360deg);
    }

}

@keyframes paymentProcessingIn {

    from {
        opacity: 0;
        transform:
            translateY(8px)
            scale(0.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* MÓVIL */

@media (max-width: 520px) {

    .payment-processing-card {
        max-width: 360px;

        padding:
            36px 24px;
    }

    .payment-processing-card h2 {
        font-size: 21px;
    }

}
/* =====================================================
   MENSAJE GLOBAL DE ERROR
===================================================== */

.payment-error-box {
    display: none;

    align-items: flex-start;
    gap: 12px;

    margin-bottom: 20px;
    padding: 16px 18px;

    background: #fff4f4;
    border: 1px solid #f1b8b8;
    border-radius: 12px;

    color: #8f1d1d;
}

.payment-error-box.is-visible {
    display: flex;
}

.payment-error-box
.material-symbols-outlined {
    margin-top: 1px;

    font-size: 22px;
}

.payment-error-box strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
    font-weight: 700;
}

.payment-error-box p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
}
/* =========================================================
   INFORMACIÓN Y CONFIANZA - PORTAL DE PAGOS
   ========================================================= */

.payment-trust-section {
    margin-top: 50px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 5px 15px #082968;
}

.trust-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.trust-header > span {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef8ff;
    color: #0a5fa8;
    font-size: 26px;
}

.trust-header h3 {
    color: #0a2540;
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.trust-header p {
    color: #6b7280;
    line-height: 1.6;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.trust-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 12px;
}

.trust-feature > span {
    color: #0a5fa8;
    font-size: 24px;
}

.trust-feature strong {
    display: block;
    color: #0a2540;
    margin-bottom: 5px;
}

.trust-feature p {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.5;
}

.legal-information {
    border-top: 1px solid #e5e7eb;
    padding-top: 25px;
}

.legal-information h4 {
    color: #0a2540;
    margin-bottom: 7px;
}

.legal-information > p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    color: #0a2540;
    background: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.legal-links a:hover {
    background: #f0f9ff;
    border-color: #0a5fa8;
}

.legal-links a span {
    font-size: 18px;
}

.payment-footer {
    margin-top: 50px;
    padding: 30px 20px;
    text-align: center;
    background: #0a2540;
    color: #ffffff;
}

.payment-footer p {
    margin: 4px 0;
}

.payment-footer .footer-copy {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}
.payment-help-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
    color: #6b7280;
    font-size: 0.86rem;
    line-height: 1.6;
}

.payment-help-note a {
    color: #0a5fa8;
    font-weight: 700;
    text-decoration: none;
}

.payment-help-note a:hover {
    text-decoration: underline;
}
@media (max-width: 800px) {

    .trust-features {
        grid-template-columns: 1fr;
    }

    .payment-trust-section {
        padding: 24px 20px;
    }

    .legal-links {
        flex-direction: column;
    }

    .legal-links a {
        width: 100%;
    }

}