/* 
  SexAppeal Platform - Prototype Styles
  Tone: Elegant, High-End, Trustworthy
*/

:root {
    --primary-gold: #D4AF37;
    --dark-bg: #0D0D0D;
    --light-text: #F5F5F5;
    --accent-red: #8B0000;
    --glass-bg: rgba(255, 255, 255, 0.1);
    /* Sitio ya diseñado en oscuro: evita auto-inversión del navegador (Chrome/Safari dark mode) */
    color-scheme: dark;
}

html {
    color-scheme: dark;
    background-color: var(--dark-bg);
}

/* Logos, banderas e íconos de marca: colores originales, sin inversión del browser */
img.page-logo,
img.landing-logo,
img.preserve-brand-colors,
.lang-switcher img,
.how-to-pay-logo,
img[src*="SexAppeal_logo"],
img[src*="flagcdn.com"],
img[src*="/images/mercadopago"],
img[src*="/images/bbva"] {
    color-scheme: only light;
    forced-color-adjust: none;
}

@media (prefers-color-scheme: dark) {
    img.page-logo,
    img.landing-logo,
    img.preserve-brand-colors,
    .lang-switcher img,
    .how-to-pay-logo,
    img[src*="SexAppeal_logo"],
    img[src*="flagcdn.com"],
    img[src*="/images/mercadopago"],
    img[src*="/images/bbva"] {
        filter: none !important;
        -webkit-filter: none !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.landing-page {
    overflow-x: auto;
}

/* Typography */
h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gold-text {
    color: var(--primary-gold);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: relative;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--primary-gold);
    margin-bottom: 60px;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-gold);
    color-scheme: only light;
}

a.logo img {
    color-scheme: only light;
}

/* Components */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

button {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

button:hover {
    background: #C5A028;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: white;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100000;
    padding: 10px 16px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

.alert[role="alert"],
.alert[aria-live] {
    margin-bottom: 16px;
}

.landing-login-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #ccc;
    text-align: left;
}

.landing-login-form .form-group {
    margin-bottom: 12px;
}

.landing-login-form .form-group input {
    margin-bottom: 0;
}

.password-recovery-panel label,
.recovery-code-input + label,
.password-recovery-page .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #ccc;
    text-align: left;
}

.remove-overlay {
    border: none;
    padding: 0;
}

.form-select {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: white;
    -webkit-appearance: none;
    /* Removes default browser styling */
    appearance: none;
}

.form-select option {
    /* Ensure dropdown options are readable against light OS backgrounds */
    background: var(--dark-bg);
    color: var(--light-text);
}

/* Filter Form */
.filter-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.filter-control {
    flex: 1;
    text-align: left;
}

.filter-control label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
}

/* Sections */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-style: italic;
}

/* Discovery Feed — 4 columns desktop, 2 on mobile */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.treasure-card {
    text-align: center;
}

.treasure-alias {
    font-size: 1.1rem;
    margin: 10px 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.8rem;
    border: 1px solid var(--primary-gold);
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--light-text);
    transition: background-color 0.2s ease;
}

.tag:hover {
    background-color: var(--glass-bg);
}

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.quality-premium {
    background: linear-gradient(45deg, #D4AF37, #C5A028);
    color: var(--dark-bg);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.quality-gold {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.quality-silver {
    background: #C0C0C0;
    color: var(--dark-bg);
}

.quality-standard {
    background: #555;
    color: #ddd;
}

/* Category Page */
.category-card {
    text-align: center;
    text-decoration: none;
    color: var(--light-text);
}

.category-card h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

/* Login Status */
.login-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.9rem;
    color: var(--primary-gold);
    opacity: 0.9;
    text-transform: none;
    letter-spacing: normal;
}

/* Utilities */
.hidden {
    display: none;
}

.alert {
    color: var(--accent-red);
    margin-bottom: 10px;
}

/* 5-Column Responsive Grid */
.five-column-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
}

@media (max-width: 1200px) {
    .five-column-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .five-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .five-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Responsive Design for smaller screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .card {
        padding: 15px;
    }

    .grid {
        gap: 10px;
    }

    .five-column-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .logo {
        font-size: 2.2rem;
    }

    .login-status {
        position: static;
        margin-top: 10px;
        font-size: 0.8rem;
    }

    .filter-group {
        flex-direction: column;
    }
}

/* Landing page (index.html) */
.landing-page header {
    display: none;
}

.landing-page .landing-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) #1a1a1a;
}

.landing-page .landing-container::-webkit-scrollbar {
    height: 10px;
}

.landing-page .landing-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.landing-page .landing-container::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
}

.landing-triple.hero {
    display: grid;
    height: auto;
    min-height: calc(100vh - 60px);
}

.landing-frame .landing-title {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    margin: 0 0 12px;
    line-height: 1.15;
}

.landing-frame .landing-tagline {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    margin: 0 0 24px;
    font-style: italic;
    color: #ccc;
    line-height: 1.45;
}

.landing-triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    min-width: min(100%, 900px);
    width: max(100%, 900px);
    min-height: calc(100vh - 60px);
    padding: 0;
    text-align: center;
    align-items: stretch;
}

.landing-dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    min-width: min(100%, 600px);
    width: max(100%, 600px);
    min-height: calc(100vh - 60px);
    padding: 0;
    text-align: center;
    align-items: stretch;
}

.landing-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 32px 24px;
    box-sizing: border-box;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.landing-frame:last-child {
    border-right: none;
}

.landing-frame-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.landing-frame-logo .landing-frame-inner {
    max-width: min(92%, 420px);
    height: 100%;
    min-height: 280px;
    color-scheme: only light;
}

.landing-brand-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0 0 14px;
    line-height: 1;
}

.landing-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    color: var(--primary-gold);
    letter-spacing: 0.1em;
    font-weight: 400;
}

.landing-brochure-link {
    margin-left: 0.35em;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(0.72rem, 1.8vw, 0.82rem);
    color: #aaa;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.landing-brochure-link:hover,
.landing-brochure-link:focus-visible {
    color: var(--primary-gold);
}

.landing-logo {
    display: block;
    max-width: 100%;
    max-height: min(calc(100vh - 120px), 520px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.landing-age-gate {
    width: 100%;
    max-width: 320px;
}

.landing-age-disclaimer {
    color: #ddd;
    font-size: 1.12rem;
    line-height: 1.55;
    margin: 0 0 22px;
    font-weight: 500;
}

.landing-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: none;
    margin-bottom: 12px;
}

.landing-btn-enter {
    background: var(--primary-gold);
    color: #000;
}

.landing-btn-exit {
    background: #222;
    color: #888;
    border: 1px solid #444;
}

.landing-btn-login {
    background: var(--primary-gold);
    color: #000;
    margin-top: 8px;
}

.landing-frame-auth {
    background: rgba(0, 0, 0, 0.25);
}

.landing-auth-inner {
    max-width: 340px;
}

.landing-login-heading {
    font-size: 1.65rem;
    margin: 0 0 8px;
    text-align: center;
}

.landing-login-sub {
    color: #aaa;
    font-size: 0.95rem;
    text-align: center;
    margin: 0 0 22px;
    line-height: 1.45;
}

.landing-login-form {
    width: 100%;
}

.landing-login-form input {
    margin-bottom: 14px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.landing-forgot {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
}

.landing-forgot a {
    color: var(--primary-gold);
    text-decoration: none;
}

.landing-pro-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.landing-pro-link {
    display: block;
    text-align: center;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.landing-pro-link-login {
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    background: rgba(212, 175, 55, 0.08);
    font-family: inherit;
    width: 100%;
}

.landing-pro-link-register {
    color: #000;
    background: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.landing-pro-link:hover {
    opacity: 0.92;
}

.landing-register-link {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #aaa;
}

.landing-register-link a {
    color: var(--primary-gold);
    text-decoration: none;
}

.landing-register-link a:hover {
    text-decoration: underline;
}

#loginAlert:not(.hidden) {
    display: block;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid rgba(139, 0, 0, 0.45);
    border-radius: 6px;
    text-align: left;
}

#loginAlert .login-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

#loginAlert .login-error-actions button,
#loginAlert .login-error-actions a {
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-family: inherit;
}

#loginAlert .login-error-actions button {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

#loginAlert .login-error-actions button[data-login-forgot] {
    background: rgba(212, 175, 55, 0.12);
}

#loginAlert .login-error-actions a {
    background: var(--primary-gold);
    color: #000;
    border: 1px solid var(--primary-gold);
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 14px;
}

.password-wrapper input {
    width: 100%;
    padding-right: 44px;
    margin-bottom: 0 !important;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    line-height: 0;
}

.password-recovery-panel {
    width: 100%;
}

#passwordRecoveryPanel:not(.hidden),
#recoveryStepEmail:not(.hidden),
#recoveryStepReset:not(.hidden),
#forgotPasswordForm:not(.hidden),
#resetPasswordForm:not(.hidden) {
    display: block;
}

#recoveryAlert:not(.hidden),
#forgotAlert:not(.hidden),
#resetAlert:not(.hidden) {
    display: block;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: rgba(139, 0, 0, 0.15);
    border: 1px solid rgba(139, 0, 0, 0.45);
    border-radius: 6px;
    text-align: left;
}

#recoveryAlert:not(.hidden)[style*="rgb(0, 255, 0)"],
#forgotAlert:not(.hidden)[style*="rgb(0, 255, 0)"],
#resetAlert:not(.hidden)[style*="rgb(0, 255, 0)"] {
    background: rgba(0, 128, 0, 0.15);
    border-color: rgba(0, 128, 0, 0.45);
}

.password-recovery-panel input {
    margin-bottom: 14px;
}

.recovery-step-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.recovery-email-display {
    font-weight: bold;
    margin-bottom: 18px;
    word-break: break-all;
}

.recovery-code-input {
    text-align: center;
    font-size: 1.4rem !important;
    letter-spacing: 5px;
}

.recovery-back-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 10px;
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.recovery-back-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.password-recovery-page input {
    width: 100%;
}

/* Floating discovery controls — gold icons readable on dark and light backgrounds */
.floating-controls-bar .floating-menu-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--primary-gold);
    transition: color 0.2s ease, transform 0.2s ease;
}

.floating-controls-bar .floating-menu-btn svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    stroke-width: 2.75;
    filter:
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.95))
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.45));
}

.floating-controls-bar .floating-menu-btn:hover {
    color: #F0D060;
    transform: scale(1.06);
}

.floating-controls-bar .floating-menu-btn.is-active {
    color: var(--primary-gold);
}

.floating-controls-bar .floating-menu-btn.is-dim {
    color: rgba(212, 175, 55, 0.55);
}

/* Compact grid toggle (9-square icon) — 6 columns desktop */
body.small-grid-mode #treasureGrid .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px;
}

body.small-grid-mode #treasureGrid .treasure-card h3,
body.small-grid-mode #treasureGrid .treasure-alias {
    font-size: 0.85rem !important;
}

body.small-grid-mode #treasureGrid .treasure-img-container {
    margin: -10px -10px 10px -10px !important;
}

body.small-grid-mode #treasureGrid .treasure-card {
    padding: 10px !important;
}

@media (max-width: 768px) {
    body.small-grid-mode #treasureGrid .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

#floatingProgressWrapper {
    transition: opacity 0.25s ease;
    border-left-color: rgba(212, 175, 55, 0.35) !important;
}

#floatingProgressText {
    color: var(--primary-gold) !important;
}

#floatingProgressBar {
    background: var(--primary-gold) !important;
}

.payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-modal-overlay.hidden {
    display: none !important;
}

.payment-modal-panel {
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.how-to-pay-intro {
    margin: 0 0 12px;
    color: #ccc;
    line-height: 1.6;
}

.how-to-pay-billing-note,
.how-to-pay-category-line {
    margin: 0 0 12px;
    color: #bbb;
    line-height: 1.55;
    font-size: 0.92rem;
}

.how-to-pay-category-line {
    color: #ddd;
}

.how-to-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.how-to-pay-card {
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.25);
}

.how-to-pay-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #eee;
}

.how-to-pay-bank-label {
    color: #ccc;
    font-size: 0.95rem;
}

.how-to-pay-logo {
    display: block;
    height: 28px;
    width: auto;
    object-fit: contain;
}

.how-to-pay-logo-mp {
    max-width: 130px;
}

.how-to-pay-logo-bbva {
    max-width: 72px;
}

.how-to-pay-details {
    margin: 0;
}

.how-to-pay-details div {
    margin-bottom: 10px;
}

.how-to-pay-details div:last-child {
    margin-bottom: 0;
}

.how-to-pay-details dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    margin-bottom: 2px;
}

.how-to-pay-details dd {
    margin: 0;
    color: var(--primary-gold);
    font-family: Consolas, Monaco, monospace;
    font-size: 0.92rem;
    word-break: break-all;
}

@media (max-width: 640px) {
    .how-to-pay-grid {
        grid-template-columns: 1fr;
    }

    .payment-modal-panel {
        max-width: 100%;
    }
}

.payment-sidebar-accounts-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.payment-sidebar-accounts-title {
    margin: 0 0 12px;
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.payment-sidebar-accounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-sidebar-account-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
}

.payment-sidebar-account-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: #eee;
    font-size: 0.88rem;
}

.payment-sidebar-account-block p {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: #ddd;
    word-break: break-all;
}

.payment-sidebar-account-block p:last-child {
    margin-bottom: 0;
}

.payment-sidebar-account-block p span {
    display: inline-block;
    min-width: 42px;
    color: #999;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.payment-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 1.4rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    color-scheme: only light;
}

.lang-switcher button {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 4px 6px 2px;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lang-switcher button.lang-active {
    border-bottom-color: var(--primary-gold);
    opacity: 1;
}

.lang-switcher button.lang-inactive {
    opacity: 0.5;
}

.lang-switcher button:hover {
    opacity: 1;
}

.lang-switcher img {
    border-radius: 2px;
    display: block;
}

@media (max-width: 960px) {
    .landing-triple,
    .landing-dual {
        min-height: auto;
    }

    .landing-frame {
        min-height: auto;
        padding: 32px 20px;
    }
}

@media (max-width: 520px) {
    .landing-triple,
    .landing-dual {
        grid-template-columns: 1fr;
        min-width: 100%;
        width: 100%;
    }

    .landing-frame {
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }

    .landing-frame:last-child {
        border-bottom: none;
    }

    .landing-frame-logo .landing-frame-inner {
        min-height: 220px;
    }

    .landing-logo {
        max-height: min(50vh, 360px);
    }
}

.landing-platform-link {
    margin-left: 0.15em;
}

/* --- B2B Platform landing (plataforma.html) --- */
body.b2b-page {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0a0a0a;
}

body.b2b-page h1,
body.b2b-page h2,
body.b2b-page h3 {
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0.04em;
}

.b2b-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(8px);
    margin-bottom: 0;
    padding: 0;
}

.b2b-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.b2b-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--primary-gold);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.b2b-logo span {
    display: block;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.b2b-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.b2b-nav a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.88rem;
}

.b2b-nav a:hover {
    color: var(--primary-gold);
}

.b2b-nav-cta {
    border: 1px solid var(--primary-gold);
    padding: 6px 14px !important;
    border-radius: 4px;
    color: var(--primary-gold) !important;
}

.b2b-hero {
    padding: 72px 0 56px;
    background: radial-gradient(ellipse at 30% 0%, rgba(212, 175, 55, 0.1), transparent 55%);
}

.b2b-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 16px;
}

.b2b-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 400;
}

.b2b-lead {
    max-width: 720px;
    font-size: 1.05rem;
    color: #ccc;
    margin-bottom: 28px;
}

.b2b-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.b2b-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.b2b-btn-primary {
    background: var(--primary-gold);
    color: #111;
}

.b2b-btn-ghost {
    border: 1px solid #555;
    color: #ddd;
}

.b2b-btn-ghost:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.b2b-hero-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    padding: 0;
    color: #999;
    font-size: 0.9rem;
}

.b2b-hero-stats strong {
    display: block;
    color: var(--primary-gold);
    font-size: 1.4rem;
}

.b2b-section {
    padding: 56px 0;
    border-top: 1px solid #222;
}

.b2b-section-dark {
    background: #111;
}

.b2b-section h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--primary-gold);
}

.b2b-section-intro {
    max-width: 760px;
    color: #aaa;
    margin-bottom: 28px;
}

.b2b-diagram-pre {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9cf;
    font-family: Consolas, 'Courier New', monospace;
    margin-bottom: 28px;
}

.b2b-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.b2b-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.b2b-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

.b2b-card h3 {
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.b2b-card p {
    color: #aaa;
    font-size: 0.92rem;
    margin: 0;
}

.b2b-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.b2b-price-card {
    position: relative;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 24px 20px;
}

.b2b-price-featured {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.b2b-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--primary-gold);
    color: #111;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.b2b-price-card h3 {
    color: var(--primary-gold);
    margin-bottom: 12px;
}

.b2b-price-tag {
    color: #ccc;
    margin-bottom: 4px;
}

.b2b-price-month {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.b2b-price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.b2b-price-card li {
    color: #aaa;
    font-size: 0.88rem;
    padding: 6px 0;
    border-bottom: 1px solid #222;
}

.b2b-price-card li::before {
    content: '✓ ';
    color: var(--primary-gold);
}

.b2b-price-note {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.b2b-pricing-footer {
    margin-top: 24px;
    color: #888;
    font-size: 0.92rem;
    text-align: center;
}

.b2b-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.b2b-pills span {
    border: 1px solid #444;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #bbb;
}

.b2b-checklist {
    list-style: none;
    padding: 0;
}

.b2b-checklist li {
    padding: 8px 0 8px 22px;
    position: relative;
    color: #aaa;
    font-size: 0.92rem;
}

.b2b-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

.b2b-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.b2b-contact a {
    color: var(--primary-gold);
}

.b2b-contact-copy {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px;
    border-radius: 8px;
    color: #aaa;
    font-size: 0.92rem;
}

.b2b-footer {
    padding: 32px 0;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.b2b-footer a {
    color: var(--primary-gold);
}

@media (max-width: 800px) {
    .b2b-grid-3,
    .b2b-pricing,
    .b2b-grid-2,
    .b2b-contact-grid {
        grid-template-columns: 1fr;
    }

    .b2b-nav {
        width: 100%;
    }
}

/* Categories page — three-frame layout (side | grid | side) */
body.categories-page {
    padding-top: 55px;
}

body.categories-page .categories-container {
    max-width: min(1720px, 100%);
    padding: 12px max(12px, env(safe-area-inset-right)) 40px max(12px, env(safe-area-inset-left));
}

body.categories-page header.page-header {
    display: none;
}

.categories-shell {
    display: grid;
    grid-template-columns: minmax(88px, 11%) minmax(0, 1fr) minmax(88px, 11%);
    gap: 14px;
    align-items: stretch;
    min-height: calc(100vh - 100px);
}

.categories-frame {
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 6px;
    background: rgba(12, 12, 12, 0.55);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.categories-frame-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    min-height: 320px;
}

/* Left frame mirrors the right side frame: same box, sizing and padding.
   Equal height is handled by the grid's align-items: stretch. */
.categories-frame-left {
    justify-content: flex-start;
}

.categories-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.categories-frame-left .categories-brand-logo {
    flex: 1;
    min-height: 0;
}

.categories-brand-logo .page-logo {
    width: 100%;
    max-width: 120px;
    height: auto;
    max-height: min(42vh, 220px);
    object-fit: contain;
}

.categories-frame-left .categories-brand-logo .page-logo {
    max-width: 100%;
    max-height: 100%;
}

.categories-frame-right {
    justify-content: flex-start;
}

.categories-frame-accent {
    width: 2px;
    flex: 1;
    min-height: 120px;
    margin-top: 24px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(212, 175, 55, 0.15) 15%,
        rgba(212, 175, 55, 0.45) 50%,
        rgba(212, 175, 55, 0.15) 85%,
        transparent 100%
    );
    border-radius: 2px;
}

.categories-frame-center {
    padding: 14px 12px 24px;
    min-width: 0;
    background: rgba(8, 8, 8, 0.72);
    border-color: rgba(212, 175, 55, 0.55);
}

body.categories-page #pageLoader {
    padding: 40px 16px;
}

body.categories-page #treasureGrid.grid,
body.categories-page #treasureGrid .grid {
    margin-top: 0;
}

body.categories-page #treasureGrid {
    padding-bottom: 0;
}

/* Shared mount point for pageLoader, treasure grid, and launch curtain */
.treasure-grid-slot {
    width: 100%;
    min-width: 0;
    position: relative;
}

body.categories-page .treasure-grid-slot {
    padding-bottom: 80px;
}

.treasure-grid-slot.launch-curtain-slot-active #pageLoader,
.treasure-grid-slot.launch-curtain-slot-active #treasureGrid {
    display: none !important;
}

/* Launch curtain — theater telón until grand opening */
body.launch-curtain-active {
    overflow-x: hidden;
}

body.launch-curtain-active.categories-page .categories-filter-source {
    display: none !important;
}

.launch-curtain-stage {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: clamp(320px, 52vh, 560px);
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 30% at 50% 92%, rgba(255, 214, 150, 0.40) 0%, rgba(150, 95, 40, 0.12) 45%, transparent 72%),
        linear-gradient(180deg, transparent 76%, rgba(120, 75, 35, 0.50) 78%, rgba(70, 42, 18, 0.88) 100%),
        linear-gradient(180deg, #1a0a0a 0%, #0a0505 55%, #140a06 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.92);
}

/* Match .grid margin-top on discovery/home pages */
body.launch-curtain-active:not(.categories-page) .treasure-grid-slot .launch-curtain-stage {
    margin-top: 50px;
}

/* Top valance (cenefa) with draped swags */
.launch-curtain-gauze {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(56px, 12vh, 104px);
    z-index: 5;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.30) 0,
            rgba(0, 0, 0, 0.30) 5px,
            rgba(150, 25, 40, 0.0) 12px,
            rgba(255, 220, 200, 0.10) 16px,
            rgba(0, 0, 0, 0.30) 24px
        ),
        linear-gradient(180deg, #a01828 0%, #82111f 42%, #5e0b16 100%);
    border-top: 2px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55), inset 0 -10px 22px rgba(0, 0, 0, 0.55);
    -webkit-mask: radial-gradient(30px at 50% 100%, #0000 96%, #000 100%) 50% 0 / 66px 100% repeat-x;
            mask: radial-gradient(30px at 50% 100%, #0000 96%, #000 100%) 50% 0 / 66px 100% repeat-x;
    transition: transform 2.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Velvet side drapes with vertical pleats, gathered and tied back */
.launch-curtain-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 3;
    background:
        repeating-linear-gradient(
            90deg,
            #3a060c 0px,
            #620e1a 13px,
            #8c1626 25px,
            #620e1a 37px,
            #3a060c 50px
        );
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.75);
    transition: transform 2.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Gold tieback knot near the inner edge */
.launch-curtain-panel::before {
    content: '';
    position: absolute;
    top: 47%;
    width: 48px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f7e3a1 0%, #d4af37 45%, #9c7711 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55), inset 0 -3px 6px rgba(0, 0, 0, 0.4);
    z-index: 4;
}

.launch-curtain-panel-left {
    left: 0;
    border-right: 2px solid rgba(212, 175, 55, 0.40);
    transform-origin: left center;
    clip-path: polygon(0 0, 100% 0, 100% 58%, 60% 100%, 0 92%);
    border-bottom-right-radius: 80% 45%;
}

.launch-curtain-panel-left::before {
    right: 2px;
}

.launch-curtain-panel-right {
    right: 0;
    border-left: 2px solid rgba(212, 175, 55, 0.40);
    transform-origin: right center;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 40% 100%, 0 58%);
    border-bottom-left-radius: 80% 45%;
}

.launch-curtain-panel-right::before {
    left: 2px;
}

body.launch-curtain-opening .launch-curtain-panel-left {
    transform: translateX(-105%);
}

body.launch-curtain-opening .launch-curtain-panel-right {
    transform: translateX(105%);
}

body.launch-curtain-opening .launch-curtain-gauze {
    transform: translateY(-110%);
}

.launch-curtain-center {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: inherit;
    padding: clamp(78px, 15vh, 128px) 24px 48px;
}

.launch-curtain-kicker {
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin: 0 0 12px;
}

.launch-curtain-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.launch-curtain-subtitle {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 28px;
    line-height: 1.5;
}

.launch-curtain-countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
}

.launch-curtain-unit {
    min-width: 72px;
    padding: 14px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.08);
}

.launch-curtain-value {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-gold);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.launch-curtain-label {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.launch-curtain-footnote {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.admin-launch-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    margin-bottom: 8px;
}

.admin-launch-switch-label {
    flex: 1;
    font-size: 0.9rem;
    color: #ddd;
}

.admin-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.admin-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #444;
    border-radius: 999px;
    transition: background 0.25s ease;
    border: 1px solid #555;
}

.admin-toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.admin-toggle-switch input:checked + .admin-toggle-slider {
    background: rgba(212, 175, 55, 0.85);
    border-color: var(--primary-gold);
}

.admin-toggle-switch input:checked + .admin-toggle-slider::before {
    transform: translateX(24px);
}

.admin-toggle-switch input:focus-visible + .admin-toggle-slider {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}