/* REGISTRAR PAGO - ESTILOS */
:root {
    --primary-purple: #6C2B85;
    --primary-purple-light: #9d3b94;
    --primary-purple-dark: #5a2370;
}
/* ===== VOLVER EN LA ESQUINA SUPERIOR IZQUIERDA ===== */
.volver-flotante {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}
.btn-volver-flotante {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-volver-flotante:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--primary-purple);
    transform: translateX(-2px);
}

.pago-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 20px 0 20px 0;
}

.pago-card {
    background: white;
    border-radius: 14px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
/* ===== BOTÓN VOLVER DENTRO DEL MODAL ===== */
.btn-volver-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(108, 43, 133, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    width: fit-content; /* <--- ESTO HACE QUE EL BOTÓN SEA CORTO */
    margin-bottom: 0;   /* <--- Quita el margen inferior para que no se separe del título */
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}

.btn-volver-modal:hover {
    background-color: var(--primary-purple);
    color: white;
    transform: translateX(-4px);
    box-shadow: 0 4px 10px rgba(108, 43, 133, 0.2);
}

/* ===== CUADRO DE PRECIO EN LA ESQUINA SUPERIOR DERECHA ===== */
.precio-flotante {
    position: fixed;
    top: 20px;
    right: 20px; /* <--- Esto lo posiciona en la esquina superior derecha */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    min-width: 190px;
    transition: all 0.3s ease;
}

.precio-flotante:hover {
    box-shadow: 0 6px 20px rgba(108, 43, 133, 0.15);
    transform: translateY(-2px);
}

.precio-titulo {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 2px;
}

.precio-plan {
    color: var(--primary-purple);
    font-weight: 900;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 4px;
}

.precio-conversion {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.conversion-item {
    display: flex;
    justify-content: flex-start;  /* ← CAMBIA A flex-start */
    align-items: center;
    gap: 8px;  /* ← AGREGA UN ESPACIO PEQUEÑO Y CONTROLADO */
    font-size: 0.8rem;
}

.conversion-item .label {
    color: #555;
    font-weight: 600;
}

.conversion-item .value {
    font-weight: 700;
    color: var(--primary-purple);
}

.tasa-info {
    font-size: 0.65rem;
    color: #888;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 6px;
    text-align: center;
}

/* ===== HEADER ===== */
.pago-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.pago-header h2 {
    color: var(--primary-purple);
    font-weight: 900;
    font-style: italic;
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pago-header h2 .plan-tag-header {
    font-weight: 700;
    font-style: normal;
    color: #888;
    font-size: 0.95rem;
    background: #f5f5f5;
    padding: 2px 12px;
    border-radius: 20px;
}

.btn-info-plan-header {
    background: rgba(108, 43, 133, 0.1);
    color: var(--primary-purple);
    border: 1px solid rgba(108, 43, 133, 0.2);
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 2px;
}

.btn-info-plan-header:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

/* ===== FORMULARIO ===== */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 3px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group .required {
    color: #dc3545;
    margin-left: 2px;
}

.form-control,
.form-select {
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s;
    font-size: 0.85rem;
    width: 100%;
    background: #fafafa;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(108, 43, 133, 0.08);
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.help-text {
    font-size: 0.7rem;
    color: #999;
    margin-top: 3px;
}

/* ===== BOTONES ===== */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-light));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-style: italic;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 43, 133, 0.25);
}

/* ===== MODAL PLAN INFO ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    padding: 30px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    color: var(--primary-purple);
    font-weight: 900;
    font-style: italic;
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    color: #333;
}

.modal-body .feature-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}

.modal-body .feature-item:last-child {
    border-bottom: none;
}

.modal-body .feature-label {
    color: #666;
}

.modal-body .feature-value {
    font-weight: 600;
    color: #333;
}

.modal-body .feature-value.si {
    color: #28a745;
}

.modal-body .feature-value.no {
    color: #dc3545;
}

.modal-precio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.modal-precio .precio-label {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-precio .precio-valor {
    color: var(--primary-purple);
    font-weight: 900;
    font-size: 1.1rem;
    background: rgba(108, 43, 133, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
}

/* ===== FILE UPLOAD ===== */
.file-upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-preview {
    border: 2px dashed var(--primary-purple);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload-preview:hover {
    background: #f0edfa;
    border-color: var(--primary-purple-dark);
}

.file-upload-preview p {
    margin: 10px 0 5px;
    color: #555;
    font-weight: 500;
}

.file-upload-preview small {
    color: #999;
    font-size: 0.8rem;
}

.file-upload-thumbnail {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.file-upload-thumbnail:hover {
    border-color: var(--primary-purple);
    transform: scale(1.05);
}

.file-upload-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.thumbnail-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== MODAL IMAGEN - CORREGIDO ===== */
.modal-content.modal-imagen {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4); /* Sombra mejorada para profundidad */
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    border: none; /* <-- Asegura que no tenga bordes extraños */
    padding: 0;   /* <-- ELIMINA EL BORDE BLANCO INTERNO/EXTERNO */
}

.modal-content.modal-imagen .modal-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
    padding: 15px 20px;
    margin-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
}

.modal-content.modal-imagen .modal-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.modal-content.modal-imagen .modal-close {
    color: white;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 0 10px;
    line-height: 1;
}

.modal-content.modal-imagen .modal-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.modal-imagen-body {
    padding: 20px !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    min-height: 250px;
    max-height: 65vh;
    overflow: hidden;
}

#contenedorImagenPreview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

#imagenPreview {
    max-width: 100%;
    max-height: 55vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    object-fit: contain;
    display: none;
}

#imagenPreview.mostrar {
    display: block;
}

#sinImagenPreview {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

#sinImagenPreview i {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    color: #ddd;
}

#sinImagenPreview p {
    font-size: 1rem;
    margin: 0;
}

.modal-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}

.btn-cerrar-modal {
    padding: 10px 35px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cerrar-modal:hover {
    background: var(--primary-purple-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(108, 43, 133, 0.3);
}

.btn-cerrar-modal i {
    font-size: 0.9rem;
}
/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .volver-flotante {
        top: 10px;
        left: 10px;
    }

    .btn-volver-flotante {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .pago-container {
        padding: 20px 0 20px 0;
    }

    .pago-card {
        padding: 18px;
    }

    .pago-header h2 {
        font-size: 1rem;
        gap: 4px;
    }

    .pago-header h2 .plan-tag-header {
        font-size: 0.75rem;
        padding: 1px 8px;
    }

    .btn-info-plan-header {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-content.modal-imagen {
        max-width: 95%;
    }

    .modal-imagen-body {
        min-height: 200px;
        padding: 15px !important;
    }

    #imagenPreview {
        max-height: 50vh;
    }
    .precio-flotante {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        min-width: 150px;
    }

    .precio-titulo {
        font-size: 0.65rem;
    }

    .precio-plan {
        font-size: 0.85rem;
    }

    .conversion-item {
        font-size: 0.75rem;
    }

    .tasa-info {
        font-size: 0.6rem;
    }
}
/* ===== MODAL DE SELECCIÓN DE PLANES - COMPLETO ===== */
.modal-content.modal-seleccion {
    max-width: 1100px;
    width: 95%;
    padding: 25px 30px;
    max-height: 95vh;
}
.modal-content.modal-seleccion .modal-header {
    border-bottom: none;
    padding-bottom: 5px;
}

.modal-content.modal-seleccion .modal-header h3 {
    font-size: 1.5rem;
}
.planes-grid-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* <- NUEVA LÍNEA: Fuerza exactamente 3 columnas */
    gap: 15px; /* <- Opcional: Reduce un poco el espacio entre ellas si se ven apretadas */
    margin-top: 10px;
}

.plan-card-modal {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.plan-card-modal:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-purple);
}

.plan-header-modal {
    padding: 14px 20px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
}

.plan-header-modal.inicio { background: #28a745; }
.plan-header-modal.profesional { background: #004085; }
.plan-header-modal.expotodo { background: linear-gradient(135deg, #6C2B85 0%, #ff416c 100%); }

.plan-header-modal h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.plan-body-modal {
    padding: 15px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-features-modal {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    flex-grow: 1;
}

.plan-features-modal li {
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.82em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features-modal li::before {
    content: "✔";
    color: #28a745;
    font-weight: bold;
    font-size: 0.85em;
}

.plan-footer-modal {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-logo-txt-modal {
    font-weight: 900;
    font-size: 0.95em;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #6C2B85, #ff416c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-elegir-plan-modal {
    background: #111;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-elegir-plan-modal:hover {
    background: #6C2B85;
}

@media (max-width: 768px) {
    .planes-grid-modal {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content.modal-seleccion {
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .plan-features-modal li {
        font-size: 0.78em;
    }
}

/* ===== ESTILO PARA EL BOTÓN VER IMAGEN (CORREGIDO) ===== */
.btn-ver-imagen {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    width: auto;
    margin-top: 6px;
}

.btn-ver-imagen:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108, 43, 133, 0.3);
}

/* ===== MEJORAS PARA CAMPOS DE MONTO ===== */
.monto-input {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: #f8f9fa;
}

.monto-input:focus {
    background: white;
    font-weight: 700;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(108, 43, 133, 0.1);
}

.monto-input[data-moneda="USD"] {
    border-left: 3px solid #28a745;
}

.monto-input[data-moneda="BS"] {
    border-left: 3px solid #ffc107;
}

.monto-input[data-moneda="EUR"] {
    border-left: 3px solid #17a2b8;
}

/* ===== INDICADOR DE FORMATO ===== */
.help-text .formato-indicador {
    display: inline-block;
    background: #f0f0f0;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #666;
    margin-left: 5px;
}

/* ===== CUADRO FLOTANTE DE INFORMACIÓN DEL BANCO ===== */
.banco-info-flotante {
    position: fixed;
    top: 180px;
    right: 20px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    width: fit-content; /* Se ajusta exactamente al tamaño de los datos */
    max-width: 300px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.banco-info-flotante:hover {
    box-shadow: 0 8px 30px rgba(108, 43, 133, 0.15);
    transform: translateY(-2px);
}

.banco-info-header {
    background: linear-gradient(135deg, #6C2B85, #9d3b94);
    color: white;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.banco-info-header i {
    font-size: 1rem;
}

.banco-info-header span {
    flex: 1;
    font-size: 0.85rem;
}
.banco-info-body {
    padding: 12px 14px;
    background: white;
    border-radius: 0 0 14px 14px;
}

.banco-info-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px; /* Mantiene la etiqueta y el valor pegados */
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.78rem;
}


.banco-info-item:last-child {
    border-bottom: none;
}

.banco-info-label {
    color: #888;
    font-weight: 600;
}

.banco-info-value {
    color: #333;
    font-weight: 500;
    text-align: left; /* Alineado directamente junto a la etiqueta */
    word-break: break-all;
}
@media (max-width: 600px) {
    /* En celular, el cuadro del banco se pega al borde superior derecho como el precio */
    .banco-info-flotante {
        position: fixed;
        top: 180px; /* Se mantiene debajo del precio flotante */
        right: 10px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: 260px;
        z-index: 999;
    }

    /* Opcional: Ajustar para que no choque con el precio en pantallas muy pequeñas */
    .precio-flotante {
        top: 10px;
        right: 10px;
        max-width: 180px;
    }
}

.plan-header-modal.gratuito {
        background: #6c757d;
    } 