* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 0;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 24px;
    filter: brightness(0.2);
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.header p {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
}

.search-page {
    display: block;
}

.search-section {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #334155;
    font-size: 15px;
}

.phone-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.phone-input:focus {
    outline: none;
    border-color: #E50914;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
    transform: translateY(-1px);
}

.search-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #E50914 0%, #B8070F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cooldown-timer {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
    background: #fef3f2;
    border: 1px solid #fecaca;
    padding: 12px;
    border-radius: 8px;
}

.phone-instructions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 28px;
    border-radius: 16px;
    margin-top: 28px;
}

.instructions-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 16px;
}

.instructions-text {
    color: #475569;
    margin-bottom: 20px;
    font-size: 14px;
}

.simple-instruction {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

.number-example-inline {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: #E50914;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
}

.country-examples {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.example-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.example-row.featured {
    background: #fef2f2;
    border: 1px solid #E50914;
}

.country {
    font-weight: 500;
    font-size: 14px;
    color: #334155;
}

.number-example {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: #E50914;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
}

.help-box {
    background: #fef3f2;
    border: 1px solid #fecaca;
    padding: 14px;
    border-radius: 10px;
    color: #991b1b;
    font-size: 13px;
}

.results-page {
    display: none;
}

.results-header {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.back-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
}

.client-info h2 {
    margin: 0 0 4px 0;
    color: #334155;
    font-size: 1.5rem;
    font-weight: 600;
}

.client-phone {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.loading {
    text-align: center;
    padding: 60px;
    color: #64748b;
}

.loading-content {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner-large {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #E50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: #64748b;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.services-table-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.services-table {
    min-width: 1200px;
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1.2fr 0.8fr 0.8fr 1.2fr 1fr 0.6fr 0.8fr 0.8fr;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 12px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-cell {
    padding: 18px 12px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cell:last-child {
    border-right: none;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1.2fr 0.8fr 0.8fr 1.2fr 1fr 0.6fr 0.8fr 0.8fr;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInRow 0.5s ease forwards;
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:nth-child(odd) {
    background: #fefefe;
}

.service-row:nth-child(even) {
    background: #f8fafc;
}

.service-row:nth-child(odd):hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateX(3px);
}

.service-row:nth-child(even):hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(3px);
}

@keyframes fadeInRow {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-cell {
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #334155;
}

.service-cell:last-child {
    border-right: none;
}

.service-cell.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-cell.clickable:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fed7d7 100%);
    color: #991b1b;
    border-radius: 8px;
    margin: 4px;
    padding: 12px 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.mobile-scroll-hint {
    display: none;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #E50914;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    animation: pulseHintHybrid 3s infinite;
}

@keyframes pulseHintHybrid {
    0%, 100% { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }
    50% { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); }
}

.streaming-cell {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.email-cell {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 11px;
    color: #1d4ed8;
    justify-content: flex-start;
    text-align: left;
}

.password-cell {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 11px;
    color: #64748b;
}

.pin-cell {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-weight: 600;
    color: #dc2626;
}

.type-cell {
    font-weight: 600;
    font-size: 12px;
}

.type-pantalla {
    color: #1d4ed8;
}

.type-cuenta {
    color: #7c3aed;
}

.name-cell {
    color: #475569;
    font-size: 12px;
}

.date-cell {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: #64748b;
    font-size: 12px;
}

.days-cell {
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11px;
}

.days-critical {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.days-warning {
    background: linear-gradient(135deg, #fefbf2 0%, #fef3c7 100%);
    color: #d97706;
    border: 1px solid #fed7aa;
}

.days-normal {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.debt-cell {
    font-weight: 700;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 12px;
}

.debt-paid {
    color: #16a34a;
}

.debt-pending {
    color: #dc2626;
}

.code-btn {
    background: linear-gradient(135deg, #E50914 0%, #B8070F 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
}

.code-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    animation: slideInUp 0.5s ease 2s both;
    opacity: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-button {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.chat-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.chat-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* SECCIÓN DE MÉTODOS DE PAGO */
.payment-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.payment-header {
    text-align: center;
    margin-bottom: 20px;
}

.payment-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.payment-subtitle {
    font-size: 13px;
    color: #64748b;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.payment-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-data-row:last-child {
    border-bottom: none;
}

.payment-data-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.payment-data-value {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-icon {
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 4px;
    color: #64748b;
}

.payment-data-row:hover .copy-icon {
    opacity: 1;
}

.copy-icon:hover {
    color: #E50914;
    transform: scale(1.1);
}

.other-methods-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-methods-list li {
    padding: 8px 0;
    color: #475569;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.other-methods-list li:before {
    content: "•";
    color: #E50914;
    font-weight: bold;
    font-size: 16px;
}

.main-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    margin-bottom: 12px;
}

.main-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.payment-note {
    background: #fef3f2;
    border-left: 4px solid #E50914;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #7c2d12;
    line-height: 1.6;
}

.payment-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #991b1b;
}

.payment-note ul {
    margin: 6px 0 0 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .search-section {
        padding: 28px 20px;
        margin-bottom: 20px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .mobile-scroll-hint {
        display: block;
    }
    
    .services-table {
        min-width: 1200px;
    }
    
    .service-cell {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .header-cell {
        padding: 14px 8px;
        font-size: 10px;
    }
    
    .email-cell {
        font-size: 9px;
        word-break: break-all;
    }
    
    .back-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }

    .chat-widget {
        bottom: 16px;
        left: 16px;
    }
    
    .chat-button {
        padding: 14px 20px;
        font-size: 13px;
    }
    
    .chat-button span {
        display: none;
    }
    
    .chat-button {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }

    .payment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .payment-section {
        padding: 20px;
    }

    .payment-note ul {
        font-size: 11px;
        margin-left: 12px;
    }

    .copy-icon {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .services-table {
        min-width: 1000px;
    }
    
    .service-cell {
        padding: 10px 6px;
        font-size: 10px;
    }
    
    .header-cell {
        padding: 12px 6px;
        font-size: 9px;
    }
    
    .code-btn {
        padding: 6px 12px;
        font-size: 9px;
    }
}

.table-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E50914 0%, #B8070F 100%);
    border-radius: 10px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #B8070F 0%, #8B0000 100%);
}