/* ==========================================================================
   Lotería Social Benéfica — Main Stylesheet
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f7f8fc;
    color: #1a1a2e;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; text-decoration: none; transition: color .2s; }
a:hover { color: #1d4ed8; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 12px; font-weight: 600; font-size: 15px;
    border: 2px solid transparent; cursor: pointer; transition: all .25s;
    text-decoration: none; line-height: 1.4;
}
.btn-primary { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #6d28d9); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(37,99,235,.3); }
.btn-secondary { background: #f0f4ff; color: #2563eb; }
.btn-secondary:hover { background: #dce6ff; }
.btn-outline { background: transparent; border-color: #d1d5db; color: #374151; }
.btn-outline:hover { border-color: #2563eb; color: #2563eb; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* --- Header --- */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 20px; font-weight: 800; color: #1a1a2e; }
.logo-accent { color: #2563eb; }
.nav { display: flex; gap: 8px; }
.nav-link {
    padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 14px;
    color: #4b5563; transition: all .2s;
}
.nav-link:hover { background: #f0f4ff; color: #2563eb; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #374151; border-radius: 2px; transition: .3s; }

/* --- Age Gate --- */
.age-gate {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.age-gate.hidden { display: none; }
.age-gate-box {
    background: #fff; border-radius: 24px; padding: 48px 40px; max-width: 520px;
    text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.age-gate-icon { font-size: 64px; margin-bottom: 16px; }
.age-gate-box h2 { font-size: 28px; margin-bottom: 12px; color: #1a1a2e; }
.age-gate-box p { color: #6b7280; margin-bottom: 24px; }
.age-gate-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.age-gate-note { font-size: 13px; color: #9ca3af; }

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #2563eb 100%);
    padding: 80px 0 90px; color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 600;
    margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.hero-subtitle { font-size: 19px; opacity: .9; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* --- Info Bar --- */
.info-bar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 16px 0; }
.info-items { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.info-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #374151; }
.info-icon { font-size: 20px; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h1, .section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; color: #1a1a2e; }
.section-header p { font-size: 18px; color: #6b7280; max-width: 600px; margin: 0 auto; }

/* --- Lottery Card --- */
.lottery-card {
    background: #fff; border-radius: 24px; padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); max-width: 800px; margin: 0 auto;
    border: 1px solid #e5e7eb;
}
.lottery-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 8px; margin-bottom: 32px;
}
.number-btn {
    width: 52px; height: 52px; border-radius: 50%; border: 2px solid #e5e7eb;
    background: #fff; font-weight: 700; font-size: 16px; color: #374151;
    cursor: pointer; transition: all .2s; display: inline-flex;
    align-items: center; justify-content: center; margin: 0 auto;
}
.number-btn:hover { border-color: #2563eb; color: #2563eb; transform: scale(1.1); }
.number-btn.selected {
    background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
    border-color: transparent; transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37,99,235,.4);
}
.lottery-selected { text-align: center; margin-bottom: 24px; }
.lottery-selected h3 { font-size: 16px; margin-bottom: 16px; color: #6b7280; }
.selected-numbers { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.placeholder-ball, .selected-ball {
    width: 56px; height: 56px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
}
.placeholder-ball { background: #f3f4f6; color: #d1d5db; border: 2px dashed #d1d5db; }
.selected-ball {
    background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
    box-shadow: 0 4px 15px rgba(37,99,235,.3);
    animation: popIn .3s ease;
}
@keyframes popIn { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.lottery-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lottery-form { margin-top: 24px; }
.lottery-disclaimer {
    margin-top: 20px; font-size: 13px; color: #9ca3af; text-align: center;
    padding: 16px; background: #fefce8; border-radius: 12px; border: 1px solid #fef08a;
}

/* --- Steps Grid --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
    background: #fff; border-radius: 20px; padding: 32px; text-align: center;
    border: 1px solid #e5e7eb; transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; margin: 0 auto 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: #6b7280; }

/* --- Impact Grid --- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.impact-card {
    background: #fff; border-radius: 20px; padding: 32px; text-align: center;
    border: 1px solid #e5e7eb; transition: transform .2s;
}
.impact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.impact-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.impact-card h3 { font-size: 18px; margin-bottom: 8px; }
.impact-card p { font-size: 14px; color: #6b7280; }

/* --- Results --- */
.results-card {
    background: #fff; border-radius: 24px; padding: 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); max-width: 700px; margin: 0 auto;
    text-align: center; border: 1px solid #e5e7eb;
}
.results-date { margin-bottom: 24px; font-size: 15px; color: #6b7280; }
.winning-numbers, .user-numbers { display: flex; justify-content: center; gap: 12px; margin: 20px 0 32px; flex-wrap: wrap; }
.winning-ball, .user-ball {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 22px;
}
.winning-ball {
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
    box-shadow: 0 4px 15px rgba(245,158,11,.4);
}
.winning-ball.matched {
    background: linear-gradient(135deg, #10b981, #059669); 
    box-shadow: 0 4px 15px rgba(16,185,129,.5); animation: popIn .5s ease;
}
.user-ball { background: #e5e7eb; color: #374151; }
.user-ball.matched {
    background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    box-shadow: 0 4px 15px rgba(16,185,129,.5);
}
.result-banner {
    padding: 20px 28px; border-radius: 16px; font-size: 18px; font-weight: 700; margin: 20px 0;
}
.result-jackpot { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.result-good { background: #d1fae5; color: #065f46; }
.result-ok { background: #dbeafe; color: #1e40af; }
.result-low { background: #f3f4f6; color: #4b5563; }
.result-none { background: #fef2f2; color: #991b1b; }
.results-cta { margin-top: 32px; }
.results-cta p { margin-bottom: 16px; color: #6b7280; }
.user-results h3 { margin-top: 24px; font-size: 18px; color: #374151; }
.play-again { text-align: center; margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Legal Content --- */
.legal-content { background: #fff; border-radius: 24px; padding: 48px; border: 1px solid #e5e7eb; }
.legal-content h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.legal-updated { color: #9ca3af; margin-bottom: 32px; font-size: 14px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin-top: 36px; margin-bottom: 12px; color: #1a1a2e; }
.legal-content p { margin-bottom: 12px; color: #4b5563; }
.legal-content ul, .legal-content ol { margin: 12px 0 12px 24px; }
.legal-content li { margin-bottom: 8px; color: #4b5563; list-style: disc; }
.legal-content ol li { list-style: decimal; }

/* --- Responsible Gaming --- */
.rg-intro { text-align: center; margin-bottom: 48px; }
.rg-badge-large { font-size: 72px; margin-bottom: 16px; }
.rg-intro p { font-size: 18px; color: #4b5563; max-width: 700px; margin: 0 auto; }
.rg-section { margin-bottom: 48px; }
.rg-section h2 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.rg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rg-card {
    background: #f9fafb; border-radius: 16px; padding: 28px; border: 1px solid #e5e7eb;
    text-align: center;
}
.rg-card-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.rg-card h3 { font-size: 16px; margin-bottom: 8px; }
.rg-card p { font-size: 14px; color: #6b7280; }
.rg-warning-list { margin-left: 24px; }
.rg-warning-list li { list-style: disc; margin-bottom: 10px; color: #4b5563; }
.rg-resources { display: grid; gap: 20px; }
.rg-resource {
    background: #f0f4ff; border-radius: 16px; padding: 24px;
    border: 1px solid #dbeafe;
}
.rg-resource h3 { font-size: 18px; margin-bottom: 4px; color: #1e40af; }
.rg-resource p { font-size: 14px; color: #4b5563; margin-bottom: 4px; }
.rg-phone { font-size: 22px; font-weight: 800; color: #2563eb; }
.rg-bottom-message {
    background: #fefce8; border: 1px solid #fef08a; border-radius: 16px;
    padding: 24px; text-align: center;
}
.rg-bottom-message p { font-size: 16px; color: #92400e; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #e5e7eb;
    text-align: center;
}
.contact-icon { font-size: 32px; margin-bottom: 8px; display: block; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: #6b7280; }
.contact-form-wrapper {
    background: #fff; border-radius: 24px; padding: 40px; border: 1px solid #e5e7eb;
}
.contact-form-wrapper h2 { font-size: 24px; margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 14px; color: #374151; }
.form-group input, .form-group select, .form-group textarea {
    padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 15px; font-family: inherit; transition: border-color .2s;
    background: #fff; color: #1a1a2e;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-check { flex-direction: row; align-items: center; }
.form-check label { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: #2563eb; }
.alert {
    padding: 16px 20px; border-radius: 12px; font-size: 15px; margin-bottom: 20px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- How It Works --- */
.hiw-block { margin-bottom: 48px; }
.hiw-block h2 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.hiw-block p { color: #4b5563; margin-bottom: 12px; }
.hiw-steps { display: flex; flex-direction: column; gap: 20px; }
.hiw-step { display: flex; gap: 20px; align-items: flex-start; }
.hiw-step-num {
    width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
}
.hiw-step-content h3 { font-size: 18px; margin-bottom: 4px; }
.hiw-step-content p { font-size: 14px; color: #6b7280; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
    background: #f9fafb; border-radius: 16px; padding: 24px;
    border: 1px solid #e5e7eb;
}
.faq-item h3 { font-size: 17px; margin-bottom: 8px; color: #1a1a2e; }
.faq-item p { font-size: 14px; color: #6b7280; }
.hiw-cta {
    text-align: center; background: linear-gradient(135deg, #eff6ff, #f0f4ff);
    border-radius: 24px; padding: 48px; border: 1px solid #dbeafe;
}
.hiw-cta h2 { margin-bottom: 12px; }
.hiw-cta p { color: #6b7280; margin-bottom: 24px; }

/* --- Footer --- */
.footer {
    background: #0f172a; color: #94a3b8; padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #94a3b8; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
}
.badge-green { background: rgba(16,185,129,.15); color: #34d399; }
.badge-blue { background: rgba(59,130,246,.15); color: #60a5fa; }
.badge-gray { background: rgba(148,163,184,.15); color: #94a3b8; }
.footer-bottom {
    border-top: 1px solid #1e293b; padding: 24px 0; text-align: center;
}
.footer-bottom p { font-size: 13px; margin-bottom: 8px; }
.footer-disclaimer { font-size: 12px; color: #64748b; max-width: 800px; margin: 0 auto; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav { 
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 16px; gap: 4px;
        border-bottom: 1px solid #e5e7eb; box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }
    .nav.active { display: flex; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero { padding: 48px 0 56px; }
    .info-items { gap: 16px; }
    .section { padding: 48px 0; }
    .section-header h1, .section-header h2 { font-size: 28px; }
    .lottery-card { padding: 24px; }
    .number-btn { width: 44px; height: 44px; font-size: 14px; }
    .lottery-numbers { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .results-card { padding: 28px 20px; }
    .winning-ball, .user-ball { width: 52px; height: 52px; font-size: 18px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
    .legal-content { padding: 28px 20px; }
    .age-gate-box { padding: 32px 24px; }
}
