/* Engrut Cerámica · hoja principal
   Paleta del manual: taupé #F4EDE6 (fondo), teja #AA5638 (todo el texto),
   secundarios #EEF2F8 y #4F6074 (uso puntual; la página de Xàtiva los usa como pareja principal). */

@import url('../fonts/fuentes.css');

:root {
  --taupe: #F4EDE6;
  --teja: #AA5638;
  --azul-claro: #EEF2F8;
  --azul: #4F6074;
  --blanco: #FFFFFF;
  --fondo: var(--taupe);
  --tinta: var(--teja);
  --tinta-suave: rgba(170, 86, 56, .55);
  --linea: rgba(170, 86, 56, .22);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Noto Sans', system-ui, sans-serif;
  --lado: clamp(20px, 4vw, 60px);
  --ancho: 1440px;
  --seccion: clamp(88px, 10vw, 160px);
  --suave: cubic-bezier(.25, 1, .5, 1);
  --rapido: cubic-bezier(.2, .75, .5, 1);
  --nav-alto: 112px;
}

body.xativa {
  --fondo: var(--azul-claro);
  --tinta: var(--azul);
  --tinta-suave: rgba(79, 96, 116, .55);
  --linea: rgba(79, 96, 116, .22);
}
body.privados {
  --fondo: var(--teja);
  --tinta: var(--taupe);
  --tinta-suave: rgba(244, 237, 230, .7);
  --linea: rgba(244, 237, 230, .25);
}
body.contacto {
  --fondo: var(--azul);
  --tinta: var(--azul-claro);
  --tinta-suave: rgba(238, 242, 248, .7);
  --linea: rgba(238, 242, 248, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--tinta); color: var(--fondo); }

/* ---------- Tipografía ---------- */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .98;
  margin: 0;
}
h1, .h1 { font-size: clamp(56px, 8.2vw, 124px); }
h2, .h2 { font-size: clamp(42px, 5.4vw, 80px); }
h3, .h3 { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.05; }
.h4 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.1; margin: 0; }
h1 em, h2 em, h3 em, .h1 em, .h2 em { font-style: italic; text-transform: none; }

.etiqueta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 0 22px;
}
.etiqueta::before { content: '/ '; }
.etiqueta::after { content: ' /'; }
.etiqueta--numero::before { content: attr(data-n) ' / '; }
.etiqueta--numero::after { content: none; }

.grande { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }
.pequeno { font-size: 14px; }
.suave { color: var(--tinta-suave); }
.meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; font-weight: 500; }
.meta span + span::before { content: '/'; margin: 0 10px; }
.prosa { max-width: 68ch; }
.prosa a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prosa h2 { font-size: clamp(30px, 3vw, 44px); margin: 2em 0 .6em; }
.prosa h3 { margin: 1.6em 0 .5em; }
.prosa ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.2em; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 34px;
  border: 1px solid var(--tinta);
  color: var(--tinta);
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 0;
  transition: background-color .35s var(--rapido), color .35s var(--rapido), border-color .35s var(--rapido);
}
.btn:hover { background: var(--tinta); color: var(--fondo); }
.btn--solido { background: var(--tinta); color: var(--fondo); }
.btn--solido:hover { background: transparent; color: var(--tinta); }
.btn--claro { border-color: var(--blanco); color: var(--blanco); }
.btn--claro:hover { background: var(--blanco); color: var(--teja); border-color: var(--blanco); }
.btn--claro-solido { background: var(--blanco); color: var(--teja); border-color: var(--blanco); }
.btn--claro-solido:hover { background: transparent; color: var(--blanco); }
.btn--inverso { border-color: var(--tinta); color: var(--tinta); }
.btn svg { width: 14px; height: 14px; transition: transform .4s var(--rapido); }
.btn:hover svg { transform: translateX(4px); }

.enlace {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-bottom: 6px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left bottom;
  transition: background-size .55s var(--rapido);
}
.enlace:hover { background-size: 0 1px; background-position: right bottom; }
.enlace--sube { background-size: 0 1px; }
.enlace--sube:hover { background-size: 100% 1px; background-position: left bottom; }
.enlace-texto {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: left bottom;
  transition: background-size .55s var(--rapido);
}
.enlace-texto:hover { background-size: 100% 1px; }

/* ---------- Estructura ---------- */
.contenedor { width: min(100% - 2 * var(--lado), var(--ancho)); margin-inline: auto; }
.seccion { padding: var(--seccion) 0; }
.seccion--corta { padding: calc(var(--seccion) * .6) 0; }
.seccion--sin-arriba { padding-top: 0; }
.seccion--sin-abajo { padding-bottom: 0; }
.seccion--azul { background: var(--azul-claro); color: var(--azul); }
.seccion--azul { --tinta: var(--azul); --fondo: var(--azul-claro); --linea: rgba(79, 96, 116, .22); --tinta-suave: rgba(79, 96, 116, .55); }
.seccion--azul-oscuro { background: var(--azul); color: var(--azul-claro); --tinta: var(--azul-claro); --fondo: var(--azul); --linea: rgba(238, 242, 248, .25); --tinta-suave: rgba(238, 242, 248, .7); }
.seccion--teja { background: var(--teja); color: var(--taupe); }
.seccion--teja { --tinta: var(--taupe); --fondo: var(--teja); --linea: rgba(244, 237, 230, .25); --tinta-suave: rgba(244, 237, 230, .6); }

.cabecera-seccion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 90px);
}
.cabecera-seccion .h2 { margin: 0; }
.cabecera-seccion .lado {
  max-width: 46ch;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.cabecera-seccion--centrada { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.cabecera-seccion--centrada .lado { justify-self: center; align-items: center; }

.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.dos-columnas--arriba { align-items: start; }
.dos-columnas--estrecha { grid-template-columns: 5fr 7fr; }
.dos-columnas--invertida { grid-template-columns: 7fr 5fr; }

.linea { border: 0; border-top: 1px solid var(--linea); margin: 0; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-alto);
  padding-top: 18px;
  display: flex;
  align-items: center;
  color: var(--blanco);
  background: transparent;
  transition: background-color .5s var(--suave), color .5s var(--suave), transform .5s var(--suave), box-shadow .5s var(--suave);
}
.nav .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.nav__logo { display: block; width: 156px; height: 47px; position: relative; line-height: 0; overflow: visible; }
.nav__logo svg, .nav__logo img { display: block; width: 100%; height: 100%; overflow: visible; }
.nav__logo .logo-teja { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .35s ease; }
.nav__logo .logo-blanco { opacity: 1; transition: opacity .35s ease; }
.nav__menu { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 36px); }
.nav__menu a {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.4;
  height: 1.4em;
  overflow: hidden;
  display: block;
  position: relative;
  white-space: nowrap;
}
.nav__menu a span { display: block; transition: transform .7s var(--rapido); }
.nav__menu a span::after { content: attr(data-texto); display: block; }
.nav__menu a:hover span { transform: translateY(-50%); }
.nav__menu a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.nav__cta { margin-left: 10px; }
.nav .btn--claro { padding: 13px 22px; }
.nav--solida {
  background: rgba(244, 237, 230, .965);
  color: var(--teja);
  box-shadow: none;
  padding-top: 0;
}
body.privados .nav--solida { background: rgba(170, 86, 56, .965); color: var(--taupe); }
body.contacto .nav--solida { background: rgba(79, 96, 116, .965); color: var(--azul-claro); }
body.xativa .nav--solida { background: rgba(238, 242, 248, .965); color: var(--azul); }
.nav--solida .nav__logo .logo-teja { opacity: 1; }
.nav--solida .nav__logo .logo-blanco { opacity: 0; }
.nav--solida .btn--claro { border-color: var(--tinta); color: var(--tinta); }
.nav--solida .btn--claro:hover { background: var(--tinta); color: var(--fondo); }
.nav--oculta { transform: translateY(-100%); }
.nav--menu-abierto { color: var(--teja); background: transparent; box-shadow: none; }
.nav--menu-abierto .nav__logo .logo-teja { opacity: 1; }
.nav--menu-abierto .nav__logo .logo-blanco { opacity: 0; }
body.sin-hero main { padding-top: calc(var(--nav-alto) + 40px); }
body.sin-hero .nav { color: var(--tinta); }
body.sin-hero .nav .nav__logo .logo-teja { opacity: 1; }
body.sin-hero .nav .nav__logo .logo-blanco { opacity: 0; }
body.sin-hero .nav .btn--claro { border-color: var(--tinta); color: var(--tinta); }
body.sin-hero .nav .btn--claro:hover { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  margin-right: -10px;
}
.nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform .6s var(--rapido), top .3s ease;
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav--menu-abierto .nav__burger span:nth-child(1) { top: 21px; transform: rotate(-135deg); }
.nav--menu-abierto .nav__burger span:nth-child(2) { top: 21px; transform: rotate(135deg); }

.menu-movil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--fondo);
  color: var(--tinta);
  height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-movil ul { padding: 0 var(--lado); }
.menu-movil li { overflow: hidden; }
.menu-movil li a {
  display: block;
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.4;
}
/* Estado inicial de la animación solo con JS (sin JS los enlaces se ven); GSAP lo controla con yPercent */
html.js .menu-movil li a { transform: translateY(110%); }
.menu-movil__pie { padding: 40px var(--lado) 0; font-size: 13px; }
.menu-movil__pie a { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  color: var(--blanco);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero--medio { height: 74svh; min-height: 520px; }
.hero__fondo { position: absolute; inset: 0; }
.hero__fondo img, .hero__fondo video { width: 100%; height: 100%; object-fit: cover; }
.hero__velo { position: absolute; inset: 0; background: rgba(0, 0, 0, .30); }
.hero__velo--suave { background: linear-gradient(180deg, rgb(20 16 10 / .30) 0%, rgb(20 16 10 / .22) 40%, rgb(20 16 10 / .56) 100%); }
.hero__velo--teja { background: rgba(170, 86, 56, .55); }
.hero__contenido { position: relative; padding-bottom: clamp(48px, 7vh, 90px); }
html.captura .hero { height: 900px; }
html.captura .hero--medio, html.captura .cabecera-pagina:not(.cabecera-pagina--color) { height: 760px; }
.hero__contenido .etiqueta { margin-bottom: 26px; }
.hero__contenido .h1 { font-size: clamp(42px, 5.4vw, 80px); max-width: 16ch; margin-bottom: 30px; }
.hero__pie { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__sub { max-width: 48ch; font-size: 16px; line-height: 1.6; }
.hero__botones { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__arriba { position: absolute; top: calc(var(--nav-alto) + 28px); right: 0; max-width: 34ch; font-size: 14px; line-height: 1.55; text-transform: uppercase; letter-spacing: .06em; }
.hero__scroll {
  position: absolute; right: 0; bottom: 24px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  writing-mode: vertical-rl; display: none;
}

/* ---------- Máscaras de revelado (imágenes) ---------- */
.mascara { overflow: hidden; position: relative; }
.mascara img { width: 100%; height: 100%; object-fit: cover; }
.mascara--4x5 { aspect-ratio: 4 / 5; }
.mascara--3x4 { aspect-ratio: 3 / 4; }
.mascara--1x1 { aspect-ratio: 1; }
.mascara--3x2 { aspect-ratio: 3 / 2; }
.mascara--16x9 { aspect-ratio: 16 / 9; }
.mascara--128 { aspect-ratio: 641 / 501; }
/* Estado inicial de cada variante (data-revelar): cortina por defecto, fundido, zoom y lateral */
html.js:not(.captura) [data-revelar=""]:not(.revelado),
html.js:not(.captura) [data-revelar="cortina"]:not(.revelado) { clip-path: inset(100% 0 0 0); }
html.js:not(.captura) [data-revelar=""]:not(.revelado) img,
html.js:not(.captura) [data-revelar="cortina"]:not(.revelado) img { transform: scale(1.18); }
html.js:not(.captura) [data-revelar="fundido"]:not(.revelado) { opacity: 0; }
html.js:not(.captura) [data-revelar="zoom"]:not(.revelado) { opacity: 0; }
html.js:not(.captura) [data-revelar="zoom"]:not(.revelado) img { transform: scale(1.08); }
html.js:not(.captura) [data-revelar="lateral"]:not(.revelado) { clip-path: inset(0 100% 0 0); }
.parallax { overflow: hidden; }
.parallax img, .parallax video { will-change: transform; height: 125%; width: 100%; object-fit: cover; }

/* ---------- Tarjetas ---------- */
.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.tarjetas--3 { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 60px); }
.tarjetas--2 { grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3.5vw, 50px); }
.tarjeta { display: block; }
.tarjeta .mascara img { transition: transform .75s ease-out; }
.tarjeta:hover .mascara img { transform: scale(1.05); }
.tarjeta__cuerpo { padding-top: 20px; }
.tarjeta__titulo { font-family: var(--serif); text-transform: uppercase; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.05; margin: 0 0 8px; }
.tarjeta__texto { font-size: 14px; line-height: 1.55; color: var(--tinta-suave); max-width: 32ch; }
.tarjeta__texto--completo { color: inherit; max-width: none; }
.tarjeta .enlace { margin-top: 14px; }

/* ---------- Bloque destacado 6/6 (estilo cuit /cursos) ---------- */
.destacado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 3vw, 48px);
}
.destacado--azul { background: var(--azul-claro); color: var(--azul); --tinta: var(--azul); --fondo: var(--azul-claro); --tinta-suave: rgba(79,96,116,.6); }
.destacado--teja { background: var(--teja); color: var(--taupe); --tinta: var(--taupe); --fondo: var(--teja); --tinta-suave: rgba(244,237,230,.7); }
.destacado--azul-oscuro { background: var(--azul); color: var(--azul-claro); --tinta: var(--azul-claro); --fondo: var(--azul); --tinta-suave: rgba(238,242,248,.7); --linea: rgba(238,242,248,.25); }
.destacado--taupe { background: var(--taupe); color: var(--teja); --tinta: var(--teja); --fondo: var(--taupe); --tinta-suave: rgba(170,86,56,.6); --linea: rgba(170,86,56,.22); }
.destacado__texto { padding-right: clamp(0px, 3vw, 48px); }
.destacado__texto .h2, .destacado__texto .h3 { margin-bottom: 22px; }
.destacado__texto p { max-width: 44ch; }
.destacado__texto .btn, .destacado__texto .enlace { margin-top: 28px; }

/* ---------- Preguntas (Háztelo fácil) ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq--invertida { grid-template-columns: 7fr 5fr; }
.faq--invertida > :last-child { justify-self: end; text-align: left; }
.faq__lista { border-top: 1px solid var(--linea); }
.faq__item { border-bottom: 1px solid var(--linea); }
.faq__pregunta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.faq__icono { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icono::before, .faq__icono::after { content: ''; position: absolute; background: currentColor; transition: transform .4s var(--rapido); }
.faq__icono::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.faq__icono::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }
.faq__item.abierto .faq__icono::after { transform: rotate(90deg); }
.faq__respuesta { height: 0; overflow: hidden; }
.faq__respuesta > div { padding: 0 0 26px; max-width: 52ch; }

/* ---------- Marquesina ---------- */
.marquesina { overflow: hidden; white-space: nowrap; padding: clamp(8px, 1vw, 14px) 0; }
.marquesina__pista { display: inline-flex; gap: 0; will-change: transform; }
.marquesina__grupo { display: inline-flex; align-items: center; gap: clamp(28px, 3vw, 48px); padding-right: clamp(28px, 3vw, 48px); }
.marquesina span { font-family: var(--serif); text-transform: uppercase; font-size: clamp(64px, 9vw, 150px); line-height: 1; }
.marquesina i { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: currentColor; font-size: clamp(64px, 9vw, 150px); }

/* ---------- Franja con imagen (CTA final, cabeceras interiores) ---------- */
.franja {
  position: relative;
  color: var(--blanco);
  overflow: hidden;
  padding: clamp(120px, 18vw, 260px) 0;
}
/* Parallax fuera de la cabecera: la foto (más alta que su hueco) va centrada para que, al moverse
   arriba y abajo con el scroll, nunca deje ver una franja del fondo en un borde */
.franja .hero__fondo img { height: 130%; position: relative; top: -15%; }
.mascara.parallax img { position: absolute; left: 0; top: -12.5%; }
.franja__contenido { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.franja__contenido .h2 { max-width: 14ch; }

.cabecera-pagina { position: relative; color: var(--blanco); overflow: hidden; height: 84svh; min-height: 600px; display: flex; align-items: flex-end; }
.cabecera-pagina .hero__contenido .h1 { font-size: clamp(42px, 5.4vw, 80px); max-width: 16ch; }
.cabecera-pagina--color { height: auto; min-height: 0; color: var(--tinta); padding-top: calc(var(--nav-alto) + clamp(56px, 8vw, 120px)); }
.cabecera-pagina--color .hero__contenido { padding-bottom: clamp(40px, 5vw, 72px); }

/* ---------- Listado de talleres ---------- */
.talleres { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px) clamp(20px, 2.6vw, 40px); }
.taller { display: block; position: relative; }
.taller__fecha {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: var(--fondo); color: var(--tinta); border: 1px solid var(--linea);
  padding: 18px 24px; text-align: center; line-height: 1;
}
.taller__fecha b { display: block; font-family: var(--serif); font-size: 60px; font-weight: 400; margin: 8px 0 10px; }
.taller__fecha small { display: block; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.taller__completo { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--tinta); color: var(--fondo); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 8px 10px; }
.taller--completo .mascara img { filter: saturate(.6); opacity: .75; }
.taller__cuerpo { padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: baseline; }
.taller__titulo { font-family: var(--serif); text-transform: uppercase; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.05; margin: 0; }
.taller__precio { font-family: var(--serif); font-size: 24px; line-height: 1; white-space: nowrap; }
.taller__precio small { font-family: var(--sans); font-size: 11px; letter-spacing: .06em; opacity: .6; margin-left: 4px; }
.taller__datos { grid-column: 1 / -1; font-size: 13px; color: var(--tinta-suave); display: flex; gap: 14px; flex-wrap: wrap; }
.taller__datos span + span::before { content: '·'; margin-right: 14px; }

.filtros { display: flex; gap: 8px 28px; flex-wrap: wrap; align-items: center; margin-bottom: clamp(32px, 4vw, 56px); padding-bottom: 20px; border-bottom: 1px solid var(--linea); }
.filtros button, .filtros a { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; opacity: .5; transition: opacity .3s ease; }
.filtros button:hover, .filtros a:hover, .filtros .activo { opacity: 1; }
.filtros sup { font-size: 9px; margin-left: 4px; }

/* ---------- Ficha de un taller ---------- */
.ficha { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 5vw, 90px); align-items: start; }
.ficha__galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ficha__galeria > :first-child { grid-column: 1 / -1; }
.ficha__puntos { display: none; }
.ficha__datos { position: sticky; top: calc(var(--nav-alto) + 24px); }
.ficha__datos .h2 { font-size: clamp(38px, 4vw, 60px); margin: 10px 0 24px; }
.ficha__precio { font-family: var(--serif); font-size: 40px; line-height: 1; margin-bottom: 28px; }
.ficha__precio small { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; opacity: .6; margin-left: 8px; }
.ficha__tabla { border-top: 1px solid var(--linea); margin-bottom: 52px; }
.ficha__tabla div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 14px; }
.ficha__tabla dt { font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin: 0; padding-top: 3px; }
.ficha__tabla dd { margin: 0; }
.ficha__tabla-reserva dt { opacity: 1; }
.ficha__tabla-reserva dd { font-family: var(--serif); font-size: 22px; line-height: 1; }
.ficha__detalle { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: -14px 0 22px; }
.ficha__nota { font-size: 13px; color: var(--tinta-suave); margin-top: 18px; }
.ficha__reserva { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cantidad { display: inline-flex; border: 1px solid var(--tinta); height: 47px; }
.cantidad button { width: 44px; font-size: 18px; }
.cantidad input { width: 44px; text-align: center; border: 0; background: transparent; color: inherit; font: inherit; -moz-appearance: textfield; appearance: textfield; }
.cantidad input::-webkit-outer-spin-button, .cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ficha__destacado { font-weight: 600; margin: 24px 0 0; }

/* ---------- Bloques pregunta / respuesta (talleres privados, clases) ---------- */
.bloques { border-top: 1px solid var(--linea); }
.bloque { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--linea); }
.bloque .h3 { max-width: 14ch; }
.bloques--columna .bloque { grid-template-columns: 1fr; gap: 14px; padding: clamp(26px, 3vw, 36px) 0; }
.bloques--columna .bloque .h3 { max-width: none; }
.bloque__texto { max-width: 56ch; }
.bloque__texto ul { margin: 18px 0 0; border-top: 1px solid var(--linea); }
.bloque__texto li { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.bloque__texto li span:last-child { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .6; padding-top: 4px; }
.horarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 8px; }
.horarios div { border-top: 1px solid var(--tinta); padding-top: 14px; }
.horarios b { display: block; font-family: var(--serif); text-transform: uppercase; font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.horarios span { display: block; font-size: 14px; }

/* ---------- Vale regalo ---------- */
.vale { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 5vw, 90px); align-items: start; }
.formulario { display: grid; gap: 22px; }
.campo { display: grid; gap: 8px; }
.campo label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .7; }
.campo input, .campo textarea, .campo select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--tinta);
  padding: 10px 0; font: inherit; color: inherit; border-radius: 0; outline: none;
}
.campo textarea { min-height: 90px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-bottom-width: 2px; }
.opciones { display: grid; gap: 0; border-top: 1px solid var(--linea); }
.opcion { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--linea); cursor: pointer; }
.opcion input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--tinta); border-radius: 50%; margin: 0 14px 0 0; flex: none; position: relative; }
.opcion input:checked::after { content: ''; position: absolute; inset: 3px; background: var(--tinta); border-radius: 50%; }
.opcion > span:first-of-type { flex: 1; display: flex; align-items: center; }
.opcion b { font-family: var(--serif); font-size: 22px; font-weight: 400; white-space: nowrap; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); counter-reset: paso; }
.paso { border-top: 1px solid var(--tinta); padding-top: 20px; }
.paso::before { counter-increment: paso; content: '0' counter(paso); display: block; font-family: var(--serif); font-size: 40px; line-height: 1; margin-bottom: 14px; }
.paso b { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.paso p { font-size: 14px; color: var(--tinta-suave); }
.vale__tarjeta { position: relative; }
.vale__tarjeta .mascara { aspect-ratio: 4 / 5; }
.vale__sello {
  position: absolute; right: -6%; top: 6%; width: 170px; height: 170px; border-radius: 50%;
  background: var(--fondo); color: var(--tinta); display: grid; place-items: center; text-align: center;
  font-family: var(--serif); text-transform: uppercase; font-size: 20px; line-height: 1; padding: 20px;
  animation: gira 18s linear infinite;
}
.vale__sello--teja { background: var(--teja); color: var(--taupe); width: 180px; height: 180px; padding: 0; }
.vale__sello--teja svg { width: 100%; height: 100%; }
.vale__sello--teja text { font-family: var(--serif); font-size: 30px; letter-spacing: .06em; text-transform: uppercase; fill: var(--taupe); }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- Contacto / espacios ---------- */
.locales { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 90px); }
.local .mascara { margin-bottom: 26px; }
.local .h2 { font-size: clamp(38px, 4vw, 64px); margin-bottom: 8px; }
.local__tipo { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .6; margin-bottom: 20px; display: block; }
.local address { font-style: normal; font-size: 16px; line-height: 1.6; }
.local .enlace { margin-top: 16px; }
.mapa { aspect-ratio: 16 / 7; background: var(--azul-claro); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.25) contrast(.9); }
.datos-contacto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.datos-contacto b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .6; margin-bottom: 12px; }
.datos-contacto a { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }

/* ---------- Blog (teaser) ---------- */
.entrada { display: block; }
.entrada .mascara { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.entrada .mascara img { transition: transform .4s ease; }
.entrada:hover .mascara img { transform: scale(1.05); }
.entrada .meta { margin-bottom: 10px; display: block; }
.entrada__titulo { font-family: var(--serif); text-transform: uppercase; font-size: clamp(24px, 2vw, 30px); line-height: 1.05; margin: 0 0 10px; }
.entrada p { font-size: 14px; color: var(--tinta-suave); max-width: 38ch; }

/* ---------- Entrada de blog: siguiente ---------- */
.siguiente-entrada { display: flex; align-items: center; gap: 24px; padding-top: clamp(40px, 5vw, 64px); }
.siguiente-entrada .mascara { width: 110px; flex: none; }
.siguiente-entrada__texto .etiqueta { margin-bottom: 10px; }
.siguiente-entrada__texto .h4 { margin-bottom: 12px; }

/* ---------- Pie ---------- */
.pie {
  background: var(--teja);
  color: var(--taupe);
  --tinta: var(--taupe); --fondo: var(--teja); --linea: rgba(244, 237, 230, .22);
  padding: clamp(64px, 7vw, 110px) 0 32px;
  font-size: 14px;
  line-height: 1.6;
}
body.xativa .pie { background: var(--azul); color: var(--azul-claro); --tinta: var(--azul-claro); --fondo: var(--azul); --linea: rgba(238,242,248,.22); }
body.privados .pie { background: var(--taupe); color: var(--teja); --tinta: var(--teja); --fondo: var(--taupe); --linea: rgba(170,86,56,.22); }
body.contacto .pie { background: var(--azul-claro); color: var(--azul); --tinta: var(--azul); --fondo: var(--azul-claro); --linea: rgba(79,96,116,.22); }
.pie__arriba { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
.pie__logo { width: 170px; margin-bottom: 26px; display: block; }
.pie__logo svg { width: 100%; height: auto; }
.pie__lema { max-width: 30ch; }
.pie b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .7; margin-bottom: 14px; }
.pie address { font-style: normal; }
.pie li { margin-bottom: 6px; }
.pie a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 1px; background-position: left bottom; transition: background-size .45s var(--rapido); }
.pie a:hover { background-size: 100% 1px; }
.pie__cta { padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.pie__cta .h2 { font-size: clamp(34px, 4.4vw, 68px); max-width: 16ch; }
.pie__abajo { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 12px; letter-spacing: .04em; opacity: .85; }
.pie__abajo ul { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Subir arriba ---------- */
.arriba {
  position: fixed; right: clamp(16px, 2vw, 32px); bottom: clamp(16px, 2vw, 32px); z-index: 45;
  width: 52px; height: 52px; border: 1px solid var(--tinta); background: var(--fondo); color: var(--tinta);
  display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s var(--suave), transform .4s var(--suave), background-color .35s, color .35s;
}
.arriba svg { width: 18px; height: 18px; }
.arriba--visible { opacity: 1; transform: none; pointer-events: auto; }
.arriba:hover { background: var(--tinta); color: var(--fondo); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; will-change: transform;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--teja);
  display: grid; place-items: center;
  transition: width .25s ease, height .25s ease, margin .25s ease, background-color .25s ease, opacity .2s ease;
  opacity: 0;
}
.cursor span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--taupe); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.cursor--enlace { opacity: 1; width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(170, 86, 56, .35); }
.cursor--texto { opacity: 1; width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--teja); }
.cursor--texto span { opacity: 1; transform: none; }
.cursor-flecha { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; will-change: transform; width: 30px; height: 30px; opacity: 0; transition: opacity .15s ease; }
.cursor-flecha svg { display: block; width: 30px; height: 30px; }
.cursor-flecha.cursor--visible { opacity: 1; }
.cursor-flecha.cursor--oculta { opacity: 0; }
body.con-cursor a, body.con-cursor button { cursor: none; }
body.con-cursor { cursor: none; }

/* ---------- Estados de animación (JS los anima; sin JS todo se ve) ---------- */
html.js [data-aparece] { opacity: 0; }
.palabras { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .14em 0 .08em; margin: -.14em 0 -.08em; }
.palabras > span { display: inline-block; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .talleres { grid-template-columns: repeat(2, 1fr); }
  .pie__arriba { grid-template-columns: 1fr 1fr 1fr; }
  .pie__arriba > :first-child { grid-column: 1 / -1; }
  .faq--invertida { grid-template-columns: 1fr; }
  .faq--invertida > :last-child { justify-self: start; }
}
@media (max-width: 900px) {
  :root { --nav-alto: 84px; }
  .nav { padding-top: 10px; }
  .nav__logo { width: 124px; height: 37px; }
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .vale__sello { right: 16px; }
  .cabecera-seccion, .dos-columnas, .dos-columnas--estrecha, .dos-columnas--invertida, .destacado, .faq, .ficha, .vale, .locales, .bloque { grid-template-columns: 1fr; }
  .cabecera-seccion .lado { justify-self: start; }
  .cabecera-seccion--centrada .lado { justify-self: center; }
  .ficha__datos { position: static; }
  /* Cabeceras de color (Contacto): la página ya deja hueco para el menú; aquí solo un respiro */
  .cabecera-pagina--color { padding-top: 56px; }
  /* Listados: más aire entre la información («Todo incluido») y los filtros por tipo */
  .filtros:has(+ .talleres) { padding-top: 40px; }
  /* Preguntas en móvil: primero número y título, luego las preguntas y al final la duda y el botón */
  .faq { row-gap: 0; }
  .faq > div:not(.faq__lista) { display: contents; }
  .faq > div:not(.faq__lista) > .etiqueta, .faq > div:not(.faq__lista) > .h2 { order: 1; }
  .faq > .faq__lista { order: 2; margin: 34px 0 30px; }
  .faq > div:not(.faq__lista) > :not(.etiqueta):not(.h2) { order: 3; justify-self: start; }
  .faq > div:not(.faq__lista) > p:not(.etiqueta) { margin-top: 0 !important; }
  /* Galería de la ficha en carrusel: mismas proporciones, la siguiente asoma, puntos debajo */
  .ficha__galeria { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .ficha__galeria::-webkit-scrollbar { display: none; }
  .ficha__galeria > .mascara { flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .ficha__galeria > .mascara:last-child { scroll-snap-align: end; }
  .ficha__puntos { display: flex; justify-content: center; gap: 10px; margin-top: -24px; }
  .ficha__puntos { align-items: center; }
  .ficha__puntos button { width: 8px; height: 8px; border-radius: 8px; border: 0; background: var(--tinta); opacity: .3; padding: 0; transition: width .35s ease, opacity .35s ease; }
  .ficha__puntos button.activo { width: 26px; opacity: 1; }
  .hero__arriba { display: none; }
  .hero__pie { flex-direction: column; align-items: flex-start; gap: 26px; }
  .tarjetas--3, .tarjetas--2 { grid-template-columns: 1fr 1fr; }
  .datos-contacto, .pasos { grid-template-columns: 1fr; gap: 28px; }
  .pie__cta { flex-direction: column; align-items: flex-start; }
  .cursor { display: none; }
}
@media (max-width: 560px) {
  .tarjetas, .tarjetas--3, .tarjetas--2, .talleres { grid-template-columns: 1fr; }
  .pie__arriba { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero__contenido .h1 { max-width: none; }
  .destacado { padding: 24px; }
  .taller__cuerpo { grid-template-columns: 1fr; }
  .taller__fecha { padding: 15px 20px; top: 14px; left: 14px; }
  .taller__fecha b { font-size: 52px; }
  .taller__fecha small { font-size: 13px; }
  .vale__sello { width: 120px; height: 120px; font-size: 15px; right: 12px; top: 4%; }
  .vale__sello--teja { width: 150px; height: 150px; }
  .arriba { width: 44px; height: 44px; }
  .bloque .h3 { max-width: none; }
  .horarios { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__fondo video { display: none; }
  .hero__fondo { background: url('../img/cabecera-poster.jpg') center / cover no-repeat; }
  html.js [data-aparece] { opacity: 1; }
  html.js:not(.captura) [data-revelar]:not(.revelado) { clip-path: none; opacity: 1; }
  html.js:not(.captura) [data-revelar]:not(.revelado) img { transform: none; }
  .marquesina__pista { transform: none !important; }
  .vale__sello { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .nav, .menu-movil, .cursor, .hero__scroll, .hero__fondo video { display: none; }
  html.js [data-aparece] { opacity: 1; }
  html.js:not(.captura) [data-revelar]:not(.revelado) { clip-path: none; opacity: 1; }
  html.js:not(.captura) [data-revelar]:not(.revelado) img { transform: none; }
  .ficha__datos { position: static; }
}

/* Franja y hora dentro del recuadro de fecha de cada taller */
.taller__franja { width: 0; min-width: calc(100% + 24px); margin: 0 -12px; text-align: center; }
.taller__franja i { display: block; width: 24px; height: 0; border-top: 1px solid currentColor; margin: 11px auto 9px; }
.taller__franja span { display: block; font-size: 11px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.taller__franja em { display: block; margin-top: 5px; font-style: normal; font-size: 11px; line-height: 1.3; white-space: nowrap; color: inherit; opacity: .55; }
@media (max-width: 560px) { .taller__franja em { font-size: 10px; letter-spacing: -.01em; } }

/* Ancho mínimo igual para todos los recuadros de fecha de los talleres */
.taller__fecha { min-width: 100.5px; }
@media (max-width: 560px) { .taller__fecha { min-width: 86px; } }

/* Nombre y precio de la tarjeta en móvil: cada uno a un lado y del mismo tamaño (solo móvil) */
@media (max-width: 560px) {
  .taller__cuerpo { grid-template-columns: 1fr auto; }
  .taller__titulo, .taller__precio { font-size: 26px; }
}

/* Móvil: «Más info» desplegable en Talleres Alzira y Xàtiva */
.info-toggle { display: none; }
@media (max-width: 560px) {
  #fechas .dos-columnas { row-gap: 30px; }
  .info-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; padding: 16px 0; background: none; border: 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; border-radius: 0; color: inherit; font: 600 12px/1 var(--sans, 'Noto Sans', sans-serif); letter-spacing: .14em; text-transform: uppercase; text-align: left; cursor: pointer; }
  .info-toggle svg { width: 16px; height: 16px; flex: none; transition: transform .25s ease; }
  .info-toggle[aria-expanded="true"] { border-bottom-width: 0; }
  .info-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .info-plegable { display: none; }
  .info-plegable.info-abierta { display: block; }
  #fechas + .seccion { padding-top: 0; }
  #fechas + .seccion .filtros { padding-top: 24px; }
}

/* Imagen de cada taller en móvil: marco algo apaisado (5:4) y centrado. Solo móvil. */
@media (max-width: 560px) {
  .taller .mascara { aspect-ratio: 5 / 4; }
  .taller .mascara img { object-fit: cover; object-position: 50% 50%; }
}

/* Botones de la cabecera en Xàtiva: el texto va en el azul de la sede (el botón sigue blanco) */
body.xativa .cabecera-pagina .btn--claro-solido { color: var(--azul); }
body.xativa .cabecera-pagina .btn--claro-solido:hover { color: var(--blanco); }
body.xativa .cabecera-pagina .btn--claro:hover { color: var(--azul); }
