@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fuentes/schibsted-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  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: "Schibsted Grotesk", 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: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.marca { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; text-decoration: none; }
.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-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 { font-size: 22px; line-height: 44px; }
  .contratar { position: absolute; top: 20px; 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; }
}
