/* ═══════════════════════════════════════════════════
   /usuarios/ — Travel Points (usuarios.php)
   Paleta del sitio: negro, dorado y crema.
   ═══════════════════════════════════════════════════ */
.tp-page {
    --tp-gold: #C9A86A;
    --tp-gold-dark: #A8893A;
    --tp-gold-light: #E2C98F;
    --tp-ink: #1A1A1A;
    --tp-text: #3A3A3A;
    --tp-muted: #6F6556;
    --tp-cream: #F5F0E8;
    --tp-cream-2: #EDE8DE;
    --tp-line: #E4DCCD;
    --tp-dark: #111111;
    --tp-display: 'Playfair Display', Georgia, serif;
    background: var(--tp-cream);
    color: var(--tp-text);
}

/* ─── Base ───────────────────────────────────────── */
.tp-container { max-width: 1120px; margin-inline: auto; padding-inline: 1.5rem; }
.tp-container--narrow { max-width: 760px; }
.tp-section { padding: 5rem 0; }
.tp-section--alt { background: var(--tp-cream-2); }
.tp-head { text-align: center; margin-bottom: 3rem; }
.tp-eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--tp-gold); display: flex; align-items: center; gap: .875rem; margin-bottom: .875rem; }
.tp-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--tp-gold); }
.tp-eyebrow--center { justify-content: center; }
.tp-eyebrow--center::after { content: ''; width: 32px; height: 1px; background: var(--tp-gold); }
.tp-title { font-family: var(--tp-display); font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.2; color: var(--tp-ink); text-wrap: balance; }
.tp-sub { font-size: .9375rem; color: var(--tp-muted); margin-top: .75rem; }
.tp-rule { display: block; width: 48px; height: 2px; background: var(--tp-gold); margin: 1.5rem 0; }

/* ─── Botones ────────────────────────────────────── */
.tp-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.tp-actions--center { justify-content: center; }
.tp-btn { display: inline-flex; align-items: center; gap: .625rem; padding: .875rem 1.25rem; border-radius: 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tp-btn--gold { background: var(--tp-gold); color: #000; }
.tp-btn--gold span { font-size: .6875rem; background: rgba(0,0,0,.12); padding: .2rem .5rem; border-radius: 999px; letter-spacing: .04em; }
.tp-btn--gold:hover { background: var(--tp-gold-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(168,137,58,.35); }
.tp-btn--ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.tp-btn--ghost:hover { border-color: var(--tp-gold); color: var(--tp-gold); }
.tp-btn:focus-visible, .tp-link:focus-visible, .tp-faq summary:focus-visible { outline: 2px solid var(--tp-gold); outline-offset: 3px; }

/* ─── Hero ───────────────────────────────────────── */
.tp-hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--tp-dark); min-height: 560px; }
.tp-hero__text { padding: 5rem 2rem 5rem max(1.5rem, calc((100vw - 1120px) / 2 + 1.5rem)); display: flex; flex-direction: column; justify-content: center; color: #fff; }
.tp-hero__title { font-family: var(--tp-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.08; }
.tp-hero__title em { display: block; font-style: italic; color: var(--tp-gold); }
.tp-hero__lead { font-size: .9375rem; line-height: 1.8; color: rgba(255,255,255,.72); max-width: 440px; margin-bottom: 2rem; }
.tp-hero__media { position: relative; overflow: hidden; }
.tp-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-hero__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--tp-dark) 0%, rgba(17,17,17,0) 22%); pointer-events: none; }

/* Estado del usuario logueado */
.tp-status { max-width: 420px; background: rgba(255,255,255,.05); border: 1px solid rgba(201,168,106,.3); border-radius: 12px; padding: 1.5rem; }
.tp-status__hello { font-size: .8125rem; color: rgba(255,255,255,.65); margin-bottom: .5rem; }
.tp-status__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tp-status__points { font-size: .875rem; color: rgba(255,255,255,.8); }
.tp-status__points strong { font-family: var(--tp-display); font-size: 2.25rem; color: #fff; margin-right: .25rem; font-variant-numeric: lining-nums; }
.tp-status__level { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #000; background: var(--tp-gold); padding: .3rem .75rem; border-radius: 999px; }
.tp-progress { height: 6px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.tp-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--tp-gold-dark), var(--tp-gold), var(--tp-gold-light)); border-radius: 999px; }
.tp-status__next { font-size: .8125rem; color: rgba(255,255,255,.7); margin: .75rem 0 1rem; }
.tp-status__next strong { color: #fff; }
.tp-link { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-gold); text-decoration: none; }
.tp-link:hover { color: var(--tp-gold-light); }

/* ─── Cómo funciona ──────────────────────────────── */
.tp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.tp-step { background: #fff; border: 1px solid var(--tp-line); border-radius: 12px; padding: 2rem 1.75rem; transition: transform .2s ease, box-shadow .2s ease; }
.tp-step:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(60,45,20,.08); }
.tp-step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--tp-gold); color: var(--tp-gold-dark); font-family: var(--tp-display); font-size: 1.125rem; font-variant-numeric: lining-nums; margin-bottom: 1.25rem; }
.tp-step h3 { font-family: var(--tp-display); font-size: 1.25rem; color: var(--tp-ink); margin-bottom: .5rem; }
.tp-step p { font-size: .9rem; line-height: 1.65; color: var(--tp-muted); }

/* ─── Niveles ────────────────────────────────────── */
.tp-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.tp-level { position: relative; background: var(--tp-dark); border: 1px solid #262626; border-radius: 14px; padding: 2.5rem 2rem; text-align: center; color: #fff; transition: transform .2s ease, border-color .2s ease; }
.tp-level:hover { transform: translateY(-4px); border-color: rgba(201,168,106,.45); }
.tp-level--current { background: linear-gradient(150deg, #1c150a, #2d1f00); border-color: var(--tp-gold); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.tp-level__badge { position: absolute; top: 1rem; right: 1rem; font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--tp-gold); color: #000; padding: .25rem .625rem; border-radius: 3px; }
.tp-level__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(201,168,106,.35); color: var(--tp-gold); margin-bottom: 1.25rem; }
.tp-level__icon svg { width: 28px; height: 28px; }
.tp-level__name { font-family: var(--tp-display); font-size: 1.375rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .375rem; }
.tp-level__range { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-gold); margin-bottom: 1.25rem; }
.tp-level__desc { min-height: 3.3em; font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.6); padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.tp-level__perks { list-style: none; text-align: left; display: grid; gap: .625rem; }
.tp-level__perks li { position: relative; padding-left: 1.5rem; font-size: .8125rem; line-height: 1.5; color: rgba(255,255,255,.75); }
.tp-level__perks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--tp-gold); border-bottom: 2px solid var(--tp-gold); transform: rotate(-45deg); }

/* ─── Cómo sumo puntos ───────────────────────────── */
.tp-earn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tp-earn__card { background: #fff; border: 1px solid var(--tp-line); border-radius: 12px; padding: 1.75rem 1.5rem; }
.tp-earn__icon { display: inline-flex; color: var(--tp-gold-dark); margin-bottom: .875rem; }
.tp-earn__icon svg { width: 28px; height: 28px; }
.tp-earn__title { font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tp-gold-dark); margin-bottom: .75rem; }
.tp-earn__card ul { list-style: none; }
.tp-earn__card li { display: flex; justify-content: space-between; gap: .75rem; font-size: .875rem; color: var(--tp-text); padding: .55rem 0; border-bottom: 1px solid var(--tp-line); }
.tp-earn__card li:last-child { border-bottom: none; }
.tp-earn__card strong { color: var(--tp-gold-dark); font-weight: 700; white-space: nowrap; }
.tp-note { text-align: center; font-size: .8125rem; color: var(--tp-muted); margin-top: 1.75rem; }

/* ─── Beneficios ─────────────────────────────────── */
.tp-benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.tp-benefit { background: var(--tp-dark); border-radius: 12px; padding: 2rem 1.25rem; text-align: center; transition: transform .2s ease; }
.tp-benefit:hover { transform: translateY(-3px); }
.tp-benefit__icon { display: inline-flex; color: var(--tp-gold); margin-bottom: 1rem; }
.tp-benefit__icon svg { width: 32px; height: 32px; }
.tp-benefit p { font-size: .8125rem; line-height: 1.6; color: rgba(255,255,255,.72); }

/* ─── Preguntas frecuentes ───────────────────────── */
.tp-faq { display: grid; gap: .75rem; }
.tp-faq details { background: #fff; border: 1px solid var(--tp-line); border-radius: 10px; transition: border-color .2s ease; }
.tp-faq details[open] { border-color: var(--tp-gold); }
.tp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 1.25rem; font-weight: 600; font-size: .9375rem; color: var(--tp-ink); }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--tp-gold-dark); transition: transform .2s ease; }
.tp-faq details[open] summary::after { transform: rotate(45deg); }
.tp-faq details p { padding: 0 1.25rem 1.25rem; font-size: .875rem; line-height: 1.7; color: var(--tp-muted); }
.tp-faq a { color: var(--tp-gold-dark); font-weight: 600; }

/* ─── CTA ────────────────────────────────────────── */
.tp-cta { background: linear-gradient(135deg, var(--tp-dark) 55%, #2d1f00 100%); padding: 5rem 1.5rem; text-align: center; color: #fff; }
.tp-cta__title { font-family: var(--tp-display); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .875rem; text-wrap: balance; }
.tp-cta__sub { font-size: .9375rem; color: rgba(255,255,255,.62); margin-bottom: 2.25rem; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tp-earn { grid-template-columns: repeat(2, 1fr); }
    .tp-benefits { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .tp-section { padding: 3.5rem 0; }
    .tp-hero { grid-template-columns: 1fr; min-height: 0; }
    .tp-hero__media { order: -1; height: 220px; }
    .tp-hero__media::before { background: linear-gradient(0deg, var(--tp-dark) 0%, rgba(17,17,17,0) 40%); }
    .tp-hero__text { padding: 2rem 1.5rem 3rem; }
    .tp-steps, .tp-levels { grid-template-columns: 1fr; }
    .tp-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .tp-earn, .tp-benefits { grid-template-columns: 1fr; }
    .tp-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-btn, .tp-step, .tp-level, .tp-benefit { transition: none; }
    .tp-btn:hover, .tp-step:hover, .tp-level:hover, .tp-benefit:hover { transform: none; }
}
