@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/* Fondo general de la pantalla */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #e9ecef;
    margin: 0;
    height: 100%;
}

.gradient-bg {
    background: linear-gradient(135deg, #5c388e 0%, #3730a3 50%, #7c3aed 100%);
    min-height: 100vh;
}

/* Contenedor principal */
.custom-container {
    max-width: 1000px;
    margin: auto;
    padding-top: 50px;
}

/* Panel principal que envuelve los formularios */
.panel {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: auto;
}

/* Imagen en el panel */
.image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Botón transparente con borde */
.btn.transparent {
    background-color: transparent;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.transparent:hover {
    background-color: #0d6efd;
    color: white;
}

/* Estilo del pie de página */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
}

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

.footer-left {
    text-align: left;
    text-decoration: none;
}

.footer-right {
    text-align: right;
    text-decoration: none;
}

.footer a {
    text-decoration: none;
}

/* ✅ MENÚ SUPERIOR - DISEÑO UNIFICADO PARA TODOS LOS DISPOSITIVOS */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(124, 58, 237, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-menu .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 15px;
}

.top-menu .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

/* ✅ CENTRADO VERTICAL DEL CONTENIDO CON PADDING PARA MENÚ FIJO */
.container-fluid {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px; /* Espacio para el menú fijo */
    padding-bottom: 60px; /* Espacio para el footer */
}

/* ✅ ALERTA MÓVIL */
.mobile-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin: 0 15px 20px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    animation: slideDown 0.5s ease-out;
}

.mobile-alert h6 {
    color: #856404;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.mobile-alert p {
    color: #856404;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.mobile-alert i {
    font-size: 24px;
    color: #ffc107;
    margin-bottom: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transiciones entre formularios */
.formulario {
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.formulario.activo {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.form-container {
    position: relative;
    min-height: 400px;
}

.pin-input {
    width: 50px;
    height: 70px;
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px;
    border: 2px solid #ced4da;
    border-radius: 8px;
}

.pin-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Tema violeta suave para el panel de licencias */
.panel.licences-theme {
    background: linear-gradient(35deg, #e8d5ff 0%, #dcaddd 50%, #e5a4ff 100%) !important;
    border: 2px solid #b794f6 !important;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.3) !important;
}

.panel.licences-theme h2,
.panel.licences-theme .text-center {
    color: #553c9a !important;
}

.panel.licences-theme .form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #b794f6 !important;
}

.panel.licences-theme .form-control:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25) !important;
}

/* ✅ ESTILOS RESPONSIVE PARA MODAL DE PRECIOS */

/* Popup principal responsive */
.pricing-popup {
    width: 95% !important;
    max-width: 1200px !important;
    margin: 10px !important;
    padding: 15px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

/* Estilos para el menú de precios */
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.pricing-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.pricing-tab.active:hover {
    background: #5c388e;
    border-color: #5c388e;
}

.pricing-content {
    display: none;
}

.pricing-content.active {
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    margin: 0 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 17px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #7c3aed;
}

.switch input:checked + .slider:before {
    transform: translateX(13px);
}

.pricing-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed 0%, #5c388e 100%);
    color: white;
    transform: scale(1.02);
}

.plan-badge {
    background: #7c3aed;
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.plan-badge-2 {
    background: #4a235a;
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.plan-title {
    font-size: 20px;
    font-weight: bold;
    margin: 12px 0 8px 0;
    color: #2d3748;
}

.pricing-card.featured .plan-title {
    color: white;
}

.plan-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.pricing-card.featured .plan-description {
    color: rgba(255,255,255,0.9);
}

.plan-price {
    font-size: 28px;
    font-weight: bold;
    color: #7c3aed;
    margin: 12px 0;
}

.pricing-card.featured .plan-price {
    color: white;
}

.plan-features {
    text-align: left;
    margin: 15px 0;
    padding: 0;
}

.plan-features li {
    list-style: none;
    padding: 3px 0;
    font-size: 11px;
    position: relative;
    padding-left: 16px;
    line-height: 1.3;
}

.plan-features li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 12px;
}

.pricing-card.featured .plan-features li:before {
    color: #a7f3d0;
}

.plan-button {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 12px;
    width: 100%;
    max-width: 200px;
}

.plan-button:hover {
    background: #5c388e;
}

.pricing-card.featured .plan-button {
    background: white;
    color: #7c3aed;
}

.pricing-card.featured .plan-button:hover {
    background: #f8f9fa;
}

.custom-plan {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.custom-plan h6 {
    margin-bottom: 8px;
    font-size: 14px;
}

.custom-plan p {
    margin: 0;
    font-size: 12px;
}

.billing-toggle {
    text-align: center;
    margin: 12px 0;
    font-size: 14px;
}

/* ✅ CSS RESPONSIVE PARA MODALES DE LICENCIAS */

/* Responsive para móviles */
@media (max-width: 768px) {
    .top-menu .nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .top-menu .nav-container {
        gap: 5px;
    }
    
    .panel {
        margin: 0 15px;
        padding: 20px;
    }
    
    .container-fluid {
        padding-top: 60px;
    }
    
    .formulario {
        transform: translateY(100%);
    }
    
    .formulario.activo {
        transform: translateY(0);
    }

    /* ✅ RESPONSIVE ESPECÍFICO PARA MODAL DE PRECIOS */
    .pricing-popup {
        width: 95% !important;
        margin: 5px !important;
        padding: 12px !important;
        max-height: 95vh !important;
    }

    .pricing-tabs {
        gap: 5px;
        margin-bottom: 15px;
    }

    .pricing-tab {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 15px;
    }

    .pricing-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin: 10px 0;
    }

    .pricing-card {
        min-width: 90%;
        max-width: 100%;
        margin: 0 auto 10px auto;
        padding: 15px 12px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1; /* Mostrar primero en móvil */
    }

    .pricing-card.featured:hover {
        transform: translateY(-2px);
    }

    .plan-badge, .plan-badge-2 {
        font-size: 10px;
        padding: 4px 12px;
        top: -6px;
    }

    .plan-title {
        font-size: 18px;
        margin: 10px 0 6px 0;
    }

    .plan-description {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .plan-price {
        font-size: 24px;
        margin: 10px 0;
    }

    .plan-features li {
        font-size: 10px;
        padding: 2px 0;
        padding-left: 14px;
    }

    .plan-features li:before {
        font-size: 10px;
    }

    .plan-button {
        font-size: 12px;
        padding: 8px 20px;
        margin-top: 10px;
    }

    .billing-toggle {
        font-size: 12px;
        margin: 10px 0;
    }

    .custom-plan {
        margin-top: 15px;
        padding: 12px;
    }

    .custom-plan h6 {
        font-size: 12px;
    }

    .custom-plan p {
        font-size: 11px;
    }

    /* Ajustar altura del popup para mostrar más contenido */
    .pricing-popup .swal2-html-container {
        max-height: 70vh !important;
        overflow-y: auto !important;
        padding-right: 5px;
    }

    /* Mejorar scroll en móvil */
    .pricing-popup .swal2-html-container::-webkit-scrollbar {
        width: 3px;
    }

    .pricing-popup .swal2-html-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .pricing-popup .swal2-html-container::-webkit-scrollbar-thumb {
        background: #7c3aed;
        border-radius: 3px;
    }

    /* Ajustes generales para modales en móvil */
    .swal2-popup {
        font-size: 14px !important;
        padding: 20px !important;
        margin: 10px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .swal2-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .swal2-html-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Inputs responsive */
    .swal2-input {
        font-size: 14px !important;
        padding: 8px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ajustes específicos para formularios de licencias */
    .licenses-form-popup .swal2-popup,
    .purchase-details-popup .swal2-popup,
    .confirmation-popup .swal2-popup,
    .wompi-confirmation-popup .swal2-popup {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    /* Botón de código de descuento */
    .swal2-popup div[style*="display: flex"][style*="gap: 8px"] button {
        min-width: 80px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* Información de pago responsive */
    .swal2-popup div[style*="display: flex"][style*="gap: 15px"][style*="flex-wrap: wrap"] {
        flex-direction: column !important;
    }
    
    /* Imágenes QR responsive */
    .swal2-popup img[alt="QR Binance"] {
        width: 100px !important;
        height: 100px !important;
    }

    /* Mejorar espaciado entre elementos */
    .swal2-input {
        margin-bottom: 8px !important;
    }
    
    /* Labels más legibles */
    .swal2-popup label {
        font-size: 13px !important;
        font-weight: 500 !important;
    }
    
    /* Texto de ayuda más pequeño pero legible */
    .swal2-popup small {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 480px) {
    .top-menu .nav-link {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .top-menu .nav-container {
        gap: 3px;
        padding: 0 10px;
    }

    /* ✅ AJUSTES EXTRA PARA MODAL DE PRECIOS EN PANTALLAS MUY PEQUEÑAS */
    .pricing-popup {
        width: 98% !important;
        margin: 2px !important;
        padding: 10px !important;
    }

    .pricing-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .pricing-card {
        padding: 12px 10px;
        min-width: 95%;
    }

    .plan-title {
        font-size: 16px;
    }

    .plan-price {
        font-size: 20px;
    }

    .plan-features li {
        font-size: 9px;
    }

    .plan-button {
        font-size: 11px;
        padding: 6px 16px;
    }

    .swal2-title {
        font-size: 16px !important;
    }
    
    .swal2-input {
        font-size: 13px !important;
        padding: 6px !important;
    }
    
    /* Botón aplicar descuento más pequeño */
    .swal2-popup div[style*="display: flex"][style*="gap: 8px"] button {
        font-size: 11px !important;
        padding: 6px 10px !important;
        min-width: 70px !important;
    }
}

/* ✅ MEJORAR BOTÓN DE CERRAR EN MÓVIL */
@media (max-width: 768px) {
    .pricing-popup .swal2-close {
        font-size: 24px !important;
        padding: 8px !important;
        margin: 5px !important;
    }

    .pricing-popup .swal2-actions {
        margin-top: 15px !important;
    }

    .pricing-popup .swal2-confirm {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
}

/* Mantener diseño original en desktop */
@media (min-width: 769px) {
    .licenses-form-popup .swal2-popup,
    .purchase-details-popup .swal2-popup {
        width: 550px !important;
    }
    
    .confirmation-popup .swal2-popup,
    .wompi-confirmation-popup .swal2-popup {
        width: 600px !important;
    }

    .pricing-popup {
        width: 80% !important;
        max-width: 1200px !important;
    }
}

/* ✅ AGREGAR ESTE CSS AL FINAL DEL ARCHIVO style.css */

/* CSS ESPECÍFICO PARA FORMULARIOS DE LICENCIAS - BOTONES EN FILA */

/* Forzar botones en fila para formularios de licencias */
.licenses-form-popup .swal2-actions,
.purchase-details-popup .swal2-actions,
.confirmation-popup .swal2-actions,
.wompi-confirmation-popup .swal2-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 20px !important;
}

/* Botones responsive que se mantienen en fila */
.licenses-form-popup .swal2-confirm,
.licenses-form-popup .swal2-cancel,
.licenses-form-popup .swal2-deny,
.purchase-details-popup .swal2-confirm,
.purchase-details-popup .swal2-cancel,
.purchase-details-popup .swal2-deny,
.confirmation-popup .swal2-confirm,
.confirmation-popup .swal2-cancel,
.confirmation-popup .swal2-deny,
.wompi-confirmation-popup .swal2-confirm,
.wompi-confirmation-popup .swal2-cancel,
.wompi-confirmation-popup .swal2-deny {
    flex: 1 !important;
    min-width: 80px !important;
    max-width: 120px !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    width: auto !important;
    border-radius: 6px !important;
}

/* Ajustes específicos para radio buttons de moneda en fila */
.purchase-details-popup .currency-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.purchase-details-popup .currency-container label {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
}

/* Contenedores específicos para mantener elementos en fila */
.purchase-details-popup .phone-whatsapp-container,
.purchase-details-popup .country-city-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.purchase-details-popup .discount-container {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-end !important;
}

.purchase-details-popup .discount-container input {
    flex: 1 !important;
}

.purchase-details-popup .discount-container button {
    flex: 0 0 auto !important;
    min-width: 70px !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
}

/* ✅ RESPONSIVE PARA MÓVILES - MANTENER BOTONES EN FILA */
@media (max-width: 768px) {
    /* Sobrescribir estilos generales para formularios de licencias específicamente */
    .licenses-form-popup .swal2-actions,
    .purchase-details-popup .swal2-actions,
    .confirmation-popup .swal2-actions,
    .wompi-confirmation-popup .swal2-actions {
        flex-direction: row !important;
        gap: 6px !important;
        margin-top: 15px !important;
    }

    .licenses-form-popup .swal2-confirm,
    .licenses-form-popup .swal2-cancel,
    .licenses-form-popup .swal2-deny,
    .purchase-details-popup .swal2-confirm,
    .purchase-details-popup .swal2-cancel,
    .purchase-details-popup .swal2-deny,
    .confirmation-popup .swal2-confirm,
    .confirmation-popup .swal2-cancel,
    .confirmation-popup .swal2-deny,
    .wompi-confirmation-popup .swal2-confirm,
    .wompi-confirmation-popup .swal2-cancel,
    .wompi-confirmation-popup .swal2-deny {
        flex: 1 !important;
        min-width: 70px !important;
        max-width: 110px !important;
        font-size: 11px !important;
        padding: 6px 8px !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* Asegurar que radio buttons se mantengan en fila */
    .purchase-details-popup .currency-container {
        flex-direction: row !important;
        gap: 10px !important;
    }

    /* Campos que deben mantenerse en fila en móviles */
    .purchase-details-popup .phone-whatsapp-container div,
    .purchase-details-popup .country-city-container div {
        flex: 1 !important;
        min-width: 120px !important;
        margin-bottom: 8px !important;
    }

    .purchase-details-popup .discount-container button {
        min-width: 60px !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 480px) {
    .licenses-form-popup .swal2-confirm,
    .licenses-form-popup .swal2-cancel,
    .licenses-form-popup .swal2-deny,
    .purchase-details-popup .swal2-confirm,
    .purchase-details-popup .swal2-cancel,
    .purchase-details-popup .swal2-deny,
    .confirmation-popup .swal2-confirm,
    .confirmation-popup .swal2-cancel,
    .confirmation-popup .swal2-deny,
    .wompi-confirmation-popup .swal2-confirm,
    .wompi-confirmation-popup .swal2-cancel,
    .wompi-confirmation-popup .swal2-deny {
        min-width: 60px !important;
        max-width: 90px !important;
        font-size: 10px !important;
        padding: 5px 6px !important;
    }

    /* Radio buttons más compactos en pantallas muy pequeñas */
    .purchase-details-popup .currency-container {
        gap: 8px !important;
    }

    .purchase-details-popup .phone-whatsapp-container div,
    .purchase-details-popup .country-city-container div {
        min-width: 100px !important;
    }

    .purchase-details-popup .discount-container button {
        min-width: 50px !important;
        font-size: 10px !important;
        padding: 5px 8px !important;
    }
}

/* 🔒 Forzar botones de SweetAlert en fila - CON MÁS ESPECIFICIDAD */
.swal2-container .licenses-flow-modal .swal2-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 20px !important;
}

.swal2-container .licenses-flow-modal .swal2-actions button {
    flex: 1 !important;
    min-width: 100px !important;
    max-width: 140px !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    min-height: 44px !important;
}

@media (max-width: 480px) {
    .swal2-container .licenses-flow-modal .swal2-actions button {
        min-width: 80px !important;
        max-width: 100px !important;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
}