/* =========================================================
   sanquilo — Nocturne Lime template
   Near-black, chartreuse accent, soft rounded, Sora display
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0e0f12;
    --bg-2: #16181d;
    --panel: #16181d;
    --panel-2: #1d2027;
    --border: rgba(255, 255, 255, 0.10);
    --line: rgba(255, 255, 255, 0.16);
    --text: #f2f3ee;
    --muted: #a6a9a2;
    --faint: #71746d;
    --accent: #c6f24e;
    --accent-2: #d7ff6e;
    --accent-soft: rgba(198, 242, 78, 0.12);
    --on-accent: #12140a;
    --danger: #ff6b6b;
    --display: 'Sora', system-ui, sans-serif;
    --sans: 'Inter', system-ui, sans-serif;
    --radius: 14px;
    --radius-lg: 18px;
    --container: 1200px;
    --nav-h: 74px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }

body {
    font-family: var(--sans);
    background: var(--bg);
    background-image: radial-gradient(760px 460px at 88% -6%, rgba(198,242,78,0.10), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 30px; position: relative; z-index: 1; }
::selection { background: var(--accent); color: var(--on-accent); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 20px; border: 3px solid var(--bg-2); }

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
    display: flex; align-items: center;
    background: rgba(14, 15, 18, 0.78);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.nav-brand img { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a { color: var(--text); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 14px; position: relative; }
.nav-menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-cta {
    margin-left: 12px; padding: 11px 22px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem;
    color: var(--on-accent) !important; background: var(--accent); border-radius: 999px; transition: background 0.2s, transform 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-2); color: var(--on-accent) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: 0.3s; }

/* =========================================================
   BACK BUTTON
   ========================================================= */
.back-button {
    position: fixed; left: 22px; bottom: 22px; z-index: 900;
    width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
    background: var(--panel); border: 1px solid var(--border); transition: background 0.2s, transform 0.2s;
}
.back-button::before { content: "\2190"; font-size: 1.35rem; color: var(--accent); }
.back-button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.back-button:hover::before { color: var(--on-accent); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: calc(var(--nav-h) + 76px) 0 56px; text-align: center; border-bottom: 1px solid var(--border); }
.hero .container { max-width: 940px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px; color: var(--text); }
.hero h1 br { display: none; }
.hero p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero .container > h1::before {
    content: "\2014  SANQUILO · PROVINCIA DE BUENOS AIRES  \2014";
    display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.24em;
    color: var(--accent); margin-bottom: 24px;
}
.animated-background { display: none; }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 32px; border-radius: 999px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; cursor: pointer; border: 1px solid var(--border); transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }

/* section titles */
.section-eyebrow { display: block; text-align: center; text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.72rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.section-title, .faq-section h2 { font-family: var(--display); text-align: center; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 auto 42px; color: var(--text); }

/* =========================================================
   CASINO RANKING (index rows, flat)
   ========================================================= */
.casino-ranking { padding: 46px 0 34px; }
.casino-grid { display: flex; flex-direction: column; gap: 16px; }

.casino-card {
    position: relative; display: grid; grid-template-columns: 70px 130px 1fr auto; align-items: center; gap: 30px;
    padding: 26px 28px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.casino-card:hover { transform: translateY(-3px); border-color: rgba(198,242,78,0.45); box-shadow: 0 22px 46px -28px rgba(0,0,0,0.8); }
.casino-grid .casino-card:first-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

.ranking-number { font-family: var(--display); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--faint); text-align: center; }
.casino-grid .casino-card:first-child .ranking-number { color: var(--accent); }
.casino-logo-link { display: block; }
.casino-logo { width: 130px; height: 84px; display: grid; place-items: center; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--text); transition: border-color 0.2s; }
.casino-logo-link:hover .casino-logo { border-color: var(--accent); }
.casino-info { min-width: 0; }
.casino-title { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; color: var(--text); }
.verified-badge { font-family: var(--sans); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(198,242,78,0.4); padding: 3px 11px; border-radius: 999px; }
.offer-text { color: var(--text); font-size: 1.05rem; margin-bottom: 14px; font-weight: 500; overflow-wrap: anywhere; }
.pwr-score { margin-bottom: 14px; max-width: 340px; }
.pwr-label { font-family: var(--display); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.10); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 1.2s var(--ease); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag { font-size: 0.76rem; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.casino-cta { padding: 15px 30px; border-radius: 999px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; color: var(--on-accent) !important; background: var(--accent); border: 1px solid var(--accent); white-space: nowrap; transition: background 0.2s, transform 0.2s; }
.casino-cta:hover { background: var(--accent-2); transform: translateY(-2px); }

/* =========================================================
   CONTENT PANELS
   ========================================================= */
.regulation-section, .about-section, .responsible-section { padding: 54px 0; }
.regulation-card, .about-intro { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 50px; max-width: 900px; margin: 0 auto; }
.regulation-card h2, .about-intro h2 { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 18px; color: var(--text); padding-bottom: 14px; border-bottom: 2px solid var(--accent); display: inline-block; }
.regulation-card h3, .about-intro h3 { font-family: var(--display); font-size: 1.32rem; letter-spacing: -0.01em; margin: 28px 0 10px; color: var(--text); }
.regulation-card p, .about-intro p { color: var(--muted); margin-bottom: 15px; }
.regulation-card ul, .about-intro ul { list-style: none; margin: 8px 0 20px; }
.regulation-card li, .about-intro li { position: relative; padding-left: 28px; margin-bottom: 13px; color: var(--muted); }
.regulation-card li::before, .about-intro li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.regulation-card a, .about-intro a, .responsible-section a, .final-reminder a { color: var(--accent) !important; text-decoration: underline; text-underline-offset: 3px; }
.regulation-card strong, .about-intro strong { color: var(--text); }
.policy-last-updated { display: inline-block; font-family: var(--display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(198,242,78,0.32); padding: 7px 16px; border-radius: 999px; margin-bottom: 24px; }

.responsible-intro { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.intro-icon, .feature-icon { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent); font-size: 1.25rem; }
.responsible-features { display: grid; gap: 20px; }
.feature-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-card h3 { font-family: var(--display); margin: 14px 0 8px; color: var(--text); }
.warning-card { border-color: rgba(255,107,107,0.4); }
.warning-card .feature-icon { color: var(--danger); background: rgba(255,107,107,0.1); }
.warning-list li::before { background: var(--danger); }
.help-card { border-color: var(--accent); }
.commitment-card { border-color: var(--line); }
.tips-list { display: grid; gap: 12px; margin-top: 14px; }
.tip-item { background: var(--bg-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 12px; color: var(--muted); }
.final-reminder { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-section { padding: 60px 0; }
.faq-item { max-width: 860px; margin: 0 auto 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.faq-item.active { border-color: var(--accent); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--text); }
.faq-toggle { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent); font-size: 1.2rem; font-weight: 700; transition: transform 0.35s var(--ease), background 0.2s, color 0.2s; }
.faq-item.active .faq-toggle { transform: rotate(135deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.active .faq-answer { max-height: 440px; }
.faq-answer p { padding: 0 24px 24px; color: var(--muted); }

/* =========================================================
   DISCLAIMER
   ========================================================= */
.responsible-gaming { padding: 20px 0 54px; }
.legal-disclaimer { max-width: 900px; margin: 0 auto; padding: 24px 28px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); color: var(--faint); font-size: 0.9rem; text-align: center; }
.legal-disclaimer a { color: var(--accent) !important; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-form { margin-top: 28px; display: grid; gap: 18px; }
.contact-form label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 15px; font-size: 1rem; font-family: var(--sans); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); transition: box-shadow 0.15s, border-color 0.15s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.contact-form select option { background: var(--panel); color: var(--text); }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.contact-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.contact-meta { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.contact-meta h3 { font-family: var(--display); color: var(--text); margin-bottom: 12px; }
.contact-meta p { margin-bottom: 6px; color: var(--muted); }

/* =========================================================
   CANCEL SUBSCRIPTION
   ========================================================= */
.unsubscribe-header { text-align: center; margin-bottom: 22px; }
.cancel-icon { font-size: 2.6rem; margin-bottom: 10px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 15px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); margin-bottom: 18px; }
.button-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.btn-cancel, .btn-keep { padding: 13px 26px; border-radius: 999px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; cursor: pointer; border: 1px solid var(--line); transition: background 0.2s, color 0.2s; }
.btn-cancel { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-keep { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-cancel:hover { background: var(--danger); color: #fff; }
.btn-keep:hover { background: var(--accent-2); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { margin-top: 64px; background: #0b0c0e; border-top: 1px solid var(--border); padding: 58px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 42px; }
.footer-brand-img { height: 46px; margin-bottom: 16px; }
.footer-highlight { display: inline-block; margin-top: 12px; font-family: var(--display); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.footer-col h4 { font-family: var(--display); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: 0.94rem; }
.footer-col ul a:hover { color: var(--accent); }
.partner-logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.partner-logo { height: 42px; width: auto; opacity: 0.65; filter: grayscale(1) brightness(1.6); transition: opacity 0.3s, filter 0.3s; }
.partner-logo:hover { opacity: 1; filter: grayscale(0) brightness(1.6); }
.trustpilot { margin-top: 18px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.trustpilot span { color: var(--accent); letter-spacing: 2px; }
.footer-legal { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--border); text-align: center; }
.footer-disclaimer { color: var(--faint); font-size: 0.82rem; max-width: 900px; margin: 0 auto 18px; line-height: 1.7; }
.copyright { color: var(--faint); font-size: 0.82rem; margin-top: 6px; }

/* =========================================================
   POPUPS
   ========================================================= */
.popup-overlay, #cookieConsentPopup { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 7, 9, 0.66); }
.popup-overlay.active, #cookieConsentPopup.active { display: flex; }
#cookieConsentPopup { align-items: flex-end; background: transparent; pointer-events: none; }
#cookieConsentPopup .popup-content { pointer-events: auto; max-width: 560px; margin-bottom: 22px; }
.popup-content { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 70px -34px rgba(0,0,0,0.9); animation: popIn 0.3s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.popup-header h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--text); }
.popup-body { color: var(--muted); margin-bottom: 22px; }
.popup-body a { color: var(--accent); }
.age-icon { width: 74px; height: 74px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--on-accent); background: var(--accent); }
.popup-footer { display: flex; gap: 12px; flex-wrap: wrap; }
.popup-btn { flex: 1; min-width: 140px; padding: 13px 18px; border-radius: 999px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; cursor: pointer; border: 1px solid var(--line); transition: background 0.2s, color 0.2s; }
.popup-btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.popup-btn.primary:hover { background: var(--accent-2); }
.popup-btn.secondary { background: transparent; color: var(--text); }
.popup-btn.secondary:hover { background: var(--panel-2); color: var(--text); }

/* =========================================================
   SCROLL PROGRESS + REVEAL
   ========================================================= */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100; background: var(--accent); box-shadow: 0 0 12px rgba(198,242,78,0.6); transition: width 0.08s linear; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
    .casino-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding: 30px 20px; }
    .casino-title { justify-content: center; }
    .feature-tags { justify-content: center; }
    .pwr-score { max-width: 100%; width: 100%; }
    .casino-cta { width: 100%; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0;
        background: var(--panel); border-bottom: 1px solid var(--border);
        transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), opacity 0.3s;
    }
    .nav-menu.active { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu a { padding: 16px 24px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
    .nav-menu a::after { display: none; }
    .regulation-card, .about-intro { padding: 30px 22px; }
    .hero { padding: calc(var(--nav-h) + 40px) 0 44px; }
    .back-button { width: 44px; height: 44px; left: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    #scroll-progress { display: none; }
}
