/* =============================================
   TOREVIP Gateway - CSS Limpio
   Paleta: Dorado (#D4AF37), Negro (#0d0d0d)
   ============================================= */

:root {
    --gold: #D4AF37;
    --gold-light: #E5C76B;
    --gold-dark: #B8972F;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-muted: #6b7280;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --border: rgba(212, 175, 55, 0.25);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); }
}

@keyframes floatBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

/* Fondo estrellado con más partículas */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        /* Partículas grandes */
        radial-gradient(2px 2px at 5% 15%, rgba(212,175,55,0.5), transparent),
        radial-gradient(2px 2px at 25% 35%, rgba(212,175,55,0.4), transparent),
        radial-gradient(2px 2px at 45% 5%, rgba(212,175,55,0.45), transparent),
        radial-gradient(2px 2px at 65% 25%, rgba(212,175,55,0.35), transparent),
        radial-gradient(2px 2px at 85% 55%, rgba(212,175,55,0.4), transparent),
        radial-gradient(2px 2px at 15% 75%, rgba(212,175,55,0.3), transparent),
        radial-gradient(2px 2px at 55% 85%, rgba(212,175,55,0.45), transparent),
        radial-gradient(2px 2px at 75% 10%, rgba(212,175,55,0.35), transparent),
        /* Partículas medianas */
        radial-gradient(1.5px 1.5px at 10% 40%, rgba(212,175,55,0.4), transparent),
        radial-gradient(1.5px 1.5px at 30% 60%, rgba(212,175,55,0.35), transparent),
        radial-gradient(1.5px 1.5px at 50% 20%, rgba(212,175,55,0.4), transparent),
        radial-gradient(1.5px 1.5px at 70% 80%, rgba(212,175,55,0.3), transparent),
        radial-gradient(1.5px 1.5px at 90% 30%, rgba(212,175,55,0.35), transparent),
        radial-gradient(1.5px 1.5px at 20% 90%, rgba(212,175,55,0.25), transparent),
        radial-gradient(1.5px 1.5px at 60% 50%, rgba(212,175,55,0.4), transparent),
        radial-gradient(1.5px 1.5px at 80% 70%, rgba(212,175,55,0.3), transparent),
        /* Partículas pequeñas */
        radial-gradient(1px 1px at 8% 28%, rgba(212,175,55,0.3), transparent),
        radial-gradient(1px 1px at 22% 48%, rgba(212,175,55,0.25), transparent),
        radial-gradient(1px 1px at 38% 12%, rgba(212,175,55,0.3), transparent),
        radial-gradient(1px 1px at 52% 68%, rgba(212,175,55,0.2), transparent),
        radial-gradient(1px 1px at 68% 38%, rgba(212,175,55,0.25), transparent),
        radial-gradient(1px 1px at 82% 58%, rgba(212,175,55,0.2), transparent),
        radial-gradient(1px 1px at 12% 82%, rgba(212,175,55,0.3), transparent),
        radial-gradient(1px 1px at 42% 92%, rgba(212,175,55,0.25), transparent),
        radial-gradient(1px 1px at 72% 2%, rgba(212,175,55,0.2), transparent),
        radial-gradient(1px 1px at 92% 42%, rgba(212,175,55,0.25), transparent),
        radial-gradient(1px 1px at 35% 75%, rgba(212,175,55,0.2), transparent),
        radial-gradient(1px 1px at 95% 85%, rgba(212,175,55,0.3), transparent);
    pointer-events: none;
    z-index: 0;
    animation: twinkle 4s ease-in-out infinite;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hidden { display: none !important; }

/* =============================================
   COPY TOAST
   ============================================= */
.copy-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--success);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   RAINBOW TEXT
   ============================================= */
@keyframes rainbow {
    0% { color: #ff0000; }
    14% { color: #ff7f00; }
    28% { color: #ffff00; }
    42% { color: #00ff00; }
    57% { color: #0000ff; }
    71% { color: #4b0082; }
    85% { color: #9400d3; }
    100% { color: #ff0000; }
}

.rainbow-text {
    animation: rainbow 2s linear infinite;
    font-weight: 800;
    text-transform: uppercase;
}

/* =============================================
   FLOATING BUTTON
   ============================================= */
.floating-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    animation: floatBtn 2s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

.floating-icon {
    font-size: 1.1rem;
}

.floating-text {
    white-space: nowrap;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
}

.top-bar-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.help-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.help-link:hover { color: var(--gold-light); }

.top-bar-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

.top-bar-req {
    color: var(--text-gray);
}

/* =============================================
   INFO SECTION (2 columnas)
   ============================================= */
.info-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.info-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.info-col-title {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-col-desc {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.flag-compact {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flag-compact:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.flag-compact code {
    font-size: 0.7rem;
    color: #60a5fa;
    word-break: break-all;
    flex: 1;
}

.flag-status {
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.flag-note-small {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

.flag-note-small.service-warning {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--warning);
}

.services-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.service-mini {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.service-mini:hover {
    background: var(--gold);
    color: #000;
}

/* =============================================
   HEADER / LOGO
   ============================================= */
.main-content {
    padding: 1.5rem 0 2rem;
}

.header {
    text-align: center;
    padding: 1.25rem 0;
    margin-bottom: 1.5rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    margin: 0;
}

.logo-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 8px;
    margin-top: 0.25rem;
}

.credits {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.credits a {
    color: var(--gold);
    text-decoration: none;
}

/* =============================================
   STEP CARDS
   ============================================= */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out backwards;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }

.step-header {
    background: rgba(212, 175, 55, 0.08);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.step-num {
    background: var(--gold);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-header h2 {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    min-width: 0;
}

.toggle-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: var(--gold);
    color: #000;
}

.step-body {
    padding: 1.25rem;
}

.step-body > p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Action Buttons */
.action-btn {
    display: block;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s;
}

.action-btn.primary {
    background: var(--gold);
    color: #000;
}

.action-btn.primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.small-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Info Cards */
.info-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
}

.info-card.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.info-card h4 {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.info-card.warning h4 {
    color: var(--warning);
}

.gif-wrapper {
    max-width: 280px;
    margin: 0.75rem auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gif-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.info-text {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.info-text strong {
    color: var(--text-white);
}

/* =============================================
   CARD PREVIEW
   ============================================= */
.card-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    animation: pulseGlow 3s ease-in-out infinite;
}

.card-chip {
    width: 40px;
    height: 28px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: 6px;
    margin-bottom: 1rem;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.card-info {
    display: flex;
    justify-content: space-between;
}

.card-holder, .card-expiry {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.card-info .label {
    color: var(--text-muted);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info .value {
    color: var(--text-white);
    font-size: 0.85rem;
}

/* =============================================
   PAYMENT FORMS
   ============================================= */
.payment-form {
    max-width: 380px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-dark);
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 3rem;
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Amount Box */
.amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}

.amount-box span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.amount-box strong {
    color: var(--gold);
    font-size: 1.1rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--gold);
    border: none;
    border-radius: var(--radius-sm);
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.submit-btn:hover:not(:disabled) {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Result Messages */
.result-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.result-msg.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.result-msg.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid var(--error);
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.faq-title {
    color: var(--gold);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-question {
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-question::after {
    content: '+';
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1rem 1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.donations {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.donations h3 {
    color: var(--gold);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.donations > p {
    color: var(--text-gray);
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wallet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    flex-wrap: wrap;
}

.wallet-name {
    background: var(--gold);
    color: #000;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.wallet-addr {
    flex: 1;
    min-width: 0;
    font-size: 0.65rem;
    color: var(--text-gray);
    word-break: break-all;
    cursor: pointer;
}

.footer-credits {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-bottom: 1rem;
}

.footer-credits a {
    color: var(--gold);
    text-decoration: none;
}

/* Copy Button */
.copy-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--gold-light);
}

.copy-btn.small {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
    .floating-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }
    
    .floating-text {
        display: none;
    }
    
    .floating-icon {
        font-size: 1.3rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .info-col {
        padding: 0.85rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .logo-sub {
        font-size: 0.75rem;
        letter-spacing: 5px;
    }
    
    .step-header h2 {
        font-size: 0.85rem;
    }
    
    .toggle-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .card-preview {
        padding: 1rem;
        max-width: 100%;
    }
    
    .card-number {
        font-size: 1rem;
    }
    
    .form-row {
        gap: 0.5rem;
    }
    
    .amount-box {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .gif-wrapper {
        max-width: 100%;
    }
    
    .faq-question {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

@media (max-width: 380px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .top-bar-divider {
        display: none;
    }
    
    .services-compact {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

::selection {
    background: var(--gold);
    color: #000;
}
