:root {
  /* LaRolita brand palette — docs/design-system.md / Estilo_tipoletra_colores.jpeg.
     Exactly these 6 colors. No tints, no color-mix, no new hues — ever. */
  --color-plum: #310834;
  --color-pink: #F82E7E;
  --color-yellow: #E7BA2B;
  --color-blue: #3A6F8F;
  --color-lime: #C3BE35;
  --color-cream: #FAF4EA;

  /* Semantic tokens: each one is a direct alias to one of the 6 colors above.
     Page background is plum; --ink is redefined locally inside .card (see below)
     so text stays readable on both the dark plum page and the light cards. */
  --bg: var(--color-plum);
  --surface: var(--color-cream);
  --ink: var(--color-cream);
  --ink-soft: var(--color-blue);
  --accent: var(--color-pink);
  --accent-soft: var(--color-yellow);
  --plum: var(--color-blue);
  --plum-soft: var(--color-blue);
  --line: var(--color-cream);
  --radius: 16px;
  --confirmado-bg: var(--color-lime);
  --confirmado-ink: var(--color-plum);
  --espera-bg: var(--color-yellow);
  --espera-ink: var(--color-plum);
  --on-color: var(--color-cream);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.4;
}

h1 {
  font-family: 'Scripter', 'Amatic SC', cursive;
  margin: 0;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.5px;
}

h2, h3 {
  font-family: 'Bodoni Moda', Georgia, serif;
  margin: 0;
  font-weight: 600;
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

input, select, textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px) {
  .container {
    padding: 0 80px;
  }
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-plum);
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .navbar {
    padding: 24px 80px;
  }
}

/* Logo «@LAROLITA» del dueño (img/logo-larolita.svg, 2026-11-19). Se pinta con una máscara y el
   color del texto: así un solo archivo sirve en amarillo (eventos), fucsia (.logo--rosa:
   actividades, acceso y Mi espacio, como en el PDF) o ciruela (sobre tarjetas). El texto
   «LaRolita» sigue en el HTML, con tamaño 0, para los lectores de pantalla. */
.logo {
  display: inline-block;
  flex-shrink: 0;
  width: 190px;
  aspect-ratio: 3.232;
  font-size: 0;
  color: var(--color-yellow);
  background-color: currentColor;
  /* El SVG lleva fill-rule="evenodd", como el original: sin él, los huecos de las letras se rellenan. */
  -webkit-mask: url('../img/logo-larolita.svg') center / contain no-repeat;
  mask: url('../img/logo-larolita.svg') center / contain no-repeat;
}

.logo--rosa {
  color: var(--color-pink);
}

.marca-admin .logo {
  width: 130px;
}

/* On light card surfaces (login card, login modal) the logo needs dark text instead */
.card .logo {
  color: var(--color-plum);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  color: var(--color-cream);
  flex-wrap: wrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-pink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-color);
}

.btn-primary:hover {
  background: var(--color-plum);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.navbar .btn-secondary {
  color: var(--color-cream);
  border-color: var(--color-cream);
}

.navbar .btn-secondary:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  border: none;
}

.btn-block {
  width: 100%;
}

/* Same treatment as .selector-cantidad__boton: a disabled button must not look clickable
   (e.g. "Borrar mi cuenta" until the confirmation word is typed). */
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary:disabled:hover {
  background: var(--accent);
}

.btn-secondary:disabled:hover {
  border-color: var(--line);
  color: var(--ink);
}

/* Cards — light blocks on the plum page. Text/border tokens are redefined
   locally so everything inside a card automatically reads dark-on-cream. */
.card {
  --ink: var(--color-plum);
  --line: var(--color-plum);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--color-pink);
  border-radius: var(--radius);
  padding: 28px;
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.badge-evento { background: var(--color-yellow); color: var(--color-plum); }
.badge-actividad { background: var(--color-blue); color: var(--color-cream); }
.badge-confirmado { background: var(--confirmado-bg); color: var(--confirmado-ink); }
.badge-espera { background: var(--espera-bg); color: var(--espera-ink); }
.badge-cancelado { background: var(--color-pink); color: var(--color-cream); }
.badge-finalizado { background: var(--color-blue); color: var(--color-cream); }
.badge-sold-out { background: var(--color-pink); color: var(--color-cream); }

/* Admin list rows (e.g. admin-eventos.html) */
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-row__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.admin-row__main {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Right-hand column of an event row: tickets sold + "Ver invitados" */
.admin-row__ventas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 140px;
  text-align: center;
}

.admin-row__ventas-numero {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.admin-row__ventas-texto {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-plum);
  border-radius: 10px;
  font-size: 15px;
  color: var(--color-plum);
  background: var(--color-cream);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Requisitos de la contraseña nueva, debajo de su campo (texto en js/requisitos-contrasena.js).
   El margen negativo lo acerca al campo: los formularios separan sus hijos con gap. */
.requisitos-contrasena {
  margin: -8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Formulario de eventos del panel: listas de bloques que el admin añade y quita
   (secciones, preguntas frecuentes). */
.nota-formulario {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.lista-repetible {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.lista-repetible__titulo {
  margin: 0;
  font-size: 16px;
}

.lista-repetible__bloques {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}

.bloque-repetible {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bloque-repetible__leyenda {
  padding: 0 6px;
  font-weight: 700;
}

.bloque-repetible__casilla {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.bloque-repetible__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bloque-repetible__acciones .btn {
  padding: 6px 14px;
  font-size: 13px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.form-status {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
}

.form-status--error {
  background: var(--color-pink);
  color: var(--color-cream);
}

.form-status--success {
  background: var(--confirmado-bg);
  color: var(--confirmado-ink);
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.choice-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* Cabecera del panel: el logo con la etiqueta "Admin" al lado, para que se entienda que es la
   zona de administración sin que parezca una pestaña más. Las pestañas (Eventos, Actividades)
   usan los mismos .nav-links que la web pública. */
.marca-admin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49, 8, 52, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Wide modal for tables (e.g. "Ver invitados"). The table container scrolls instead
   of the card, so the table header can stay fixed while scrolling. */
.modal-card--ancho {
  max-width: 1280px;
  overflow: hidden;
}

.tabla-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tabla-scroll > p {
  padding: 16px;
}

.tabla-admin {
  width: 100%;
  min-width: 760px; /* below this the container scrolls sideways instead of squashing columns */
  border-collapse: collapse;
  font-size: 14px;
}

.tabla-admin th,
.tabla-admin td {
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.tabla-admin th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  /* With border-collapse a sticky header loses its border; the inset shadow redraws it. */
  border-bottom: none;
  box-shadow: inset 0 -2px 0 var(--line);
}

.tabla-admin tbody tr:last-child td {
  border-bottom: none;
}

.tabla-admin .col-numero {
  text-align: right;
  white-space: nowrap;
}

.tabla-admin .col-nowrap {
  white-space: nowrap;
}

/* Personal-data consent boxes: sign-up form (login.html, index modal) and activity form (actividad.html) */
.aviso-datos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.aviso-datos p {
  margin: 0;
}

.aviso-datos__titulo {
  font-size: 13px;
  font-weight: 700;
}

.aviso-datos__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.aviso-datos__check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* "Seats freed" notice for people on a waitlist (dashboard.html) */
.aviso-plazas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--color-yellow);
  color: var(--color-plum);
}

.aviso-plazas p {
  margin: 0;
}

/* Signed-in buyer area in the header (js/sesion-usuario.js) */
.cabecera-usuario {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cabecera-usuario__saludo {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cream);
}

/* Text-style button for inline actions ("¿No eres tú? Cambiar de cuenta") */
.enlace-boton {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Ticket quantity stepper (entradas.html) */
.selector-cantidad {
  display: flex;
  align-items: center;
  gap: 14px;
}

.selector-cantidad__boton {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--color-plum);
  background: var(--color-cream);
  color: var(--color-plum);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.selector-cantidad__boton:hover:not(:disabled) {
  background: var(--color-plum);
  color: var(--color-cream);
}

.selector-cantidad__boton:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.selector-cantidad__valor {
  min-width: 32px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
}

/* Layout helpers */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1050px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 950px) {
  .detail-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 800px) {
  .pay-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.event-card__image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.event-card__image--evento {
  background: var(--color-yellow);
  color: var(--color-plum);
}

.event-card__image--actividad {
  background: var(--color-blue);
  color: var(--color-cream);
}

.event-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.inscription-row__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--accent-soft);
}

.thumb--muted {
  background: var(--color-cream);
  border: 2px solid var(--color-plum);
}

.priority-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.priority-rank {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-indicator {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-dot--active {
  background: var(--accent);
  color: var(--on-color);
}

.step-dot--pending {
  background: var(--color-cream);
  color: var(--color-plum);
  border: 1px solid var(--color-plum);
}

.step-line {
  width: 40px;
  height: 1px;
  background: var(--line);
}

.progress-track {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

.footer {
  background: var(--color-plum);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-cream);
}

.footer a:hover {
  color: var(--color-yellow);
}

@media (min-width: 900px) {
  .footer { padding: 28px 80px; }
}

.tabs-pill {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.tabs-pill span {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  font-size: 14px;
}

.tabs-pill span.active {
  background: var(--accent);
  color: var(--on-color);
  font-weight: 600;
}

.tabs-pill span:not(.active) {
  color: var(--ink-soft);
}

/* Pill tabs made of buttons (dashboard.html: "Mis entradas" / "Mi perfil"). Placed after the
   base .tabs-pill rules so the modifiers win by source order. */
.tabs-pill button {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.tabs-pill button.active {
  background: var(--accent);
  color: var(--on-color);
  font-weight: 600;
}

.tabs-pill--ajustada {
  display: inline-flex;
  align-self: flex-start;
}

.tabs-pill--ajustada button {
  padding: 10px 22px;
  white-space: nowrap;
}

/* En móvil las tres pestañas de Mi espacio no caben con su relleno: ocupan todo el ancho. */
@media (max-width: 480px) {
  .tabs-pill--ajustada {
    display: flex;
    align-self: stretch;
  }

  .tabs-pill--ajustada button {
    padding: 10px 6px;
    font-size: 13px;
  }
}

.panel-espacio {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* .panel-espacio sets display, which would otherwise override the hidden attribute. */
.panel-espacio[hidden] {
  display: none;
}

/* Mi perfil: one row per account field with an edit (pencil) button at the end. Clicking it
   swaps the row's view for its form (js/mi-perfil.js). */
.perfil-fila {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--color-blue);
}

.perfil-fila:first-child {
  padding-top: 0;
  border-top: 0;
}

.perfil-fila:last-child {
  padding-bottom: 0;
}

.perfil-fila__vista {
  display: flex;
  align-items: center;
  gap: 16px;
}

.perfil-fila__dato {
  flex: 1;
  min-width: 0;
}

.perfil-fila__etiqueta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.perfil-fila__valor {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.perfil-fila__nota {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.perfil-fila__formulario {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perfil-fila__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The row parts set display, which would otherwise override the hidden attribute. */
.perfil-fila [hidden] {
  display: none;
}

.perfil-fila .form-status {
  overflow-wrap: anywhere;
}

/* Round icon-only button (e.g. the pencil in Mi perfil). Always give it an aria-label. */
.boton-icono {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.boton-icono:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.boton-icono:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.boton-icono svg {
  width: 18px;
  height: 18px;
}

/* Text only for screen readers. */
.solo-lector {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.disclaimer {
  background: var(--accent-soft);
  border-color: transparent;
  padding: 16px 20px;
}

.disclaimer p:first-child {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.disclaimer p:last-child {
  font-size: 13px;
  color: var(--ink);
  margin: 4px 0 0;
}

/* Legal pages (aviso-legal, privacidad, terminos, cookies): long text read on the plum page. */
.texto-legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 80px;
  font-size: 15px;
  line-height: 1.65;
}

.texto-legal h1 {
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.1;
}

.texto-legal h2 {
  font-size: 21px;
  margin: 40px 0 12px;
}

.texto-legal h3 {
  font-size: 17px;
  margin: 26px 0 8px;
}

.texto-legal p,
.texto-legal ul,
.texto-legal ol {
  margin: 0 0 14px;
}

.texto-legal ul,
.texto-legal ol {
  padding-left: 22px;
}

.texto-legal li {
  margin-bottom: 6px;
}

.texto-legal a {
  text-decoration: underline;
}

.texto-legal a:hover {
  color: var(--color-yellow);
}

.texto-legal .texto-legal__fecha {
  font-size: 13px;
  color: var(--color-yellow);
  margin-top: 10px;
}

/* Long words (emails, URLs) must wrap instead of widening the page on phones. */
.texto-legal,
.footer {
  overflow-wrap: anywhere;
}

.footer__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__enlaces a {
  text-decoration: underline;
}

/* Small legal notes next to a price or a payment button. */
.nota-legal {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.nota-legal a {
  text-decoration: underline;
}

/* ==========================================================================
   Rediseño (docs/disenos, 2026-11-18): piezas comunes de las páginas públicas.
   evento.html tiene las suyas en css/evento.css.
   ========================================================================== */

/* Cabecera: enlaces a la izquierda, logo en el centro y cuenta a la derecha, sea cual sea el
   orden en el HTML. Solo en la web pública: el panel lleva .marca-admin y no cambia. */
.navbar:not(:has(.marca-admin)) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 32px;
}

.navbar:not(:has(.marca-admin)) .nav-links {
  grid-column: 1;
  grid-row: 1;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navbar:not(:has(.marca-admin)) .logo {
  grid-column: 2;
  grid-row: 1;
}

.navbar:not(:has(.marca-admin)) .cabecera-usuario {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.navbar:not(:has(.marca-admin)) .cabecera-usuario .btn {
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .navbar:not(:has(.marca-admin)) {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }
  .navbar:not(:has(.marca-admin)) .logo { grid-column: 1; width: 130px; }
  .navbar:not(:has(.marca-admin)) .cabecera-usuario { grid-column: 2; }
  .navbar:not(:has(.marca-admin)) .nav-links { grid-column: 1 / -1; grid-row: 2; }
}

/* Fondos de leopardo: manchas ciruela muy suaves sobre el color de la sección, como en el diseño.
   leopardo.png es el patrón oficial del PDF (transparente). No empalma al repetirse, así que, como
   en el PDF, va una sola imagen que cubre toda la sección (cover): sin cortes. El contenido queda
   por encima. */
.fondo-leopardo {
  position: relative;
  isolation: isolate;
}

.fondo-leopardo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/decoracion/leopardo.png') center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.fondo-leopardo--amarillo { background-color: var(--color-yellow); }
.fondo-leopardo--rosa { background-color: var(--color-pink); }

/* Sobre amarillo o rosa, el texto suelto va en ciruela (el crema no se leería). */
.fondo-leopardo .step-indicator,
.fondo-leopardo .enlace-volver { color: var(--color-plum); }
.fondo-leopardo .step-line { background: var(--color-plum); }

.enlace-volver {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.enlace-volver:hover { text-decoration: underline; }

/* Pasos de la compra: el activo en azul, como en el diseño. */
.fondo-leopardo .step-dot--active { background: var(--color-blue); color: var(--color-cream); }
.fondo-leopardo .step-indicator span:not(.step-dot):not(.step-line) { font-weight: 600; }

/* Tarjeta de compra (entradas.html, pago.html): estrecha y centrada. */
.tarjeta-compra {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.tarjeta-compra__titulo {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue);
}

.tarjeta-compra__separador {
  border-top: 1px solid var(--color-yellow);
  padding-top: 20px;
}

.tarjeta-compra__total {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-pink);
}

/* Resumen del evento en la compra (crearResumenEvento, js/compra-entradas.js). */
.resumen-evento {
  display: flex;
  gap: 16px;
  align-items: center;
}

.resumen-evento__foto {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.resumen-evento__nombre {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-blue);
}

.resumen-evento__subtitulo {
  margin: 2px 0 6px;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-pink);
}

.resumen-evento__dato {
  margin: 0;
  font-size: 14px;
  color: var(--color-plum);
}

/* Botones de color del diseño (texto crema: contraste comprobado sobre azul y ciruela). */
.btn-azul {
  background: var(--color-blue);
  color: var(--color-cream);
}

.btn-azul:hover { background: var(--color-plum); }

/* Títulos grandes del diseño con la tipografía de títulos (Amatic SC). */
.titulo-amatic {
  margin: 0;
  font-family: 'Scripter', 'Amatic SC', cursive;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.titulo-amatic--mediano { font-size: clamp(36px, 5vw, 52px); }
.titulo-amatic--azul { color: var(--color-blue); }
.titulo-amatic--rosa { color: var(--color-pink); }
.titulo-amatic--amarillo { color: var(--color-yellow); }
.titulo-amatic--crema { color: var(--color-cream); }

/* Frase destacada en lima (Bodoni), como las del evento (aclaración del usuario del 2026-11-19). */
.texto-destacado {
  margin: 0;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-lime);
  white-space: pre-line;
}

/* --- Página de la actividad (actividad.html) --- */

.act-presentacion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.act-texto {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
}

.act-galeria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  max-width: 920px;
  padding-bottom: 64px;
}

.act-galeria__foto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.act-galeria__foto img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.act-galeria__foto figcaption {
  order: -1;
  font-family: 'Scripter', 'Amatic SC', cursive;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-yellow);
}

/* La del medio, más arriba y con la frase debajo en rosa, como en el diseño. */
.act-galeria__foto:nth-child(2) { margin-top: -24px; }
.act-galeria__foto:nth-child(2) figcaption { order: 1; color: var(--color-pink); }

@media (max-width: 700px) {
  .act-galeria { grid-template-columns: 1fr; max-width: 420px; }
  .act-galeria__foto:nth-child(2) { margin-top: 0; }
}

.act-inscripcion {
  padding: 56px 0 80px;
}

/* Botón lima del diseño: texto ciruela (el crema no se lee sobre lima). */
.btn-lima {
  background: var(--color-lime);
  color: var(--color-plum);
}

.btn-lima:hover { background: var(--color-plum); color: var(--color-cream); }

/* --- Acceso: login.html y restablecer-contrasena.html --- */

.acceso {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 48px 16px;
}

.acceso__tarjeta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}

.acceso__titular {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

/* Etiquetas en mayúsculas pequeñas, como en el diseño (lo escrito en los campos, no). */
.pagina-acceso .field {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pagina-acceso .field input { text-transform: none; letter-spacing: normal; }

/* Botón amarillo del diseño: texto ciruela (el crema no se lee sobre amarillo). */
.btn-amarillo {
  background: var(--color-yellow);
  color: var(--color-plum);
}

.btn-amarillo:hover { background: var(--color-plum); color: var(--color-cream); }

/* --- Mi espacio (dashboard.html) --- */

/* Las franjas de leopardo van de lado a lado aunque estén dentro de .container. */
.espacio { overflow-x: clip; }

.panel-espacio--franja {
  margin-inline: calc(50% - 50vw);
  padding: 48px calc(50vw - 50%) 72px;
  color: var(--color-plum);
}

/* Pestañas: «Mis entradas» activa en amarillo y «Mis actividades» en rosa, como en el diseño. */
.espacio .tabs-pill { max-width: 360px; border-color: var(--color-cream); }
.espacio .tabs-pill button { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.espacio .tabs-pill button[data-pestana="entradas"].active { background: var(--color-yellow); color: var(--color-plum); }
.espacio .tabs-pill button[data-pestana="actividades"].active { background: var(--color-pink); color: var(--color-cream); }

/* Mi perfil no lleva franja: deja el hueco de abajo que antes daba el contenedor. */
#panel-perfil { padding-bottom: 80px; }

/* Títulos crema sobre amarillo no se leen (1,7 a 1): ahí van en ciruela. Sobre rosa, el crema sí. */
.fondo-leopardo--amarillo .titulo-amatic--crema { color: var(--color-plum); }

/* --- Listados de eventos y actividades (docs/disenos/paginas_principales.png) --- */

/* Leopardo «en zoom», como en la referencia: el 64 % central del patrón, manchas más grandes. */
.fondo-leopardo--grande::before { background-image: url('../img/decoracion/leopardo-grande.png'); }

.tarjeta-listado {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--color-yellow);
  border-radius: 14px;
  background: var(--color-cream);
  color: var(--color-plum);
}

.tarjeta-listado--amarillo { border-color: var(--color-yellow); }
.tarjeta-listado--rosa { border-color: var(--color-pink); }

.tarjeta-listado__foto {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.tarjeta-listado__cuerpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px 18px;
}

.tarjeta-listado__etiqueta { align-self: flex-start; margin-bottom: 4px; }

.tarjeta-listado__nombre {
  margin: 0;
  font-family: 'Scripter', 'Amatic SC', cursive;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-blue);
  -webkit-text-stroke: 0.6px currentColor;
}

.tarjeta-listado__subtitulo {
  margin: 0 0 4px;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.tarjeta-listado__dato { margin: 0; font-size: 14px; }

.tarjeta-listado__fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.tarjeta-listado__precio { font-size: 19px; font-weight: 800; color: var(--color-pink); }

.tarjeta-listado__boton {
  align-self: center;
  margin-top: auto;
  padding: 8px 26px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* El botón va al fondo (margin-top: auto) aunque la tarjeta tenga menos texto que sus vecinas;
   lo de encima deja siempre un hueco. */
.tarjeta-listado__cuerpo > :nth-last-child(2) { margin-bottom: 14px; }

/* .tabs-pill pone display: flex, que anularía el atributo hidden (ventana de postulaciones del panel). */
.tabs-pill[hidden] { display: none; }

/* Subida de fotos del panel (js/subida-imagenes.js). */
.subida-imagen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.subida-imagen__vista {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.subida-imagen__vacia { font-size: 13px; }

.subida-imagen__acciones { display: flex; flex-wrap: wrap; gap: 8px; }

.subida-imagen__boton { padding: 6px 14px; font-size: 13px; }

/* El input de archivo está oculto dentro de la etiqueta-botón: el foco se ve en la etiqueta. */
.subida-imagen__boton:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.subida-imagen__estado { margin: 0; }

.subida-imagen-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
/* img y .btn ponen display, que anularía hidden (vista previa vacía, «Quitar» sin foto). */
.subida-imagen [hidden] { display: none; }
