/* beam.css · Web de Beam (the-beam.app)
   Móvil primero. Colores y tipografía: docs/MARCA.md. Sin degradados ni sombras de color. */

/* --- Poppins alojada en el servidor (OFL, ver ../fonts/OFL.txt) --------------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-latin-700.woff2') format('woff2');
}

/* --- Variables -------------------------------------------------------------- */
:root {
  --coral: #FF4B3A;
  --coral-hover: #FF6B5A;
  --night-900: #0E0E10;
  --night-800: #1C1C20;
  --border: #2A2A30;
  --ink-100: #F5F5F5;
  --ink-400: #96969B;
  --white: #FFFFFF;

  /* Colores funcionales (los de la app, constants/Colors.ts): solo para estados,
     nunca como color de marca ni para texto pequeño. Ver docs/MARCA.md. */
  --success: #4CAF50;
  --error: #F44336;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --gutter: 24px;
  --radius-card: 36px;
  --radius-field: 16px;
  --radius-pill: 9999px;
  --section-y: 56px;
}

@media (min-width: 768px) {
  :root { --section-y: 88px; }
}

/* --- Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night-900);
  color: var(--ink-100);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0; }

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-hover); }
p a, li a { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--ink-100);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  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;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--ink-100);
  color: var(--night-900);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: 16px; color: var(--night-900); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--surface { background: var(--night-800); }
.section--coral { background: var(--coral); }

.accent { color: var(--coral); }
.muted { color: var(--ink-400); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--ink-400);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .eyebrow { font-size: 16px; }
}

.h2 { font-size: 30px; line-height: 1.05; }
@media (min-width: 768px) {
  .h2 { font-size: 48px; }
}

/* --- Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  .btn { font-size: 17px; padding: 16px 28px; }
}
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
@media (min-width: 768px) {
  .btn--sm { padding: 12px 22px; font-size: 15px; }
}

/* Texto oscuro sobre coral, como en el mockup aprobado (contraste 5,8:1). */
.btn--primary { background: var(--coral); color: var(--night-900); }
.btn--primary:hover { background: var(--coral-hover); color: var(--night-900); }

.btn--secondary { background: var(--night-800); color: var(--ink-100); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--ink-400); color: var(--ink-100); }

.btn--dark { background: var(--night-900); color: var(--ink-100); }
.btn--dark:hover { background: var(--night-800); color: var(--ink-100); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-block; font-weight: 700; font-size: 16px; }

.link-button {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
}

/* --- Cabecera --------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-100); }
.logo:hover { color: var(--ink-100); }
.logo img { width: 36px; height: 36px; }
.logo__text { font-weight: 700; font-size: 26px; line-height: 1; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--night-800);
  color: var(--ink-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.nav__link {
  color: var(--ink-100);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--coral); }

/* Móvil con JS: menú plegable. Sin JS, el menú se ve siempre. */
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 8px;
  }
  .js .nav.is-open { display: flex; }
  .js .nav__link {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }
  .js .nav .btn { margin-top: 16px; align-self: flex-start; }
}

/* --- Pie -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 64px;
}
.site-footer__copy { color: var(--ink-400); font-size: 14px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer__nav a,
.site-footer__nav .link-button { color: var(--ink-400); font-size: 14px; }
.site-footer__nav a:hover,
.site-footer__nav .link-button:hover { color: var(--ink-100); }

/* --- Banner de cookies ------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 50;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: var(--night-800);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.cookie-banner[hidden] { display: none; }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 520px; }
}
.cookie-banner__inner { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cookie-banner__title { font-size: 19px; }
.cookie-banner__text { font-size: 14px; line-height: 1.55; color: var(--ink-100); }
.cookie-banner__settings fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn { flex: 1 1 auto; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--coral);
}
.check input:disabled { cursor: not-allowed; }

/* --- Portada ---------------------------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 56px;
}
@media (min-width: 768px) {
  .hero { gap: 56px; padding-top: 88px; padding-bottom: 72px; }
}
.hero__text { flex: 999 1 520px; min-width: 0; }
.hero__title { font-size: clamp(40px, 7vw, 96px); line-height: 1; }
.hero__lead {
  margin-top: 24px;
  max-width: 560px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
}
@media (min-width: 768px) {
  .hero__lead { margin-top: 28px; font-size: 22px; }
}
.hero__text .btn-row { margin-top: 32px; }
@media (min-width: 768px) {
  .hero__text .btn-row { margin-top: 40px; }
}
.hero__text .link-arrow { margin-top: 24px; }
.hero__media { flex: 1 1 280px; display: flex; justify-content: center; }
.hero__media img { width: 100%; max-width: 340px; }

/* Descarga (/descargar-app/ y /descargar-app-web/ en ordenador): QR sobre fondo claro para que se lea bien. */
.download__qr {
  flex: 1 1 240px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.download__qr img {
  width: 100%;
  max-width: 232px;
  height: auto;
  border-radius: 16px;
}
.download__qr figcaption { color: var(--ink-400); font-size: 14px; text-align: center; }

.cities { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cities__list {
  list-style: none;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
@media (min-width: 768px) {
  .cities__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 28px; padding-bottom: 28px; }
}
.cities__list li { color: var(--coral); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.cities__list a { color: var(--coral); text-decoration: none; }
.cities__list a:hover { color: var(--coral-hover); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) {
  .cities__list li { font-size: 28px; }
}

.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
@media (min-width: 768px) {
  .steps { margin-top: 40px; }
}
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { color: var(--coral); font-weight: 700; font-size: 56px; line-height: 1; }
.step__title { font-size: 22px; }
@media (min-width: 768px) {
  .step__title { font-size: 26px; }
}
.step__text { color: var(--ink-400); font-size: 16px; line-height: 1.55; }
@media (min-width: 768px) {
  .step__text { font-size: 17px; }
}

.cta-split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: center;
  justify-content: space-between;
}
.cta-split__text { flex: 999 1 520px; min-width: 0; }
.cta-split__title { font-size: 32px; }
@media (min-width: 768px) {
  .cta-split__title { font-size: 44px; }
}
.cta-split__lead { margin-top: 18px; max-width: 600px; font-size: 17px; line-height: 1.55; }
@media (min-width: 768px) {
  .cta-split__lead { font-size: 18px; }
}

.download__title {
  color: var(--white);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
}
.download__title .dark { color: var(--night-900); }
.section--coral :focus-visible { outline-color: var(--night-900); }

/* --- Páginas interiores ----------------------------------------------------- */
.page-hero { padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 768px) {
  .page-hero { padding-top: 80px; padding-bottom: 48px; }
}
.page-hero__title { font-size: clamp(38px, 6vw, 84px); line-height: 1; }
.page-hero__lead { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 1.5; }
@media (min-width: 768px) {
  .page-hero__lead { font-size: 20px; }
}
.page-hero__note { margin-top: 12px; color: var(--ink-400); font-size: 16px; }
.section-tight { padding-bottom: 56px; }
@media (min-width: 768px) {
  .section-tight { padding-bottom: 72px; }
}

.prose { margin-top: 24px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; }
@media (min-width: 768px) {
  .prose { font-size: 17px; }
}

/* Tarjetas con franja coral (mockup de Colaborar) */
.offer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .offer-grid { gap: 24px; }
}
.card {
  background: var(--night-800);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .card { padding: 32px; }
}
.card--accent { position: relative; overflow: hidden; padding-left: 38px; }
.card--accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--coral); }
@media (min-width: 768px) {
  .card--accent { padding-left: 42px; }
}
.card__figure { color: var(--coral); font-weight: 700; font-size: 40px; line-height: 1; }
@media (min-width: 768px) {
  .card__figure { font-size: 44px; }
}
.card__title { font-size: 22px; }
.card__text { color: var(--ink-400); font-size: 16px; line-height: 1.55; }

.numbered {
  margin: 24px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
}
.numbered li::marker { color: var(--coral); font-weight: 700; }

/* --- Formularios ------------------------------------------------------------ */
.form-layout { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.form-layout__aside { flex: 1 1 320px; min-width: 0; }
.form-layout__form { flex: 999 1 480px; min-width: 0; }
.form-layout__title { font-size: 30px; }
@media (min-width: 768px) {
  .form-layout__title { font-size: 40px; }
}

.form__heading { font-size: 24px; margin-bottom: 24px; }
@media (min-width: 768px) {
  .form__heading { font-size: 28px; }
}

.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form--narrow { max-width: 760px; }
.form__full { grid-column: 1 / -1; }
.form__submit { grid-column: 1 / -1; justify-self: start; }
.form__note { color: var(--ink-400); font-size: 14px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-100);
}
.field__optional { color: var(--ink-400); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  background: var(--night-800);
  /* Borde --ink-400: 5,8:1 sobre las tarjetas (WCAG 1.4.11 pide 3:1 para identificar el campo). */
  border: 1px solid var(--ink-400);
  border-radius: var(--radius-field);
  padding: 14px 16px;
  color: var(--ink-100);
  font: inherit;
  font-weight: 400;
  font-size: 16px; /* 16 px: evita el zoom automático en iPhone */
}
.section--surface .field input,
.section--surface .field textarea { background: var(--night-900); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover,
.field textarea:hover { border-color: var(--ink-100); }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--ink-100); }

.form .check { font-size: 14px; color: var(--ink-400); }

/* Campo trampa antispam: fuera de la vista y del lector de pantalla. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Mensajes tras enviar (?ok=1#form-ok / ?error=1#form-error). Sin JS: :target. */
.form-status {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-field);
  border: 1px solid var(--border);
  background: var(--night-800);
  font-size: 15px;
  font-weight: 500;
}
.form-status:target { display: block; }
.form-status--ok { border-left: 6px solid var(--success); }
.form-status--error { border: 2px solid var(--error); }

/* --- FAQ -------------------------------------------------------------------- */
.container--narrow { max-width: 928px; } /* 880 px de contenido + márgenes */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--night-800);
  border: 1px solid var(--border);
  color: var(--ink-100);
  font-weight: 500;
  font-size: 15px;
}
.chip:hover { border-color: var(--ink-400); color: var(--ink-100); }
.chip[aria-current="page"],
.chip[aria-current="true"] { background: var(--coral); border-color: var(--coral); color: var(--night-900); font-weight: 700; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq {
  background: var(--night-800);
  border-radius: 24px;
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  border-radius: 24px;
}
@media (min-width: 768px) {
  .faq summary { padding: 22px 64px 22px 28px; font-size: 19px; }
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}
.faq[open] summary::after { content: '−'; }
.faq__answer {
  padding: 0 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-400);
  font-size: 16px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .faq__answer { padding: 0 28px 24px; }
}
.faq__answer strong { color: var(--ink-100); }
.faq__answer ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

.faq-contact { margin-top: 32px; color: var(--ink-400); font-size: 16px; }

.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.topic {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 24px;
  background: var(--night-800);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--ink-100);
}
.topic, .topic:hover { text-decoration: none; }
.topic:hover { border-color: var(--coral); color: var(--ink-100); }
.topic__name { font-weight: 700; font-size: 20px; }
.topic__count { color: var(--ink-400); font-size: 14px; }

/* --- Legales ---------------------------------------------------------------- */
.legal { padding-bottom: 72px; }
.legal__title { font-size: clamp(34px, 5vw, 60px); }
.legal__body { margin-top: 32px; max-width: none; font-size: 16px; color: var(--ink-100); }
.legal__body h2 { margin-top: 24px; font-size: 22px; line-height: 1.25; }
.legal__body h3 { margin-top: 12px; font-size: 18px; line-height: 1.3; }
.legal__body h4 { margin-top: 8px; font-size: 16px; }
.legal__body ul,
.legal__body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal__body li > p { margin: 0; }
.legal__body li > ul { margin-top: 6px; }
@media (min-width: 768px) {
  .legal__body h2 { font-size: 26px; margin-top: 32px; }
  .legal__body h3 { font-size: 20px; }
}
.legal__body a { word-break: break-word; }
.link-button--inline { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.link-button--inline:hover { color: var(--coral-hover); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-field); }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.table-wrap th,
.table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap th { background: var(--night-800); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap code { font-size: 13px; color: var(--ink-100); }

/* --- 404 -------------------------------------------------------------------- */
.error-page__code { color: var(--coral); font-size: clamp(72px, 14vw, 160px); line-height: 1; }
.error-page .numbered { margin-top: 0; }
.error-page__stores { margin-top: 24px; }
.error-page__home { margin-top: 32px; color: var(--ink-400); }

/* --- Páginas técnicas y de mensaje ---------------------------------------- */
.tech-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.tech-page img { width: 64px; height: 64px; }
.tech-page__title { font-size: 24px; }
.tech-page__text { color: var(--ink-400); }

.message-page { padding-bottom: 72px; }
.message-page__action { margin-top: 32px; }

/* --- Restablecer contraseña (marcado de WordPress, estilos nuevos) ---------- */
.reset-page { padding-top: 48px; padding-bottom: 72px; }
#password-reset-container {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 22px;
  background: var(--night-800);
  border: 1px solid var(--border);
  border-radius: 24px;
}
@media (min-width: 480px) {
  #password-reset-container { padding: 36px 32px; }
}
#password-reset-container h1 { margin: 0 0 24px; font-size: 26px; }
#password-reset-container .input-group { margin-bottom: 18px; }
#password-reset-container label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 15px; }
#password-reset-container .password-input-container { position: relative; }
#password-reset-container input {
  width: 100%;
  padding: 14px 52px 14px 16px;
  background: var(--night-900);
  border: 1px solid var(--ink-400); /* 3:1 mínimo para el contorno del campo */
  border-radius: var(--radius-field);
  color: var(--ink-100);
  font: inherit;
  font-size: 16px;
}
#password-reset-container input:focus-visible { outline-offset: 1px; border-color: var(--ink-100); }
#password-reset-container .eye-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 18px;
  cursor: pointer;
}
#password-reset-container .password-requirements { margin-top: 10px; font-size: 14px; color: var(--ink-400); }
#password-reset-container .requirement { margin: 4px 0; padding-left: 10px; border-left: 3px solid transparent; }
/* Estado de cada requisito (clases que pone el script de WordPress): el color funcional va en
   la barra de la izquierda y el texto sigue claro (MARCA.md: nada de texto pequeño en --error). */
#password-reset-container .requirement.valid { color: var(--ink-100); border-left-color: var(--success); }
#password-reset-container .requirement.valid::after { content: ' ✓'; }
#password-reset-container .requirement.invalid { color: var(--ink-100); border-left-color: var(--error); }
#password-reset-container #submit-button {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--night-900);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
#password-reset-container #submit-button:hover { background: var(--coral-hover); }
#password-reset-container #submit-button:disabled { opacity: 0.6; cursor: not-allowed; }
#password-reset-container .message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-field);
  background: var(--night-900);
  font-weight: 500;
  font-size: 15px;
  text-align: center;
}
#password-reset-container .message.success { border: 1px solid var(--ink-400); color: var(--ink-100); }
#password-reset-container .message.error { border: 2px solid var(--error); color: var(--ink-100); }

/* --- Archivo de sorteos ----------------------------------------------------- */
.sorteo { padding-bottom: 72px; }
.sorteo__body { margin-top: 0; max-width: none; }
.sorteo__title { font-size: clamp(32px, 5vw, 56px); }
.sorteo__body h2 { margin-top: 24px; font-size: 26px; line-height: 1.2; }
.sorteo__logo { width: 100%; max-width: 360px; height: auto; margin-bottom: 8px; }
.sorteo__captura { width: 100%; max-width: 260px; height: auto; margin: 8px 0; }
.sorteo__stores { margin: 4px 0 8px; }
.sorteo__bases { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.sorteo__bases h2:first-child { margin-top: 0; }
.sorteo__bases h3 { font-size: 18px; margin-top: 12px; }

/* URL largas como texto de enlace (p. ej. Sortea2): se parten en móvil en vez de desbordar. */
.prose a,
.faq__answer a { overflow-wrap: anywhere; }

/* --- Eventos (fase 5): /eventos/ y /event/<id> -------------------------------- */
.events-hero { padding-top: 40px; padding-bottom: 8px; }
@media (min-width: 768px) {
  .events-hero { padding-top: 64px; }
}
.events-hero__title { font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.events-hero .chips { margin-top: 28px; }
.events-hero .chips--days { margin-top: 14px; }
.chip { white-space: nowrap; }

/* Ciudades: una fila con desplazamiento horizontal en móvil; en ordenador, varias filas. */
.chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: 2px var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll .chip { flex: none; }
@media (min-width: 900px) {
  .chips--scroll { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
}

.events-list { padding-top: 32px; padding-bottom: 56px; }
.event-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .event-grid { gap: 24px; }
}
.event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--night-800);
  border: 1px solid var(--night-800);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--ink-100);
}
.event-card, .event-card:hover { text-decoration: none; }
.event-card:hover { color: var(--ink-100); border-color: var(--border); }
.event-card:hover .event-card__title { color: var(--coral); }
.event-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--border); }
.event-card__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 26px 34px;
}
.event-card__body::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 26px; width: 6px; border-radius: 0 6px 6px 0; background: var(--coral); }
.event-card__title { font-weight: 700; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.event-card__sub { font-weight: 500; font-size: 15px; color: var(--ink-100); }
.event-card__when { font-weight: 500; font-size: 17px; color: var(--ink-400); }
.event-card__city { font-size: 14px; color: var(--ink-400); }
.event-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink-100);
}
.event-card__who { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--ink-400); }

.events-notice {
  margin-top: 28px;
  padding: 28px;
  background: var(--night-800);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
}
.events-notice .chips { margin-top: 0; }
.events-list .events-notice { margin-top: 0; }

.events-cta-wrap { padding-bottom: 72px; }
.events-cta {
  background: var(--night-800);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .events-cta { padding: 40px; }
}
.events-cta__text { flex: 999 1 420px; min-width: 0; }
.events-cta__title { font-size: 28px; }
@media (min-width: 768px) {
  .events-cta__title { font-size: 32px; }
}
.events-cta__lead { margin-top: 10px; font-size: 17px; color: var(--ink-400); }

/* Tarjetas compactas en móvil: cartel pequeño a la izquierda y texto a la derecha. */
@media (max-width: 599px) {
  .event-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .event-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
  }
  .event-card__img { flex: none; width: 96px; height: auto; border-radius: 12px; }
  .event-card__body { padding: 0; gap: 3px; min-width: 0; }
  .event-card__body::before { display: none; }
  .event-card__title { font-size: 18px; }
  .event-card__sub { font-size: 14px; }
  .event-card__when { font-size: 15px; }
  .event-card__city { font-size: 13px; }
  .event-card__tags { margin-top: 4px; }
  .tag { font-size: 12px; padding: 2px 8px; }
  .event-card__who { display: none; }
}

/* Solo con JS (p. ej. «Compartir»). */
html:not(.js) .js-only { display: none; }

/* --- Ficha de evento --------------------------------------------------------- */
.event-back { padding-top: 32px; padding-bottom: 20px; }
@media (min-width: 768px) {
  .event-back { padding-top: 48px; padding-bottom: 24px; }
}
.event-back__link { font-weight: 500; font-size: 15px; color: var(--ink-400); }
.event-back__link:hover { color: var(--ink-100); }

.event-page { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-bottom: 72px; }
.event-page__media { flex: 1 1 420px; min-width: 0; }
.event-page__poster { display: block; width: 100%; height: auto; border-radius: var(--radius-card); background: var(--night-800); }
@media (min-width: 900px) {
  .event-page__media { position: sticky; top: 24px; align-self: flex-start; }
}
.event-page__info { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.event-page__city { margin: 0; }
.event-page__title { font-size: clamp(40px, 6vw, 84px); line-height: 1; overflow-wrap: anywhere; }
.event-page__venue { font-weight: 500; font-size: 20px; }
.event-page__date { font-weight: 500; font-size: 22px; }
@media (min-width: 768px) {
  .event-page__date { font-size: 24px; }
}
.event-page__label { margin-bottom: 6px; color: var(--ink-400); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.event-page__lineup p { font-weight: 700; font-size: 20px; line-height: 1.35; }
.event-page__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.event-page__actions { margin-top: 4px; }
.event-page__share-ok { color: var(--ink-400); font-size: 14px; }
.event-page__maps { align-self: flex-start; }
.event-page__desc { color: var(--ink-400); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .event-page__desc { font-size: 17px; }
}
.event-past {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 6px solid var(--coral);
  border-radius: var(--radius-field);
  background: var(--night-800);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.who-locked {
  position: relative;
  margin-top: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.who-locked__title { margin-bottom: 18px; font-size: 26px; }
.who-locked__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; filter: blur(2px); opacity: 0.9; }
.who-locked__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 24px; background: var(--night-800); }
.who-locked__avatar { flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--border); }
.who-locked__bar { height: 12px; border-radius: var(--radius-pill); background: var(--border); }
.who-locked__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 70px;
  background: rgba(14, 14, 16, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: var(--ink-100);
}
.who-locked__text { font-weight: 700; font-size: 20px; line-height: 1.25; }
@media (min-width: 768px) {
  .who-locked__text { font-size: 22px; }
}

/* Aviso legal de Beam publisher: plegado al final de la ficha. */
.event-legal { margin-top: 4px; color: var(--ink-400); font-size: 14px; line-height: 1.6; }
.event-legal summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; color: var(--ink-400); list-style: none; }
.event-legal summary::-webkit-details-marker { display: none; }
.event-legal summary::after { content: '+'; margin-left: 8px; font-weight: 700; }
.event-legal[open] summary::after { content: '−'; }
.event-legal summary:hover { color: var(--ink-100); }
.event-legal p { margin-top: 4px; overflow-wrap: anywhere; }
.event-legal__note { color: var(--ink-400); font-size: 14px; line-height: 1.6; }

/* --- Perfiles (fase 7): /profile/<id> ---------------------------------------- */
/* Organizador: sin portada ni franja. Foto redonda (o símbolo) arriba y todo centrado, con los
   mismos márgenes y tamaños que «Te están esperando en Beam»; después, los próximos eventos. */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 64px;
  padding-bottom: 56px;
  text-align: center;
}
.profile-avatar {
  flex: none;
  width: 160px;
  height: 160px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--night-800);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar img.profile-avatar__logo { width: 72px; height: 72px; object-fit: contain; }
.profile-head__text { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.profile-head__place { margin: 0; }
.profile-head__name { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; overflow-wrap: anywhere; }
.profile-verified { display: inline-flex; vertical-align: middle; margin-left: 10px; color: var(--coral); }
.profile-head__desc { max-width: 640px; color: var(--ink-400); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .profile-head__desc { font-size: 17px; }
}
.profile-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.profile-head__actions { justify-content: center; margin-top: 8px; }
.profile-events { padding-bottom: 72px; }
.profile-events__title { margin-bottom: 24px; }

/* Usuario, privado o inexistente: «Te están esperando en Beam», sin datos del perfil. */
.join-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 64px;
  padding-bottom: 96px;
  text-align: center;
}
.join-page__avatar {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--night-800);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.join-page__logo { width: 72px; height: 72px; }
.join-page__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.join-page__title { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; }
.join-page__lead { max-width: 560px; color: var(--ink-400); font-size: 18px; line-height: 1.5; }
.join-page__actions { justify-content: center; margin-top: 8px; }

/* Ficha de evento: enlace al perfil del organizador. */
.event-page__org { color: var(--ink-100); text-decoration: underline; text-underline-offset: 4px; }
.event-page__org:hover { color: var(--coral-hover); }
