/* Bricolage Grotesque (texto, titulares y menú) y Sedgwick Ave Display (solo gritos y etiquetas cortas). Licencia OFL. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fuentes/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sedgwick Ave Display";
  src: url("/assets/fuentes/sedgwick-ave-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --coral: #E52C54;
  --negro: #1E1E1C;
  --gris: #EDEDED;
  --blanco: #FFFFFF;
  --papel: #F6ECDA;
  --texto-suave: #3A3A37;
  --texto-tenue: #55554F;
  --marron: #6A3A12;
  --marron-texto: #3A2A1C;
  --gutter: 40px;
  --seccion: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gris);
  color: var(--negro);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

img { max-width: 100%; }
a { color: var(--negro); }
a:hover { color: #000; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
.oscuro :focus-visible, .show-calle :focus-visible { outline-color: var(--gris); }

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 20px; border-radius: 999px;
  background: var(--negro); color: var(--blanco); font-weight: 700; text-decoration: none;
}
.saltar:focus { top: 16px; color: var(--blanco); }

.papel { background: var(--papel) url("/assets/img/papel.jpg") repeat; }

.contenedor { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.boton {
  display: inline-flex; gap: 12px; align-items: center;
  padding: 16px 30px; border-radius: 999px;
  text-decoration: none; font-weight: 700;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton-negro { background: var(--negro); color: var(--blanco); }
.boton-negro:hover { color: var(--blanco); background: #3A3A37; }
.boton-borde { border: 2px solid var(--negro); }
.boton-borde:hover { background: var(--negro); color: var(--blanco); }

/* Cabecera */
.cabecera {
  padding-top: 16px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
/* Logo-pegatina: cuelga un poco por debajo de la cabecera para que esta no crezca */
.marca { display: block; margin-bottom: -18px; border-radius: 10px; transform: rotate(-6deg); transition: transform 0.2s ease; }
.marca img { display: block; width: 68px; height: auto; border-radius: 10px; }
.marca:hover { transform: rotate(-2deg) scale(1.06); }
.marca:focus-visible { outline-offset: 4px; }
.cabecera nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-weight: 500; }
.cabecera nav a { text-decoration: none; }
.cabecera nav a:not(.contratar):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contratar {
  padding: 12px 24px; border-radius: 999px;
  background: var(--coral); font-weight: 800; font-size: 20px;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.contratar:hover { transform: translateY(-2px); }
.contratar:hover { background: var(--negro); color: var(--blanco); }

/* Portada */
.portada {
  padding-top: 16px; padding-bottom: var(--seccion);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch;
}
.portada-texto {
  flex: 1 1 480px; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: 56px 48px; background: var(--blanco); border-radius: 36px;
}
.portada-luna { position: absolute; top: 28px; right: 28px; }
.etiqueta {
  margin: 0; align-self: flex-start; padding: 6px 16px; border-radius: 999px;
  background: var(--negro); color: var(--gris);
  font-weight: 700; font-size: 15px; letter-spacing: 0.08em;
}
.portada h1 {
  margin: 0; font-weight: 800; font-size: clamp(40px, 4.7vw, 68px); line-height: 1.02;
  letter-spacing: -0.03em; max-width: 560px;
}
.portada-intro { margin: 0; font-size: 21px; max-width: 520px; color: var(--texto-suave); }
.botones { display: flex; flex-wrap: wrap; gap: 14px; }
.portada-foto {
  flex: 1 1 420px; position: relative; display: flex;
  min-height: 560px; padding: 24px; background: var(--coral); border-radius: 36px;
}
.portada-foto .foto {
  width: 100%; height: auto; min-height: 512px; object-fit: cover; object-position: 40% 30%;
  border-radius: 24px; display: block;
}
/* Logo provisional: para cambiarlo, sustituye assets/img/logo.png (o el src en index.html) */
.logo {
  position: absolute; left: -20px; bottom: -28px; width: 170px; height: auto;
  border-radius: 22px; box-shadow: 0 0 0 6px var(--gris); transform: rotate(-6deg);
}

/* Títulos de sección */
.titulo-seccion { margin: 0; font-weight: 800; font-size: clamp(38px, 3.6vw, 52px); letter-spacing: -0.02em; line-height: 1.1; }

/* Shows */
.shows { padding-bottom: var(--seccion); display: flex; flex-direction: column; gap: 32px; }
.shows-cabecera { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; }
.exclamacion { margin: 0; font-weight: 800; font-size: 26px; }
.shows-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.show {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 24px 32px; border-radius: 28px; background: var(--blanco);
}
.show-texto { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.show-datos { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--texto-tenue); }
.show h3 { margin: 0; font-weight: 800; font-size: 30px; line-height: 1.1; }
.show-texto p:not(.show-datos) { margin: 0; color: var(--texto-suave); }

.show-calle { background: var(--negro); color: var(--gris); }
.show-calle .show-datos { color: #BDBDB8; }
.show-calle .show-texto p:not(.show-datos) { color: #D6D6D2; }
.show-calle .show-texto a { color: var(--blanco); }
.pegatina {
  position: absolute; top: 12px; right: 12px; margin: 0; padding: 8px 16px;
  background: var(--coral); color: var(--negro); font-weight: 800; font-size: 20px;
  border-radius: 6px; transform: rotate(5deg);
}

.show-cuentos { border: 2px solid var(--negro); }
.show-cuentos .show-datos { font-weight: 800; color: var(--marron); }
.show-cuentos .show-texto p:not(.show-datos) { color: var(--marron-texto); }
.show-cuentos .show-texto a { font-weight: 800; }
.show-luna { position: absolute; top: -28px; right: -14px; width: 72px; height: 72px; z-index: 1; }

/* Sobre mí */
.sobre { padding-bottom: var(--seccion); display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.sobre-foto {
  flex: 1 1 520px; min-width: 0; width: 100%; height: auto; min-height: 520px; align-self: stretch;
  object-fit: cover; object-position: 50% 40%; border-radius: 36px; display: block;
}
.sobre-texto {
  flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px;
  padding: 48px; background: var(--blanco); border-radius: 36px;
}
.sobre-texto .titulo-seccion { line-height: 1; }
.sobre-texto > p { margin: 0; font-size: 21px; }
.trayectoria { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.trayectoria li { padding-top: 12px; border-top: 1px solid #DADAD7; }
.sobre-texto .boton { align-self: flex-start; padding: 14px 26px; }

/* Sahara */
.sahara { border-top: 2px solid var(--negro); border-bottom: 2px solid var(--negro); }
.sahara-interior { padding-top: var(--seccion); padding-bottom: var(--seccion); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sahara-texto { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.sahara-texto .antetitulo { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: 0.1em; color: var(--marron); }
.sahara-texto .titulo-seccion { line-height: 1; }
.sahara-texto > p:not(.antetitulo) { margin: 0; color: var(--marron-texto); }
.sahara-texto blockquote {
  margin: 8px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--coral);
  font-size: 22px; font-weight: 500; line-height: 1.4;
}
.enlaces { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.enlaces a { font-weight: 800; }
.sahara-fotos { flex: 1 1 520px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sahara-fotos img { width: 100%; height: 260px; object-fit: cover; border-radius: 24px; display: block; }
.sahara-fotos img:first-child { grid-column: 1 / -1; height: 300px; }
.sahara-fotos .credito { grid-column: 1 / -1; margin-top: -4px; }

/* Agenda */
.agenda { background: var(--negro); color: var(--gris); }
.agenda-interior { padding-top: var(--seccion); padding-bottom: var(--seccion); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.agenda-cabecera { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.agenda-titulo { display: flex; gap: 16px; align-items: center; }
.agenda-titulo svg { flex: none; }
.agenda-titulo h2 { margin: 0; font-weight: 800; font-size: clamp(38px, 3.6vw, 52px); letter-spacing: -0.02em; line-height: 1.05; }
.agenda-titulo h1 { margin: 0; font-weight: 800; font-size: clamp(44px, 4.7vw, 68px); letter-spacing: -0.03em; line-height: 1.02; }
.agenda-cabecera p { margin: 0; color: #BDBDB8; }
.funciones { flex: 2 1 520px; margin: 0; padding: 0; list-style: none; }
.funciones li { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 20px 0; border-top: 1px solid #3A3A37; }
.funciones li:last-child { border-bottom: 1px solid #3A3A37; }
.funciones .fecha { min-width: 220px; font-weight: 800; font-size: 22px; color: var(--coral); }

/* Pie */
.pie {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.pie p { margin: 0; }
.pie-chatan { font-weight: 800; font-size: 28px; }
.pie-dislexia { display: inline-block; margin-left: 8px; font-size: 16px; font-weight: 400; font-style: italic; color: var(--texto-tenue); }
.pie-contacto { font-size: 17px; }
.pie-contacto a { font-weight: 700; }
.pie-legal { font-size: 16px; color: var(--texto-tenue); }
.pie-legal a { color: var(--texto-tenue); text-decoration: none; }
.pie-legal a:hover { color: #000; text-decoration: underline; }

/* Móvil */
@media (max-width: 600px) {
  :root { --gutter: 16px; --seccion: 56px; }
  .cabecera nav { gap: 12px 20px; }
  .portada-texto { padding: 112px 24px 40px; }
  .portada-luna { width: 72px; height: 72px; top: 24px; right: 24px; }
  .etiqueta { font-size: 14px; letter-spacing: 0.04em; }
  .portada-intro { font-size: 19px; }
  .sahara-texto blockquote { font-size: 19px; }
  .portada-foto { min-height: 440px; padding: 16px; border-radius: 28px; }
  .portada-foto .foto { min-height: 408px; border-radius: 18px; }
  .logo { left: 8px; bottom: -20px; width: 130px; }
  .shows-lista { grid-template-columns: 1fr; }
  .sobre-foto { height: 360px; min-height: 0; border-radius: 28px; }
  .sobre-texto { padding: 32px 24px; border-radius: 28px; }
  .sahara-fotos img { height: 200px; }
  .sahara-fotos img:first-child { height: 220px; }
}

/* Páginas de show */
.volver { margin: 0 0 4px; font-weight: 700; }
.portada-foto.foto-negra { background: var(--negro); }
.portada-foto.foto-papel { background: var(--papel) url("/assets/img/papel.jpg") repeat; border: 2px solid var(--negro); }
.portada-foto .pegatina { top: 4px; right: 4px; }
.portada-foto .show-luna { top: -24px; right: -14px; width: 96px; height: 96px; }

.detalle { padding-bottom: var(--seccion); display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.tarjeta {
  flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px;
  padding: 48px; background: var(--blanco); border-radius: 36px;
}
.tarjeta > p { margin: 0; }
.tarjeta .titulo-seccion { font-size: clamp(32px, 2.8vw, 40px); }
.tarjeta .titulo-pregunta { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; }
.datos { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.datos div { padding-top: 12px; border-top: 1px solid #DADAD7; }
.datos dt { font-weight: 800; }
.datos dd { margin: 0; }
.tarjeta-oscura { background: var(--negro); color: var(--gris); }
.tarjeta-oscura a:not(.boton) { color: var(--blanco); }
.tarjeta-oscura .boton-borde { border-color: var(--gris); color: var(--gris); }
.tarjeta-oscura .boton-borde:hover { background: var(--gris); color: var(--negro); }
.boton-coral { background: var(--coral); color: var(--negro); font-weight: 800; font-size: 20px; }
.boton-coral:hover { background: #EF5F7D; color: var(--negro); }

.fotos { padding-bottom: var(--seccion); display: flex; flex-direction: column; gap: 24px; }
.hueco {
  margin: 0; padding: 48px; border: 2px dashed var(--texto-tenue); border-radius: 36px;
  color: var(--texto-tenue); font-weight: 700; text-align: center;
}

@media (max-width: 600px) {
  .tarjeta { padding: 32px 24px; border-radius: 28px; }
  .portada-foto .show-luna { width: 72px; height: 72px; right: -6px; }
  .hueco { padding: 32px 24px; border-radius: 28px; }
}

/* Enlace de la página actual */
.cabecera nav a[aria-current="page"]:not(.contratar) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contratar[aria-current="page"] { background: var(--negro); color: var(--blanco); }

/* Cabecera de página interior */
.pagina-cabecera { padding-top: 16px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.pagina-cabecera h1 { margin: 0; font-weight: 800; font-size: clamp(44px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
.pagina-cabecera > p:not(.etiqueta):not(.volver) { margin: 0; font-size: 21px; max-width: 640px; color: var(--texto-suave); }

/* Texto largo: historia y legales */
.documento-zona { padding-bottom: var(--seccion); }
.documento {
  max-width: 820px; margin: 0 auto; padding: 56px 64px; background: var(--blanco); border-radius: 36px;
}
.documento > :first-child { margin-top: 0; }
.documento > :last-child { margin-bottom: 0; }
.documento h2 { margin: 48px 0 12px; font-weight: 800; font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; }
.documento h3 { margin: 32px 0 8px; font-weight: 800; font-size: 22px; line-height: 1.2; }
.documento p, .documento ul { margin: 0 0 16px; }
.documento li { margin-bottom: 6px; }
.documento figure { margin: 32px 0; }
.documento figure img { width: 100%; height: auto; border-radius: 24px; display: block; }
.documento figcaption { margin-top: 8px; font-size: 16px; color: var(--texto-tenue); }
.documento blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--coral);
  font-size: 22px; font-weight: 500; line-height: 1.4;
}
.documento .actualizado { font-size: 16px; color: var(--texto-tenue); }
.documento.papel { border: 2px solid var(--negro); }
.documento.papel p, .documento.papel li { color: var(--marron-texto); }

/* Agenda */
.agenda-pagina { padding-top: 56px; padding-bottom: 56px; }
.agenda-pagina .funciones { flex: none; }
.funciones .funcion { display: flex; flex-direction: column; gap: 2px; }
.funciones .funcion strong { font-size: 20px; }
.funciones .funcion span { color: #BDBDB8; }

/* Formulario */
.formulario { max-width: 820px; margin: 0 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo-ancho { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: 17px; }
.campo label span { font-weight: 400; color: var(--texto-tenue); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 18px; color: var(--negro);
  padding: 12px 16px; border: 2px solid var(--negro); border-radius: 16px; background: var(--blanco);
}
.campo textarea { min-height: 160px; resize: vertical; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible,
.casilla input:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.casilla input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--negro); }
.formulario button {
  align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.info-rgpd { margin: 0; font-size: 16px; max-width: 64ch; color: var(--texto-tenue); }
.mensaje-envio { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--gris); font-weight: 700; }

@media (max-width: 600px) {
  .documento { padding: 32px 24px; border-radius: 28px; }
  .documento h2 { font-size: 26px; margin-top: 36px; }
  .documento blockquote { font-size: 19px; }
  .campos { grid-template-columns: 1fr; }
}

.agenda + .detalle { padding-top: var(--seccion); }
.pagina-cabecera.estrecha { max-width: 900px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario [hidden] { display: none; }
.boton:disabled { opacity: 0.6; cursor: wait; }

/* Galerías */
.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.galeria-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.galeria img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; display: block; }
.funciones .sin-fechas { align-items: center; justify-content: space-between; gap: 16px 28px; }

/* Tarjetas de show: toda la tarjeta es un único enlace (el del título) */
.enlace-tarjeta { color: inherit; text-decoration: none; }
.enlace-tarjeta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.enlace-tarjeta:hover { color: inherit; }
.enlace-tarjeta:focus-visible { outline: none; }
.show { transition: transform 0.2s ease; }
.show:hover { transform: translateY(-4px); }
.show:focus-within { outline: 3px solid var(--negro); outline-offset: 4px; }
.show-foto { overflow: hidden; border-radius: 20px; }
.show-foto img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.show:hover .show-foto img { transform: scale(1.04); }
.saber-mas { font-weight: 700; text-decoration: underline; }
.show-cuentos .saber-mas { font-weight: 800; }
.show-calle .saber-mas { color: var(--blanco); }
.show:hover .saber-mas { text-decoration-thickness: 2px; }
.pegatina, .show-luna { pointer-events: none; }

/* Animaciones sutiles (desactivadas con prefers-reduced-motion) */
@keyframes pegar {
  from { opacity: 0; transform: rotate(-16deg) scale(0.88); }
  65% { opacity: 1; transform: rotate(-4deg) scale(1.02); }
  to { opacity: 1; transform: rotate(-6deg) scale(1); }
}
.logo { animation: pegar 0.6s ease-out 0.2s both; }
@keyframes balanceo {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-10deg); }
  65% { transform: rotate(6deg); }
}
.luna-viva { animation: balanceo 1.2s ease-in-out; }
@keyframes menear {
  0%, 100% { transform: rotate(5deg); }
  35% { transform: rotate(-2deg); }
  70% { transform: rotate(8deg); }
}
.show:hover .pegatina { animation: menear 0.5s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .boton:hover, .contratar:hover, .show:hover { transform: none; }
  .show:hover .show-foto img { transform: none; }
}

/* Tablet: la tercera tarjeta de shows ocupa todo el ancho */
@media (min-width: 601px) and (max-width: 1023px) {
  .shows-lista .show:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
  .shows-lista .show:last-child .show-foto { flex: 1 1 50%; }
  .shows-lista .show:last-child .show-texto { flex: 1 1 50%; }
  .shows-lista .show:last-child .show-luna { top: -28px; right: -14px; }
}

/* ¿Quién soy?: en pantallas estrechas, el texto antes que la foto */
@media (max-width: 1043px) {
  .sobre-pagina .sobre-texto { order: -1; }
}

/* Móvil: nombre y «Contratar» en la primera fila, enlaces debajo */
@media (max-width: 600px) {
  .cabecera { position: relative; padding-top: 20px; padding-bottom: 20px; gap: 12px; }
  .marca { margin-bottom: -10px; }
  .marca img { width: 54px; }
  .cabecera nav { flex-basis: 100%; }
  .contratar { position: absolute; top: 28px; right: var(--gutter); padding: 9px 18px; font-size: 19px; }
  .pagina-cabecera { padding-bottom: 32px; }
}

/* El logo-pegatina sobresale por debajo de la foto: más aire antes de la sección siguiente */
.portada:has(.logo) { padding-bottom: calc(var(--seccion) + 28px); }
.fotos.estrecha { max-width: 900px; }

/* Sahara Mágica: fotos intercaladas en el texto */
.credito { margin: 0; font-size: 15px; color: var(--texto-tenue); }
.documento .credito { margin-top: 24px; }
.documento .foto-ancha { margin: 40px -64px; }
.documento .foto-ancha img { width: 100%; height: auto; display: block; }
.documento .fotos-grupo { margin: 40px -64px; display: grid; gap: 10px; }
.fotos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fotos-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fotos-grupo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fotos-3 img { aspect-ratio: 3 / 4; }
.fotos-2.cuadradas img { aspect-ratio: 1; }
.documento .foto-vertical { max-width: 440px; margin: 40px auto; }
.documento .foto-vertical img { width: 100%; height: auto; border-radius: 24px; display: block; }
@media (max-width: 600px) {
  .documento .foto-ancha, .documento .fotos-grupo { margin: 28px -24px; }
  .documento .fotos-grupo { gap: 6px; }
  .fotos-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fotos-3 img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
}

/* Luna animada de Álbumes tatuados: el cohete sale y entra del ojo, la sonrisa se mueve y el otro ojo parpadea.
   Se pausa fuera de pantalla (clase .en-pantalla, desde lunas.js) y no se anima con «reducir movimiento». */
.portada-foto .luna-animada { width: 150px; height: 150px; top: -44px; right: -28px; }
.luna-animada .luna-cohete { transform-box: view-box; animation: cohete 4.5s ease-in-out infinite; }
.luna-animada .luna-sonrisa { transform-box: fill-box; transform-origin: center top; animation: sonreir 3.2s ease-in-out infinite; }
.luna-animada .luna-ojo { transform-box: fill-box; transform-origin: center; animation: parpadear 5.5s linear infinite; }
svg.luna-animada:not(.en-pantalla) * { animation-play-state: paused; }
@keyframes cohete {
  0%, 15% { transform: translate(0, 0); }
  40%, 55% { transform: translate(11px, -11px); }
  72% { transform: translate(-1.5px, 1.5px); }
  80%, 100% { transform: translate(0, 0); }
}
@keyframes sonreir {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.12, 1.6); }
}
@keyframes parpadear {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.15) translateY(2px); }
}
@media (max-width: 600px) {
  .portada-foto .luna-animada { width: 108px; height: 108px; top: -32px; right: -8px; }
}
.cabecera-show { margin: -8px 0 0; font-weight: 700; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.25; }

/* Sahara Mágica: galería final con visor */
.galeria-sahara { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.abrir-foto { display: block; border: 4px solid var(--coral); border-radius: 24px; overflow: hidden; transition: transform 0.2s ease; }
.abrir-foto:hover { transform: translateY(-3px); }
.abrir-foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.4s ease; }
.abrir-foto:hover img { transform: scale(1.04); }
.fotos .credito { margin-top: -8px; }
.visor { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(30, 30, 28, 0.94); color: var(--gris); }
.visor[open] { display: flex; align-items: center; justify-content: center; }
.visor::backdrop { background: rgba(30, 30, 28, 0.6); }
.visor figure { margin: 0; padding: 64px 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.visor img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border: 4px solid var(--coral); border-radius: 24px; display: block; }
.visor figcaption { max-width: 70ch; font-size: 16px; text-align: center; color: #D6D6D2; }
.visor button {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--coral); color: var(--negro); font: inherit; font-size: 32px; font-weight: 800; line-height: 1;
}
.visor button:hover { background: #EF5F7D; }
.visor :focus-visible { outline-color: var(--gris); }
.visor-cerrar { top: 16px; right: 16px; }
.visor-anterior { left: 16px; top: 50%; transform: translateY(-50%); }
.visor-siguiente { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 1000px) { .galeria-sahara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .galeria-sahara { gap: 10px; }
  .abrir-foto { border-radius: 18px; }
  .visor figure { padding: 72px 12px 88px; }
  .visor img { max-height: calc(100vh - 220px); border-radius: 16px; }
  .visor-anterior, .visor-siguiente { top: auto; bottom: 16px; transform: none; }
  .visor-anterior { left: calc(50% - 64px); }
  .visor-siguiente { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .abrir-foto:hover, .abrir-foto:hover img { transform: none; } }
@media (max-width: 600px) { .pie-dislexia { display: block; margin: 4px 0 0; } }

/* Bloque final de pedir presupuesto */
.cta-presupuesto { padding-bottom: var(--seccion); }
.cta-presupuesto .tarjeta { gap: 16px; }
.agenda + .cta-presupuesto { padding-top: var(--seccion); }
.fotos.estrecha + .cta-presupuesto { max-width: 900px; }
/* La etiqueta no se mete debajo de la luna de la portada */
.portada-texto .portada-luna ~ .etiqueta { max-width: calc(100% - 110px); }
/* Agenda: fecha a la izquierda y la función siempre al lado (en móvil, debajo) */
@media (min-width: 601px) {
  .funciones li:not(.sin-fechas) { flex-wrap: nowrap; }
  .funciones .funcion { flex: 1 1 auto; min-width: 0; }
}

/* Tipografía A: titulares, menú y botones en Bricolage alta y condensada */
h1, h2, h3, .titulo-seccion, .cabecera nav, .contratar, .boton, .saber-mas, .enlaces a, .funciones .fecha, .funciones .funcion strong {
  font-weight: 800; font-stretch: 75%;
}
h1, h2, .titulo-seccion { letter-spacing: -0.015em; }
.cabecera nav { font-size: 21px; }
.boton { font-size: 20px; }
/* Gritos de marca y etiquetas cortas en Sedgwick Ave Display */
.exclamacion, .pie-chatan, .pegatina, .etiqueta, .antetitulo, .grito-404 {
  font-family: "Sedgwick Ave Display", "Bricolage Grotesque", cursive; font-weight: 400; font-stretch: 100%; letter-spacing: 0.02em;
}
.exclamacion { font-size: 32px; }
.pie-chatan { font-size: 34px; }
.pegatina { font-size: 24px; }
.etiqueta { font-size: 19px; padding: 6px 16px; }
.sahara-texto .antetitulo { font-size: 19px; letter-spacing: 0.04em; }
/* Las etiquetas largas de las tarjetas siguen en Bricolage para que se lean bien */
.show-datos { font-stretch: 85%; font-weight: 800; }
.pie-dislexia { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: 0; }

/* Portada: tres pegatinas en fila que bajan de línea solas si no caben */
.pegatinas-portada {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 12px; max-width: calc(100% - 110px);
}
.pegatinas-portada li {
  padding: 6px 16px 7px; border-radius: 8px; white-space: nowrap;
  background: var(--negro); color: var(--gris);
  font-family: "Sedgwick Ave Display", "Bricolage Grotesque", cursive; font-size: 20px; line-height: 1.2; letter-spacing: 0.02em;
}
.pegatinas-portada li:nth-child(3n+1) { transform: rotate(-2deg); }
.pegatinas-portada li:nth-child(3n+2) { transform: rotate(1deg); }
.pegatinas-portada li:nth-child(3n) { transform: rotate(-1deg); }
@media (max-width: 600px) {
  .pegatinas-portada { max-width: 100%; }
  .pegatinas-portada li { font-size: 19px; padding: 5px 14px 6px; }
}
/* Revisión tras el cambio de tipografía */
@media (min-width: 601px) and (max-width: 1043px) {
  /* En tablet la tarjeta ocupa todo el ancho y el titular llegaba hasta la luna */
  .portada-texto:has(.portada-luna) { padding-top: 140px; }
}
@media (max-width: 600px) {
  /* Etiquetas largas (Sahara Mágica) en una sola línea en móvil */
  .etiqueta { font-size: 16px; padding: 6px 12px; letter-spacing: 0.01em; }
}
@media (max-width: 600px) { .portada-texto:not(:has(.portada-luna)) { padding-top: 40px; } }

/* Portada: montaje a todo el ancho sobre el mismo gris del fondo */
.montaje { padding-bottom: var(--seccion); overflow: hidden; }
.montaje-cabecera { padding-bottom: 12px; }
.montaje-img { display: block; width: 100%; max-width: 1920px; height: auto; margin: 0 auto; }
.montaje-pie { padding-top: 12px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.montaje-pie p { margin: 0; font-size: 21px; }
/* Entra deslizándose un poco al aparecer (lunas.js; sin JavaScript o con «reducir movimiento» se ve quieto) */
.montaje-img.por-aparecer { opacity: 0; transform: translateX(48px); }
.montaje-img.aparecido { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (max-width: 600px) {
  /* En móvil se recorta para centrarse en los tres saltos */
  .montaje-img { height: 290px; object-fit: cover; object-position: 53% 50%; }
  .montaje-pie p { font-size: 19px; }
}
