/* ═══════════════════════════════════════════════
   BERMEJA PRODUCCIONES — style.css
   Design system: premium dark, Cormorant Garamond + Montserrat
   ═══════════════════════════════════════════════ */

/* ─── TIPOGRAFÍAS ───
   Se sirven desde /fonts, no desde Google Fonts: una conexión menos antes
   de pintar y ninguna IP del visitante enviada a terceros. Son fuentes
   variables, así que cada archivo cubre todos los pesos de 300 a 600.
   Licencia y detalles en fonts/LICENCIA.txt. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/montserrat.woff2') format('woff2');
}

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Fondo */
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #181818;
  --surface-3:   #202020;

  /* Bordes */
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);
  --border-high: rgba(255,255,255,0.2);

  /* Texto. El tenue no baja de 0.48: por debajo, sobre el fondo casi negro,
     no llega al contraste mínimo de 4,5:1 que pide WCAG AA para texto pequeño
     (con 0.32 se quedaba en 2,8:1 y costaba leer etiquetas y notas). */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.62);
  --text-muted:     rgba(255,255,255,0.48);

  /* Accent = blanco puro */
  --accent:       #ffffff;
  --accent-dim:   rgba(255,255,255,0.08);

  /* Tipografía */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', system-ui, sans-serif;

  /* Espaciado (escala 8px) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;
  --sp-9: 160px;

  /* Transiciones */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  0.2s;
  --dur-mid:   0.45s;
  --dur-slow:  0.8s;

  /* Layout */
  --max-w: 1280px;
  --header-h: 72px;
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: none;
  font-family: inherit;
  color: inherit;
}

input,
textarea,
select {
  font-family: var(--font-sans);
  color: var(--text-primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.05;
}

ul, ol {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-high); border-radius: 2px; }

/* Selection */
::selection {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

/* ─── SMOOTH WRAPPER ─── */
#smooth-wrapper {
  overflow: hidden;
}

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-3); }
}

/* ─── TYPOGRAPHY UTILITIES ─── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--border-high);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: none;
  white-space: nowrap;
  min-width: 0;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 0 32px rgba(255,255,255,0.15);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-high);
}

.btn--outline:hover {
  background: var(--accent-dim);
  border-color: var(--text-primary);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 11px;
}

.btn--full {
  width: 100%;
}

/* ─── CUSTOM CURSOR ─── */
body.is-loading .cursor { opacity: 0; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
}

.cursor__ring {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out),
              opacity 0.3s ease;
  will-change: transform;
}

.cursor__dot {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  will-change: transform;
}

body.cursor--hover .cursor__ring {
  transform: scale(2);
  opacity: 0.6;
}

body.cursor--click .cursor__ring {
  transform: scale(0.7);
}

@media (hover: none) {
  .cursor { display: none; }
  body { cursor: auto; }
  button, a, input, select, textarea, label { cursor: pointer; }
  select { cursor: pointer; }
}

/* ─── FILM GRAIN ─── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 0.4s steps(1) infinite;
}

@keyframes grain {
  0%   { background-position: 0 0; }
  10%  { background-position: -5% -10%; }
  20%  { background-position: -15% 5%; }
  30%  { background-position: 7% -25%; }
  40%  { background-position: -5% 25%; }
  50%  { background-position: -15% 10%; }
  60%  { background-position: 15% 0; }
  70%  { background-position: 0 15%; }
  80%  { background-position: 3% 35%; }
  90%  { background-position: -10% 10%; }
  100% { background-position: 0 0; }
}

/* ─── SALTAR AL CONTENIDO ───
   Invisible hasta que llega el foco con el tabulador. */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-3);
  z-index: 10001;
  padding: 12px 20px;
  background: var(--text-primary);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-3);
}

/* ─── LOADER ───
   La intro se anima solo con CSS: empieza en el primer pintado, sin esperar
   a que llegue el JavaScript, y dura ~1,1 s. main.js la retira en cuanto
   termina (clase .loader--done). Si el JS no llegara nunca, la animación
   loaderOut la quita sola a los 3,5 s para no dejar la web tapada.

   Solo se ve una vez por visita: al volver a la portada desde otra página
   el script del <head> pone .no-intro en <html> y la pantalla ni se pinta.
   Con "reducir movimiento" tampoco aparece. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  animation: loaderOut 0.5s var(--ease-out) 3.5s forwards;
}

.loader--done {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.no-intro .loader {
  display: none;
}

/* Sin intro, el hero sale completo desde el primer pintado */
.no-intro .hero__eyebrow,
.no-intro .hero__sub,
.no-intro .hero__ctas,
.no-intro .hero__scroll {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .hero__eyebrow,
  .hero__sub,
  .hero__ctas,
  .hero__scroll { opacity: 1; }
}

@keyframes loaderOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes loaderIn {
  from { opacity: 0; transform: scale(0.75) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes loaderUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* La línea y la barra crecen con transform, no con width: así las anima
   la tarjeta gráfica y no se traban mientras el JS arranca debajo. */
@keyframes loaderGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.loader__logo {
  animation: loaderIn 0.7s var(--ease-out) 0.05s both;
}

.loader__logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.loader__brand {
  text-align: center;
  overflow: hidden;
}

.loader__name {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.55em;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
}

/* "BERMEJA" llega ya partido en letras desde el HTML */
.loader__name span {
  display: inline-block;
  animation: loaderUp 0.5s var(--ease-out) both;
}

.loader__name span:nth-child(1) { animation-delay: 0.25s; }
.loader__name span:nth-child(2) { animation-delay: 0.29s; }
.loader__name span:nth-child(3) { animation-delay: 0.33s; }
.loader__name span:nth-child(4) { animation-delay: 0.37s; }
.loader__name span:nth-child(5) { animation-delay: 0.41s; }
.loader__name span:nth-child(6) { animation-delay: 0.45s; }
.loader__name span:nth-child(7) { animation-delay: 0.49s; }

.loader__sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
  animation: loaderUp 0.5s var(--ease-out) 0.55s both;
}

.loader__line {
  width: 80px;
  height: 1px;
  background: var(--border-mid);
  margin-top: var(--sp-1);
  animation: loaderGrow 0.6s var(--ease-out) 0.5s both;
}

.loader__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--surface);
}

.loader__bar-fill {
  height: 100%;
  background: rgba(255,255,255,0.25);
  transform-origin: left center;
  animation: loaderGrow 1.1s ease-in-out both;
}

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-5);
  transition: background var(--dur-mid) var(--ease-out),
              backdrop-filter var(--dur-mid) var(--ease-out);
}

.header.scrolled {
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}

.header__logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity var(--dur-fast) ease;
}

.header__logo:hover img {
  opacity: 0.75;
}

.header__nav {
  display: flex;
  gap: var(--sp-5);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-mid) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-opt {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 2px 0;
  cursor: none;
  transition: color var(--dur-fast) ease;
  position: relative;
}

.lang-opt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.25s ease;
}

.lang-opt--active,
.lang-opt[aria-pressed="true"] {
  color: var(--text-primary);
}

.lang-opt--active::after,
.lang-opt[aria-pressed="true"]::after {
  width: 100%;
}

.lang-sep {
  font-size: 9px;
  color: var(--border-high);
  user-select: none;
  line-height: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: none;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast) ease;
}

.hamburger.is-open .hamburger__line:first-child {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-open .hamburger__line:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .hamburger { display: flex; }
  .header { padding: 0 var(--sp-3); }
}

.header.nav-open .lang-toggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease;
}

.header.nav-open .hamburger__line:first-child {
  transform: translateY(3px) rotate(45deg);
}
.header.nav-open .hamburger__line:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  /* Cerrado también es invisible para el teclado y los lectores de
     pantalla: visibility cambia al terminar el fundido. */
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-out),
              visibility 0s linear var(--dur-slow);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity var(--dur-slow) var(--ease-out),
              visibility 0s linear 0s;
}

.mobile-nav__link {
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
  display: block;
  text-align: center;
}

.mobile-nav__link:hover {
  color: var(--text-primary);
}

.lang-toggle--mobile {
  margin-top: var(--sp-4);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Resplandor del escenario. Va detrás del lienzo: las siluetas del público,
   opacas, lo recortan solas y el degradado no cuesta un solo fotograma. */
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(22% 17% at 50% 53%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.035) 45%, rgba(255,255,255,0) 100%),
    radial-gradient(52% 46% at 50% 55%, rgba(255,255,255,0.052) 0%, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0) 72%);
  animation: heroWash 9s ease-in-out infinite alternate;
}

@keyframes heroWash {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* Oscuridad de primer término. Ya no tiene que tapar el final del público
   —las filas llegan hasta el borde—, así que es sólo un velo suave que asienta
   los textos: si vuelve a cerrarse en negro, las siluetas cercanas, que apenas
   se sostienen con su contraluz, desaparecen. */
.hero__floor {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(8,8,8,0) 0%,
    rgba(8,8,8,0.28) 46%,
    rgba(8,8,8,0.52) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero__wash { animation: none; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__volcano {
  width: 70vw;
  max-width: 900px;
  opacity: 0.04;
  filter: brightness(0) invert(1);
  transform: translateY(8%);
  object-fit: contain;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-9) var(--sp-5) var(--sp-9);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  opacity: 0;
}

.eyebrow__line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border-high);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 10vw, 112px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  overflow: hidden;
}

.hero__line {
  display: block;
}

.hero__line--italic {
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

/* El subtítulo se pinta desde el primer momento, sin fundido: es el texto
   más grande de la primera pantalla y el que Google mide como «contenido
   principal» (LCP). Mientras corre la intro queda tapado por ella. */
.hero__sub {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: var(--sp-6);
}

.hero__ctas {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.3) 100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero__scroll-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Corner decorations */
.hero__corner {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  opacity: 0.25;
}

.hero__corner--tl {
  top: calc(var(--header-h) + 24px);
  left: var(--sp-5);
  border-top: 1px solid var(--text-secondary);
  border-left: 1px solid var(--text-secondary);
}

.hero__corner--br {
  bottom: 24px;
  right: var(--sp-5);
  border-bottom: 1px solid var(--text-secondary);
  border-right: 1px solid var(--text-secondary);
}

@media (max-width: 768px) {
  .hero__content {
    padding: var(--sp-6) var(--sp-3);
  }
  .hero__sub br { display: none; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__corner { display: none; }
}

@media (max-width: 480px) {
  .hero__content {
    padding: var(--sp-5) var(--sp-3);
  }
  .hero__eyebrow { margin-bottom: var(--sp-3); }
  .hero__sub { margin-bottom: var(--sp-4); }
}

/* ─── ABOUT ─── */
.about {
  padding: var(--sp-9) 0;
  position: relative;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.about__text-col {
  max-width: 540px;
}

.about__body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.about__body--2 {
  margin-bottom: var(--sp-5);
}

.about__stats-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: var(--sp-5);
}

.stat-card {
  padding: var(--sp-5) var(--sp-4);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-mid) ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface);
  opacity: 0;
  transition: opacity var(--dur-mid) ease;
}

.stat-card:hover {
  border-color: var(--border-mid);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__num {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.stat-card__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .about__stats-col {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-card {
    flex: 1 1 calc(50% - 1px);
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .stat-card { flex: 1 1 100%; }
}

/* ─── ABOUT · FUNDADOR ─── */
.founder {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: var(--sp-6);
  align-items: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border);
}

.founder__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--dur-mid) ease;
}

.founder__media:hover {
  border-color: var(--border-mid);
}

.founder__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
  filter: grayscale(70%) contrast(1.05) brightness(0.85);
  transform: scale(1.01);
  transition: filter var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.founder__media:hover img {
  filter: grayscale(0%) contrast(1.05) brightness(0.95);
  transform: scale(1.05);
}

.founder__badge {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-3) var(--sp-3);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.founder__text {
  max-width: 560px;
}

.founder__name {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.founder__role {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 12px 0 var(--sp-3);
}

.founder__body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.founder__quote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
  padding-left: var(--sp-3);
  border-left: 1px solid var(--border-high);
  margin-top: var(--sp-4);
}

@media (max-width: 900px) {
  .founder {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    margin-top: var(--sp-6);
    padding-top: var(--sp-6);
  }
  .founder__media {
    max-width: 420px;
  }
}

/* ─── SERVICES ─── */
.services {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}

.services__header {
  margin-bottom: var(--sp-7);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.service-card {
  padding: var(--sp-5) var(--sp-4);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--dur-mid) ease;
  cursor: none;
}

.service-card:nth-child(4n) {
  border-right: none;
}

.service-card:hover {
  background: var(--surface);
}

.service-card__icon-wrap {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  transition: border-color var(--dur-mid) ease,
              background var(--dur-mid) ease;
}

.service-card:hover .service-card__icon-wrap {
  border-color: var(--border-high);
  background: var(--surface-2);
}

.service-card__icon-wrap {
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}

.service-card:hover .service-card__icon-wrap {
  color: var(--text-primary);
}

.service-card__icon,
.service-card__icon-wrap svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.service-card__desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.service-card__arrow {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-4);
  font-size: 18px;
  color: var(--text-muted);
  opacity: 0;
  transform: translate(-6px, 0);
  transition: opacity var(--dur-fast) ease,
              transform var(--dur-fast) ease,
              color var(--dur-fast) ease;
}

.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--text-primary);
}

/* ─── FEATURED SERVICE CARD (Eventos) ─── */
.service-card--featured {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-high);
}

.service-card--featured:hover {
  background: var(--surface-2);
}

.service-card--featured .service-card__icon-wrap {
  border-color: var(--border-high);
  background: var(--surface-2);
}

.service-card__badge {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-4);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--border-high);
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card:nth-child(2n) {
    border-right: none;
  }
  .service-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .service-card:last-child {
    border-bottom: none !important;
  }
}

/* ─── PORTFOLIO — Horizontal Scroll ─── */
.portfolio {
  padding-top: var(--sp-9);
  position: relative;
}

.portfolio__header {
  margin-bottom: var(--sp-6);
}

.portfolio__hint {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: calc(-1 * var(--sp-3));
}

.portfolio__hint svg {
  width: 14px;
  height: 14px;
  display: inline;
  vertical-align: middle;
  margin-right: 6px;
}

.portfolio__pin {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.portfolio__track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.portfolio__card {
  width: 100vw;
  height: 100%;
  display: grid;
  grid-template-columns: 45% 55%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.portfolio__card-visual {
  position: relative;
  overflow: hidden;
}

.portfolio__card-art {
  position: absolute;
  inset: 0;
}

.portfolio__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tríptico dentro del visual — tres fotos en una sola tarjeta,
   en columnas verticales para que se vea el cuerpo entero de cada uno. */
.portfolio__card-trio {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.portfolio__trio-item {
  position: relative;
  overflow: hidden;
}

.portfolio__trio-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.portfolio__card:hover .portfolio__trio-item img {
  transform: scale(1.03);
}

.portfolio__trio-name {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  pointer-events: none;
}

/* En escritorio el tríptico arranca por debajo del header: así las tres
   fotos no quedan pegadas al borde superior de la pantalla. */
@media (min-width: 769px) {
  .portfolio__card-visual--trio .portfolio__card-trio {
    top: var(--header-h);
  }
}

/* Card visual art — abstract geometric, black & white */
.portfolio__card-art--1,
.collab-card__art--1 {
  background: #0d0d0d;
}
.portfolio__card-art--1::before,
.collab-card__art--1::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent 0px,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
}
.portfolio__card-art--1::after,
.collab-card__art--1::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
}

.portfolio__card-art--2,
.collab-card__art--2 {
  background: #0a0a0a;
}
.portfolio__card-art--2::before,
.collab-card__art--2::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  right: 10%;
  bottom: 20%;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(255,255,255,0.02);
}
.portfolio__card-art--2::after,
.collab-card__art--2::after {
  content: '';
  position: absolute;
  top: 35%;
  left: 25%;
  right: 25%;
  bottom: 35%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.portfolio__card-art--3,
.collab-card__art--3 {
  background: #0e0e0e;
}
.portfolio__card-art--3::before,
.collab-card__art--3::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 32px,
      rgba(255,255,255,0.018) 32px,
      rgba(255,255,255,0.018) 33px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 32px,
      rgba(255,255,255,0.018) 32px,
      rgba(255,255,255,0.018) 33px
    );
}

.portfolio__card-art--4,
.collab-card__art--4 {
  background: #0b0b0b;
}
.portfolio__card-art--4::before,
.collab-card__art--4::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 50%;
  height: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.portfolio__card-art--4::after,
.collab-card__art--4::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(20deg);
  width: 70%;
  height: 70%;
  border: 1px solid rgba(255,255,255,0.035);
}

/* Logo watermark on each card */
.portfolio__card-visual::after {
  content: '';
  position: absolute;
  bottom: var(--sp-5);
  right: var(--sp-5);
  width: 80px;
  height: 80px;
  background: url('../images/brand/logo.webp') center/contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.06;
}

.portfolio__card-content {
  padding: var(--sp-7) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--border);
  position: relative;
}

.portfolio__card-num {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.portfolio__card-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.portfolio__card-cat::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.portfolio__card-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.portfolio__card-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 380px;
  margin-bottom: var(--sp-4);
}

.portfolio__card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio__card-tags span {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 1px;
}

.portfolio__progress-wrap {
  height: 2px;
  background: var(--surface);
  margin-top: var(--sp-3);
}

.portfolio__progress-bar {
  height: 100%;
  background: var(--text-secondary);
  width: 0%;
  transition: width 0.05s linear;
}

@media (max-width: 768px) {
  .portfolio__pin {
    height: auto !important;
    overflow: visible;
  }
  .portfolio__track {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }
  .portfolio__card {
    width: 100% !important;
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    flex-shrink: unset;
  }
  .portfolio__card-visual {
    height: clamp(200px, 40vw, 340px);
  }
  /* El tríptico mantiene columnas también en móvil, así que necesita
     más alto: con la altura normal las columnas quedan casi cuadradas
     y `cover` recortaría la cabeza y los pies de cada bailarín. */
  .portfolio__card-visual--trio {
    height: clamp(380px, 125vw, 560px);
  }
  .portfolio__card-content {
    padding: var(--sp-4) var(--sp-3) var(--sp-5);
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .portfolio__card-visual::after {
    display: none;
  }
  .portfolio__trio-name {
    padding: var(--sp-3) 8px 6px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

/* ─── LANZAROTE ─── */
.lanzarote {
  padding: var(--sp-9) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.lanzarote__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, rgba(0,0,0,0.6) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, rgba(0,0,0,0.6) 0%, transparent 75%);
  pointer-events: none;
}

.lanzarote__parallax-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}

.lanzarote__volcano {
  width: 60vw;
  max-width: 800px;
  opacity: 0.055;
  filter: brightness(0) invert(1);
  object-fit: contain;
  transform: translateX(10%);
  will-change: transform;
}

.lanzarote .container {
  position: relative;
  z-index: 2;
}

.lanzarote .section-title {
  max-width: 560px;
}

.lanzarote__body {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--sp-7);
}

.lanzarote__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.lanzarote__feature {
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--dur-mid) ease,
              background var(--dur-mid) ease;
}

.lanzarote__feature:hover {
  border-color: var(--border-mid);
  background: var(--surface);
}

.lanzarote__feat-icon,
.lanzarote__feature svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  margin-bottom: var(--sp-3);
  color: var(--text-secondary);
}

.lanzarote__feature h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.lanzarote__feature p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.lanzarote__step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

/* ─── CONCIERTOS ─── */
.conciertos {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}

.conciertos__header {
  margin-bottom: var(--sp-6);
  max-width: 640px;
}

.conciertos__hint {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.conciertos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.concert-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: none;
  transition: border-color var(--dur-mid) ease;
}

.concert-card:hover {
  border-color: var(--border-mid);
}

.concert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(75%) contrast(1.05) brightness(0.82);
  transform: scale(1.01);
  transition: filter var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.concert-card:hover img,
.concert-card.is-color img {
  filter: grayscale(0%) contrast(1.05) brightness(0.95);
  transform: scale(1.05);
}

/* Placeholder frame — swap for an <img> when the photo arrives */
.concert-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 30% 18%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(160deg, #161616 0%, #0b0b0b 55%, #111111 100%);
}

.concert-card__ph-icon {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.14);
  transition: color var(--dur-mid) ease, transform var(--dur-mid) var(--ease-out);
}

.concert-card:hover .concert-card__ph-icon {
  color: rgba(255,255,255,0.32);
  transform: scale(1.12);
}

.concert-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-3);
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  pointer-events: none;
}

.concert-card__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .conciertos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .conciertos__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-1);
  }
  .concert-card__name {
    font-size: 15px;
  }
}

/* ─── COLABORACIONES ─── */
.colaboraciones {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}

.colaboraciones__header {
  margin-bottom: var(--sp-6);
  max-width: 640px;
}

.colaboraciones__hint {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.collab-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: none;
  transition: border-color var(--dur-mid) ease, background var(--dur-mid) ease;
}

.collab-card:hover {
  border-color: var(--border-mid);
  background: var(--surface);
}

.collab-card__art {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.collab-card__art--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform var(--dur-mid) ease, filter var(--dur-mid) ease;
}

.collab-card:hover .collab-card__art--photo img {
  transform: scale(1.04);
  filter: saturate(1);
}

/* Tríptico — tres fotos en una sola tarjeta (Masterclass de Baile) */
.collab-card__art--trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background:
    radial-gradient(120% 80% at 30% 18%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(160deg, #161616 0%, #0b0b0b 55%, #111111 100%);
}

.collab-trio__item {
  position: relative;
  overflow: hidden;
}

.collab-trio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform var(--dur-mid) ease, filter var(--dur-mid) ease;
}

.collab-card:hover .collab-trio__item img {
  transform: scale(1.04);
  filter: saturate(1);
}

.collab-trio__name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 8px 6px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  pointer-events: none;
}

/* Foto aún no entregada: se oculta el <img> y queda el fondo de la tarjeta */
img.is-missing {
  display: none;
}

.collab-card__content {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.collab-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.collab-card__cat::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.collab-card__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
}

.collab-card__desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .collab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .collab-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── ORLAS ─── */
.orlas {
  padding: var(--sp-9) 0 calc(var(--sp-9) + 28px);
  position: relative;
}

.orlas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}

.orlas__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.orlas__body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: var(--sp-4) 0 var(--sp-5);
}

.orlas__steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-left: var(--sp-4);
  border-left: 1px solid var(--border-mid);
}

.orlas__step {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.orlas__step-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  margin-top: 2px;
}

.orlas__step-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.orlas__step-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Visual */
.orlas__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orlas__frame-deco {
  width: 100%;
  max-width: 440px;
  padding: 0;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  position: relative;
}

.orlas__frame-deco::before,
.orlas__frame-deco::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--border-high);
  border-style: solid;
  pointer-events: none;
}

.orlas__frame-deco::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}

.orlas__frame-deco::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.orlas__monitor {
  border: 3px solid rgba(201, 163, 70, 0.75);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(201, 163, 70, 0.15),
    0 0 40px rgba(201, 163, 70, 0.12),
    0 0 90px rgba(201, 163, 70, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.65);
}

.orlas__monitor-screen {
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
}

.orlas__preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badge */
.orlas__badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid var(--border-high);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.orlas__badge:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.orlas__badge:hover .orlas__badge-icon,
.orlas__badge:hover .orlas__badge-text {
  color: var(--bg);
}

.orlas__badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.orlas__badge-icon {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
  transition: color var(--dur-fast) ease;
}

.orlas__badge-text {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  transition: color var(--dur-fast) ease;
}

@media (max-width: 900px) {
  .orlas__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .orlas__frame-deco {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .orlas__badge {
    bottom: -16px;
    right: 16px;
    width: 88px;
    height: 88px;
  }
  .orlas__badge-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 900px) {
  .lanzarote__features {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }
  .lanzarote__volcano {
    opacity: 0.03;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .lanzarote__features {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
}

/* ─── CONTACT ─── */
.contact {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.contact__sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  max-width: 340px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.contact__detail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.contact__detail-link:hover {
  color: var(--text-primary);
}

.contact__detail-link i,
.contact__detail-link svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.contact__social {
  display: flex;
  gap: var(--sp-2);
}

.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) ease,
              background var(--dur-fast) ease;
  cursor: none;
}

.social-btn:hover {
  border-color: var(--border-high);
  background: var(--surface);
}

.social-btn {
  color: rgba(255, 255, 255, 0.75);
}

.social-btn:hover {
  color: var(--text-primary);
}

.social-btn .social-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}

/* FORM */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast) ease;
}

.form-group:focus-within label {
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur-fast) ease,
              background var(--dur-fast) ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-high);
  background: var(--surface-2);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--surface-2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-top: calc(-1 * var(--sp-1));
}

/* ─── Estados del formulario ───
   Reposo → error por campo → enviando → enviado (o error de envío).
   Los mensajes los escribe main.js; aquí solo su aspecto. */
.form__status {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  margin-top: calc(-1 * var(--sp-1));
}

.form__status:empty {
  display: none;
}

.form__status--error {
  color: #ffd68a;
}

.form__status--ok {
  color: var(--text-secondary);
}

/* Error de envío (sin conexión, servidor caído…): caja más visible */
.form__status--fail {
  color: #ffd68a;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 138, 0.35);
  border-radius: 2px;
  background: rgba(255, 214, 138, 0.06);
}

.form__status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mensaje de error bajo cada campo */
.form-error {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffd68a;
}

.form-error:empty {
  display: none;
}

/* Campo que hay que corregir */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: rgba(255, 214, 138, 0.6);
}

.form-consent input[aria-invalid="true"] {
  outline: 2px solid rgba(255, 214, 138, 0.6);
  outline-offset: 3px;
}

.form-group:has([aria-invalid="true"]) label {
  color: #ffd68a;
}

/* Contador de caracteres del mensaje: solo aparece cerca del límite */
.form-count {
  align-self: flex-end;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.form-count--limit {
  color: #ffd68a;
}

/* La casilla lleva su error debajo, alineado con el texto */
.form-consent-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-consent-wrap .form-error {
  padding-left: 28px;
}

/* Enviando: el botón no admite un segundo clic y muestra un giro */
.form__submit {
  gap: 10px;
}

.form__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: formSpin 0.7s linear infinite;
}

.form__submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.form__submit.is-loading .form__spinner {
  display: inline-block;
}

@keyframes formSpin {
  to { transform: rotate(360deg); }
}

/* Enviado: el panel de confirmación sustituye a los campos */
.contact__form.is-sent > :not(.form-success) {
  display: none;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  background: var(--surface);
  outline: none;
  animation: formIn 0.6s var(--ease-out) both;
}

.form-success[hidden] {
  display: none;
}

@keyframes formIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-high);
  border-radius: 50%;
  color: var(--text-primary);
}

.form-success__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.form-success__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 460px;
}

.form-success__fallback {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
}

.form-success__fallback[hidden] {
  display: none;
}

.form-success__fallback a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--sp-1);
}

@media (max-width: 480px) {
  .form-success {
    padding: var(--sp-4) var(--sp-3);
  }
}

/* Trampa antispam: fuera de la vista pero no display:none, que algunos
   bots lo detectan. Tampoco la leen los lectores de pantalla. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* ─── FOOTER ─── */
.footer {
  padding: var(--sp-7) 0 var(--sp-5);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: var(--sp-1);
}

.footer__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--dur-fast) ease;
}

.footer__logo:hover img {
  opacity: 0.65;
}

.footer__brand-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--sp-3);
  line-height: 1;
}

.footer__brand-serif {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1;
}

.footer__brand-sans {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: 4px;
}

.footer__nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--dur-fast) ease;
}

.footer__nav a:hover {
  color: var(--text-primary);
}

.footer__social-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer__bottom p {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer__location {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — MOBILE OVERHAUL
   ════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .about,
  .services,
  .conciertos,
  .colaboraciones,
  .orlas,
  .lanzarote,
  .contact {
    padding: var(--sp-7) 0;
  }
  .orlas { padding-bottom: calc(var(--sp-7) + 28px); }
  .portfolio { padding-top: var(--sp-7); }
  .services__header {
    margin-bottom: var(--sp-5);
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .about,
  .services,
  .conciertos,
  .colaboraciones,
  .orlas,
  .lanzarote,
  .contact {
    padding: var(--sp-6) 0;
  }
  .orlas { padding-bottom: calc(var(--sp-6) + 28px); }
  .portfolio { padding-top: var(--sp-6); }
  .footer {
    padding: var(--sp-5) 0 var(--sp-4);
  }
  .footer__inner {
    padding-bottom: var(--sp-5);
    margin-bottom: var(--sp-3);
  }
  .services__header {
    margin-bottom: var(--sp-4);
  }

  /* Header logo fits in 72px bar */
  .header__logo img {
    width: 52px;
    height: 52px;
  }

  /* Portfolio viewport fix (browser chrome) */
  .portfolio__pin {
    height: 100svh;
  }

  /* Contact */
  .contact__sub {
    max-width: 100%;
  }
  .contact__detail-link span {
    word-break: break-word;
  }

  /* Footer columns → centered when stacked */
  .footer__nav {
    align-items: center;
  }
  .footer__social-col {
    align-items: center;
    text-align: center;
  }
  .footer__social {
    justify-content: center;
  }
  .footer__bottom {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* ── Small phone (≤ 560px) ── */
@media (max-width: 560px) {
  .about,
  .services,
  .conciertos,
  .colaboraciones,
  .orlas,
  .lanzarote,
  .contact {
    padding: var(--sp-5) 0;
  }
  .orlas { padding-bottom: calc(var(--sp-5) + 20px); }
  .portfolio { padding-top: var(--sp-5); }
  .hero__sub {
    max-width: 100%;
    font-size: 14px;
  }
  .lanzarote__body {
    font-size: 15px;
    max-width: 100%;
  }
  .footer__brand-serif {
    font-size: 34px;
  }
  .footer__inner {
    gap: var(--sp-4);
  }
  .contact__social {
    flex-wrap: wrap;
  }
}

/* ── Very small phone (≤ 390px) ── */
@media (max-width: 390px) {
  .about,
  .services,
  .conciertos,
  .colaboraciones,
  .orlas,
  .lanzarote,
  .contact {
    padding: var(--sp-4) 0;
  }
  .orlas { padding-bottom: calc(var(--sp-4) + 20px); }
  .portfolio { padding-top: var(--sp-4); }
  .hero__ctas .btn {
    padding: 12px 20px;
    font-size: 11px;
  }
  .stat-card__num {
    font-size: 40px;
  }
  .portfolio__card-content {
    padding: var(--sp-3) var(--sp-2);
  }
  .section-title {
    font-size: clamp(30px, 8vw, 64px);
  }
  .orlas__step-num {
    width: 28px;
    font-size: 20px;
  }
  .footer__brand-serif {
    font-size: 28px;
  }
  .footer__brand-sans {
    letter-spacing: 0.15em;
  }
}

/* ─── SCROLL REVEAL (initial states) ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
}

.reveal-fade {
  opacity: 0;
}

/* ─── ACCESSIBILITY ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { display: none; }
  .cursor { display: none; }
  body { cursor: auto; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 3px;
}

/* Secciones que reciben el foco por código (enlaces internos, «Saltar al
   contenido», confirmación del formulario): sin recuadro alrededor. */
[tabindex="-1"]:focus {
  outline: none;
}

/* ─── VOLVER ARRIBA ───
   Aparece al bajar más de una pantalla (js/to-top.js). El anillo se va
   cerrando a medida que se avanza por la página. Queda por debajo del
   menú móvil y del banner de cookies para no taparlos. */
.to-top {
  --ring: 158.65;               /* 2π · r del círculo (r = 25.25) */
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 700;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              background var(--dur-fast) ease,
              color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              visibility 0s linear var(--dur-mid);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              background var(--dur-fast) ease,
              color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              visibility 0s linear 0s;
}

.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.to-top__ring {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.to-top__ring circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: var(--ring);
  stroke-dashoffset: calc(var(--ring) * (1 - var(--progress, 0)));
  transition: stroke-dashoffset 0.12s linear;
}

.to-top__arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-out);
}

.to-top:hover .to-top__arrow {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .to-top {
    right: var(--sp-2);
    bottom: var(--sp-2);
    width: 48px;
    height: 48px;
  }
}

@media (hover: none) {
  .to-top { cursor: pointer; }
}

/* ─── MARQUEE BANDS ─── */
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.marquee-band {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.marquee__inner {
  display: flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: marquee-left 55s linear infinite;
}

.marquee-band--reverse .marquee__inner {
  animation-name: marquee-right;
}

.marquee__item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ─── SERVICE CARD 3D TILT ─── */
.services__grid {
  perspective: 1200px;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255,255,255,0.07) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__inner { animation-play-state: paused !important; }
}

/* ─── Banner ─── */
.cookie-banner {
  position: fixed;
  z-index: 9998;
  left: var(--sp-3);
  bottom: var(--sp-3);
  width: min(480px, calc(100vw - var(--sp-3) * 2));
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: var(--sp-3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cookie-banner__body {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.cookie-banner__body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-high);
  transition: text-decoration-color var(--dur-fast) ease;
}

.cookie-banner__body a:hover {
  text-decoration-color: var(--text-primary);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Aceptar y Rechazar reparten el ancho a partes iguales; Configurar
   queda a la derecha como enlace, sin competir con ellos. */
.cookie-banner__actions .cookie-btn--primary,
.cookie-banner__actions .cookie-btn--outline {
  flex: 1 1 0;
  min-width: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.cookie-btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.cookie-btn--primary:hover {
  background: rgba(255, 255, 255, 0.88);
}

.cookie-btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-high);
}

.cookie-btn--outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.cookie-btn--ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 11px 8px;
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}

.cookie-btn--ghost:hover {
  color: var(--text-primary);
  text-decoration-color: var(--border-high);
}

/* ─── Panel de preferencias ─── */
.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.cookie-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Sin esto el display:flex de arriba ganaba al atributo hidden y los
   botones del panel cerrado seguían recibiendo el foco del tabulador. */
.cookie-panel[hidden] {
  display: none;
}

.cookie-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cookie-panel__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(86vh, 720px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform var(--dur-mid) var(--ease-out);
}

.cookie-panel.is-visible .cookie-panel__box {
  transform: translateY(0);
}

.cookie-panel__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cookie-panel__body {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.cookie-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px var(--sp-2);
  align-items: center;
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--border);
}

.cookie-cat__name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cookie-cat__desc {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}

.cookie-cat__fixed {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Interruptor */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: none;
}

.cookie-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border-mid);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  pointer-events: none;
}

.cookie-switch__track::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transform: translateY(-50%);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.cookie-switch input:checked + .cookie-switch__track {
  background: var(--accent);
  border-color: var(--accent);
}

.cookie-switch input:checked + .cookie-switch__track::after {
  background: var(--bg);
  transform: translateY(-50%) translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch__track {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.cookie-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

/* Guardar preferencias es la acción propia del panel: fila entera y arriba.
   Debajo, los dos atajos con el mismo ancho. */
.cookie-panel__actions .cookie-btn--primary {
  grid-column: 1 / -1;
}

.cookie-panel__actions .cookie-btn {
  width: 100%;
  white-space: normal;
}

@media (max-width: 560px) {
  .cookie-banner {
    left: var(--sp-2);
    right: var(--sp-2);
    bottom: var(--sp-2);
    width: auto;
  }
  .cookie-banner__actions .cookie-btn--primary,
  .cookie-banner__actions .cookie-btn--outline {
    flex: 1 1 140px;
  }
  .cookie-btn--ghost {
    margin-left: 0;
    flex-basis: 100%;
  }
}

/* Por debajo de 400px no caben dos botones seguidos sin partir el texto. */
@media (max-width: 400px) {
  .cookie-panel__actions {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   PÁGINAS LEGALES
   ═══════════════════════════════════════════════ */
.legal {
  padding: calc(var(--header-h) + var(--sp-7)) 0 var(--sp-7);
}

.legal__inner {
  max-width: 820px;
}

.legal__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.legal__updated {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}

/* Bloques por idioma: solo se muestra el activo */
[data-lang-block] { display: none; }
[data-lang-block].is-active { display: block; }

.legal h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin: var(--sp-5) 0 var(--sp-2);
}

.legal h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: var(--sp-3) 0 10px;
}

.legal p,
.legal li {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
}

.legal p { margin-bottom: var(--sp-2); }

.legal ul {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
}

.legal li {
  position: relative;
  padding-left: var(--sp-3);
  margin-bottom: 8px;
}

.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 1px;
  background: var(--border-high);
}

.legal strong {
  color: var(--text-primary);
  font-weight: 500;
}

.legal a:not(.btn):not(.cookie-btn) {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-high);
  transition: text-decoration-color var(--dur-fast) ease;
}

.legal a:not(.btn):not(.cookie-btn):hover {
  text-decoration-color: var(--text-primary);
}

/* Dato pendiente de aportar por el cliente */
.legal__ph {
  display: inline-block;
  padding: 1px 7px;
  border: 1px dashed rgba(255, 214, 138, 0.45);
  border-radius: 2px;
  background: rgba(255, 214, 138, 0.07);
  color: #ffd68a;
  font-size: 0.92em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Aviso de datos pendientes — quitar cuando la web esté completa */
.legal__notice {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid rgba(255, 214, 138, 0.28);
  border-radius: 3px;
  background: rgba(255, 214, 138, 0.05);
  margin-bottom: var(--sp-4);
}

.legal__notice p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 214, 138, 0.85);
}

/* Tabla de cookies */
.legal__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: var(--sp-3);
}

.legal__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--font-sans);
}

.legal__table th,
.legal__table td {
  text-align: left;
  padding: 12px var(--sp-2);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  vertical-align: top;
}

.legal__table th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  white-space: nowrap;
}

.legal__table tr:last-child td { border-bottom: none; }

.legal__table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--text-primary);
}

/* Bloque de acción al final (p. ej. abrir el panel de cookies) */
.legal__action {
  margin: var(--sp-3) 0 var(--sp-2);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast) ease;
  width: 100%;
}

.legal__back:hover { color: var(--text-primary); }

@media (max-width: 768px) {
  .legal {
    padding: calc(var(--header-h) + var(--sp-5)) 0 var(--sp-6);
  }
  .legal p,
  .legal li { font-size: 13.5px; }
}

/* ─── Enlaces legales del footer ─── */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px var(--sp-2);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.footer__legal a,
.footer__legal button {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: none;
  transition: color var(--dur-fast) ease;
}

.footer__legal a:hover,
.footer__legal button:hover {
  color: var(--text-primary);
}

.footer__legal-sep {
  color: var(--border-high);
  font-size: 10px;
  user-select: none;
}

@media (max-width: 480px) {
  .footer__legal-sep { display: none; }
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ─── Créditos fotográficos del footer ─── */
.footer__credits {
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.footer__credits-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer__credits-label svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke-width: 1.5;
}

.footer__credits-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  max-width: 88ch;
}

.footer__credits-name {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .footer__credits {
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-2);
  }
  .footer__credits-text { font-size: 11.5px; }
}

/* ─── Casilla de consentimiento del formulario ─── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: calc(-1 * var(--sp-1));
}

.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: grid;
  place-content: center;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid var(--border-high);
  border-radius: 2px;
  background: transparent;
  cursor: none;
  transition: background var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}

.form-consent input[type="checkbox"]::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.form-consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-consent input[type="checkbox"]:checked::after {
  opacity: 1;
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.form-consent label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  cursor: none;
}

.form-consent label a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-high);
  transition: color var(--dur-fast) ease;
}

.form-consent label a:hover { color: var(--text-primary); }
