/* Source and licensing information for the line(s) below can be found at https://urbanpotters.es/themes/custom/figmapotters/css/styles.css. */
/* ==========================================================
   Urban Potters — Taller de cerámica en Madrid
   Maquetación HTML/CSS a partir del diseño de Figma
   ========================================================== */

/* Tipografías (alojadas localmente) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("/themes/custom/figmapotters/css/../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("/themes/custom/figmapotters/css/../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("/themes/custom/figmapotters/css/../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("/themes/custom/figmapotters/css/../fonts/inter-tight-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/themes/custom/figmapotters/css/../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/themes/custom/figmapotters/css/../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/themes/custom/figmapotters/css/../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #f4ede9;
  --white: #fffefc;
  --green: #124a2e;
  --green-dark: #0e4b2c;
  --orange: #ca4d00;
  --footer: #1b2a22;
  --text: #4a4a48;
  --muted: #75716d;
  --line: #d9d4cf;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --display: "Fraunces", Georgia, serif;

  --container: 1200px;
  --gutter: 120px;
  --radius: 16px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
em, .serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
  padding: 9px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: #b14300; }
.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--outline-orange { border: 1.5px solid var(--orange); color: var(--orange); font-size: 17px; padding: 10px 18px; }
.btn--outline-orange:hover { background: var(--orange); color: #fff; }
.btn--green { background: var(--green-dark); color: #fff; font-size: 12px; padding: 8px 14px; }
.btn--green:hover { background: #0a3a22; }
.btn--ghost { border-color: #2b2b2b; color: #2b2b2b; font-size: 12px; padding: 7px 12px; }
.btn--ghost:hover { background: #2b2b2b; color: #fff; }
.btn svg { width: 16px; height: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--orange); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: background .3s, box-shadow .3s;
}
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--green);
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  font-size: 15px;
  letter-spacing: -.02em;
  color: var(--green);
  padding: 6px 0;
}
.nav__list a::after {
  /* garabato bajo el enlace activo */
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 38px; height: 12px;
  transform: translateX(-50%) scaleX(0);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 12' fill='none' stroke='%23124a2e' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3.5h33L4 8.2 34 10.5'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s;
}
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.nav__list a[aria-current="page"] { font-weight: 500; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Cabecera transparente sobre imagen (home y el taller) */
.site-header--overlay {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
}
.site-header--light .logo,
.site-header--light .nav__list a { color: #fff; }
.site-header--light .nav__list a::after { filter: brightness(0) invert(1); }
.site-header--light .nav .btn--orange { background: transparent; border-color: #fff; color: #fff; }
.site-header--overlay.is-scrolled { background: var(--bg); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.site-header--overlay.is-scrolled .logo,
.site-header--overlay.is-scrolled .nav__list a { color: var(--green); }
.site-header--overlay.is-scrolled .nav__list a::after { filter: none; }
.site-header--overlay.is-scrolled .nav .btn--orange { background: var(--orange); border-color: transparent; color: #fff; }

/* ---------- Encabezado de sección ---------- */
.page-intro {
  text-align: center;
  padding: 90px 0 120px;
}
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 17px;
  letter-spacing: .12em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--orange);
  margin-bottom: 26px;
}
.page-intro h1 {
  color: var(--green);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: .02em;
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
}
.page-intro h1 em { font-size: 1.1em; letter-spacing: .01em; }
.page-intro p {
  margin: 30px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: .14em;
}

/* ==========================================================
   HOME
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: max(100svh, 720px);
  background: #e6dad5 url("/themes/custom/figmapotters/css/../img/hero-home.jpg") center right / cover no-repeat;
  display: flex;
  align-items: center;
}
.hero .container { padding-top: 60px; }
.hero__title {
  color: var(--green);
  font-size: 66px;
  line-height: .95;
  letter-spacing: -.005em;
  font-weight: 400;
}
.hero__title em { font-size: 1.1em; }
.hero__text {
  margin-top: 48px;
  max-width: 540px;
  color: var(--green);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: .16em;
}
.hero__text p + p { margin-top: 22px; }
.hero__actions { display: flex; gap: 12px; margin-top: 42px; }

/* ADAPTADO: el hero del sitio real recibe la imagen desde el contenido
   (bloque `homeslider` → <figure><picture> con AVIF/WebP y srcset), no desde
   el fondo CSS, porque es Drupal quien genera los derivados responsive y el
   prototipo no puede conocer sus rutas. Dejamos que un <picture>/<img>/
   <figure> hijo haga de imagen de fondo con object-fit: cover, colocado por
   debajo del degradado `.hero::before` y del texto. El JPG del theme sigue
   siendo el respaldo cuando el bloque no aporta imagen. */
.taller-hero { position: relative; }
.hero,
.taller-hero { overflow: hidden; }
.hero > figure,
.hero > picture,
.hero > img,
.hero__media,
.taller-hero > figure,
.taller-hero > picture,
.taller-hero > img,
.taller-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  display: block;
}
.hero picture,
.taller-hero picture { display: block; width: 100%; height: 100%; }
.hero > figure img,
.hero > picture img,
.hero > img,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right; /* mismo encuadre que `center right / cover` */
}
.taller-hero > figure img,
.taller-hero > picture img,
.taller-hero > img,
.taller-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* mismo encuadre que `center top / cover` */
}
.hero::before,
.taller-hero::before { z-index: 1; }
.hero .container,
.taller-hero .container { position: relative; z-index: 2; }

/* ==========================================================
   EL TALLER
   ========================================================== */
.taller-hero {
  height: 928px;
  max-height: 100vh;
  min-height: 560px;
  background: #13331f url("/themes/custom/figmapotters/css/../img/hero-taller.jpg") center top / cover no-repeat;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 20px 0 110px;
}
.feature img { width: 120px; height: auto; margin: 0 auto 18px; }
.feature h3 { color: var(--green); font-size: 19px; font-weight: 500; letter-spacing: .03em; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.3; letter-spacing: .05em; }

.split-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 78px;
  display: grid;
  grid-template-columns: 1fr 455px;
  gap: 80px;
  align-items: start;
  margin-bottom: 220px;
}
.split-card h2 {
  color: var(--green);
  font-size: 45px;
  line-height: 1;
  letter-spacing: -.035em;
}
.split-card h2 em { font-size: 1.05em; }
.split-card__body { margin-top: 82px; color: #555; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.split-card__body p + p { margin-top: 22px; }
.split-card .link-arrow { margin-top: 70px; }
.split-card__img { border-radius: 14px; width: 100%; aspect-ratio: 455 / 427; object-fit: cover; }

/* ==========================================================
   CLASES
   ========================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 220px;
}
.class-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.class-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18, 74, 46, .08); }
.class-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.class-card__body { padding: 30px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.class-card__meta { font-size: 11.5px; color: var(--muted); letter-spacing: -.01em; }
.class-card h3 { margin-top: 8px; color: var(--green); font-size: 25px; letter-spacing: -.03em; line-height: 1.15; }
.class-card__desc { margin-top: 14px; font-size: 13.5px; color: #6a6a6a; line-height: 1.3; letter-spacing: -.01em; flex: 1; }
.class-card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--green); letter-spacing: -.01em;
}

/* ==========================================================
   PROGRAMA
   ========================================================== */
.section-label {
  text-align: right;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 52px;
}
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-wrap { position: relative; }
.carousel-nav {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px;
}
.carousel-nav button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--green); background: transparent; color: var(--green);
  display: grid; place-items: center; cursor: pointer;
}
.carousel-nav button:hover { background: var(--green); color: #fff; }
.carousel-nav svg { width: 16px; height: 16px; }

.event-card {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.event-card img { width: 100%; aspect-ratio: 340 / 376; object-fit: cover; }
.event-card__body { padding: 24px 24px 22px; color: #1f1f1f; }
.event-card h3 { font-size: 17px; letter-spacing: -.02em; font-weight: 500; }
.event-card__when { margin-top: 4px; font-size: 13px; line-height: 1.3; letter-spacing: -.01em; }
.event-card__desc { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: -.01em; }
.event-card__foot {
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; font-size: 13px;
}
.event-card--past img { filter: grayscale(1) contrast(1.05); }
.event-card--past h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0; }
.event-card--past .event-card__desc { line-height: 1.35; }
.programa { padding-bottom: 200px; }

/* ==========================================================
   GALERÍA
   ========================================================== */
.gallery { display: flex; flex-direction: column; gap: 24px; padding-bottom: 200px; }
.g-row { display: grid; gap: 24px; }
.g-row--1 { grid-template-columns: 461fr 691fr; gap: 48px; aspect-ratio: 1200 / 384; }
.g-row--2 { grid-template-columns: repeat(4, 1fr); aspect-ratio: 1200 / 282; }
.g-row--3 { grid-template-columns: 461fr 715fr; aspect-ratio: 1200 / 384; }
.g-row--4 { grid-template-columns: 715fr 461fr; aspect-ratio: 1200 / 384; }
.gallery figure { margin: 0; overflow: hidden; min-width: 0; height: 100%; }
.gallery img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }

/* ADAPTADO: la vista `galeria_de_fotos` emite una lista PLANA de medios
   (12 hoy, otra cantidad mañana) y no las cuatro filas `.g-row` escritas a
   mano del prototipo, porque el número de resultados lo decide la vista.
   `.gallery--flat` reproduce el mismo mosaico sobre esa lista plana repitiendo
   el ciclo de 10 piezas (2 + 4 + 2 + 2) con flex-wrap: cada hijo recibe por
   posición el ancho y la proporción que tenía en su fila original, de modo que
   los anchos de cada fila suman exactamente el contenedor y cada ciclo cierra
   una fila completa (12 = 10 + la fila de 2, sin huecos ni deformaciones).
   Los selectores `.g-row--*` se mantienen intactos para que el prototipo
   estático siga sirviendo de referencia.
   Equivalencias: 461fr 691fr con hueco de 48px sobre 1152 (fila 1),
   repeat(4, 1fr) cuadrados de 282px (fila 2), 461fr 715fr sobre 1176 (fila 3)
   y 715fr 461fr sobre 1176 (fila 4); todas con alto 384px salvo la 2. */
.gallery--flat {
  --gal-gap: 24px;   /* separación general del mosaico */
  --gal-gap-1: 48px; /* la primera fila del diseño abre más el hueco */
  --gal-safe: .5px;  /* holgura: evita que el redondeo subpíxel parta la fila */
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--gal-gap);
}
.gallery.gallery--flat > * {
  margin: 0;
  min-width: 0;
  height: auto; /* manda el aspect-ratio de cada posición, no `height: 100%` */
  overflow: hidden;
}
.gallery--flat > * > a,
.gallery--flat > * > picture,
.gallery--flat > * > figure { display: block; width: 100%; height: 100%; }

/* Fila 1 del ciclo: 461fr 691fr, hueco de 48px */
.gallery--flat > *:nth-child(10n+1) {
  flex: 0 0 calc((100% - var(--gal-gap-1) - var(--gal-safe)) * 461 / 1152);
  aspect-ratio: 461 / 384;
  margin-right: calc(var(--gal-gap-1) - var(--gal-gap));
}
.gallery--flat > *:nth-child(10n+2) {
  flex: 0 0 calc((100% - var(--gal-gap-1) - var(--gal-safe)) * 691 / 1152);
  aspect-ratio: 691 / 384;
}
/* Fila 2 del ciclo: cuatro cuadrados de 282 x 282 */
.gallery--flat > *:nth-child(10n+3),
.gallery--flat > *:nth-child(10n+4),
.gallery--flat > *:nth-child(10n+5),
.gallery--flat > *:nth-child(10n+6) {
  flex: 0 0 calc((100% - var(--gal-gap) * 3 - var(--gal-safe)) / 4);
  aspect-ratio: 1;
}
/* Fila 3 del ciclo: 461fr 715fr */
.gallery--flat > *:nth-child(10n+7) {
  flex: 0 0 calc((100% - var(--gal-gap) - var(--gal-safe)) * 461 / 1176);
  aspect-ratio: 461 / 384;
}
.gallery--flat > *:nth-child(10n+8) {
  flex: 0 0 calc((100% - var(--gal-gap) - var(--gal-safe)) * 715 / 1176);
  aspect-ratio: 715 / 384;
}
/* Fila 4 del ciclo: 715fr 461fr */
.gallery--flat > *:nth-child(10n+9) {
  flex: 0 0 calc((100% - var(--gal-gap) - var(--gal-safe)) * 715 / 1176);
  aspect-ratio: 715 / 384;
}
.gallery--flat > *:nth-child(10n+10) {
  flex: 0 0 calc((100% - var(--gal-gap) - var(--gal-safe)) * 461 / 1176);
  aspect-ratio: 461 / 384;
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact {
  display: grid;
  grid-template-columns: 384px 1fr;
  gap: 60px;
  padding: 80px 0 200px;
  align-items: start;
}
.contact h1 { font-family: var(--serif); font-style: italic; color: var(--green); font-size: 58px; line-height: 1; letter-spacing: -.01em; }
.contact__lead { margin-top: 18px; color: #666; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; max-width: 280px; }
.contact-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  padding: 26px 30px 70px;
  min-height: 218px;
  margin-top: 24px;
  transition: transform .25s;
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card:first-of-type { margin-top: 64px; }
.contact-card small { font-family: var(--serif); font-style: italic; font-size: 14px; }
.contact-card strong { display: block; margin-top: 6px; font-size: 31px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.contact-card .circle {
  position: absolute; right: 24px; bottom: 22px;
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center;
}
.contact-card .circle svg { width: 18px; height: 18px; }
.contact-card--green { background: var(--green-dark); color: #fff; }
.contact-card--white { background: var(--white); color: var(--green); border: 1px solid var(--green); }
.contact__map { position: relative; padding-top: 30px; }
.contact__map img { width: 100%; max-width: 690px; margin-left: auto; }
.contact__map .btn { position: absolute; right: 0; bottom: 0; }

/* ==========================================================
   PIE
   ========================================================== */
.site-footer { background: var(--footer); color: #fff; }
.site-footer .container {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr .85fr;
  gap: 32px;
  padding-top: 84px;
}
.footer__claim { font-size: 25px; line-height: 1.2; letter-spacing: .08em; font-weight: 400; }
.footer__claim em { font-size: 1.12em; letter-spacing: .03em; }
.footer__cta { margin-top: 40px; }
.footer__cta .btn { font-size: 15px; padding: 10px 12px; }
.socials { display: flex; gap: 12px; margin-top: 38px; }
.socials a { width: 24px; height: 24px; color: #fff; opacity: .95; }
.socials a:hover { opacity: .7; }
.socials svg { width: 24px; height: 24px; }
.site-footer h4 { font-size: 16px; letter-spacing: .14em; margin-bottom: 14px; }
.footer__hours b { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.footer__hours p { font-size: 11.5px; line-height: 1.85; color: #e5e5e5; letter-spacing: -.01em; }
.footer__hours div + div { margin-top: 18px; }
.footer__small { font-size: 12px; letter-spacing: .2em; color: #d8d8d8; line-height: 1.45; }
.footer__col h4 + .footer__small + h4 { margin-top: 52px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links a { font-size: 14px; letter-spacing: .14em; line-height: 1.75; }
.footer__links a:hover { color: #f3b48e; }
.footer__art {
  margin-top: 30px;
  height: 0;
  padding-bottom: calc(277 / 1568 * 100%);
  background: url("/themes/custom/figmapotters/css/../img/footer-ceramica.jpg") center bottom / 100% auto no-repeat;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1280px) {
  :root { --gutter: 56px; }
  .split-card { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .contact { grid-template-columns: 1fr; }
  .contact__map img { margin: 0 auto; }
  .contact__map .btn { position: static; margin: 24px auto 0; display: flex; width: max-content; }
  .gallery, .g-row { gap: 16px; }
  .hero { background-position: 70% center; }
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(240,232,228,.85) 0%, rgba(240,232,228,.55) 55%, rgba(240,232,228,0) 85%);
  }
  .hero .container { position: relative; }
  /* ADAPTADO: la galería plana iguala los huecos de `.gallery, .g-row` */
  .gallery--flat { --gal-gap: 16px; --gal-gap-1: 16px; gap: var(--gal-gap); }
  /* ADAPTADO: la imagen de contenido del hero sigue el encuadre del fondo */
  .hero > figure img,
  .hero > picture img,
  .hero > img,
  .hero__media img { object-position: 70% center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px var(--gutter) 36px;
    box-shadow: 0 16px 30px rgba(0,0,0,.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 18px; }
  .nav__list a { font-size: 20px; }
  .site-header--light .nav__list a { color: var(--green); }
  .site-header--light .nav .btn--orange { background: var(--orange); border-color: transparent; color: #fff; }
  .site-header--light .nav__list a::after { filter: none; }
  .site-header--light .nav-toggle { color: #fff; }
  .site-header--overlay.is-scrolled .nav-toggle,
  .site-header--overlay.menu-open { background: var(--bg); }
  .site-header--overlay.menu-open .logo,
  .site-header--overlay.menu-open .nav-toggle,
  .site-header--overlay.is-scrolled .nav-toggle { color: var(--green); }
  .nav__list a::after { left: 0; transform: scaleX(0); transform-origin: left; }
  .nav__list a:hover::after,
  .nav__list a[aria-current="page"]::after { transform: scaleX(1); }

  .page-intro { padding: 56px 0 72px; }
  .page-intro h1 { font-size: 34px; }
  .page-intro p { font-size: 15px; letter-spacing: .08em; }
  .hero__title { font-size: 46px; }
  .hero__text { letter-spacing: .08em; margin-top: 32px; }
  .split-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; margin-bottom: 120px; }
  .split-card h2 { font-size: 34px; }
  .split-card__body { margin-top: 32px; font-size: 17px; }
  .split-card .link-arrow { margin-top: 36px; }
  .taller-hero { height: 70vh; background-position: 40% top; }
  /* ADAPTADO: la imagen de contenido sigue el encuadre del fondo */
  .taller-hero > figure img,
  .taller-hero > picture img,
  .taller-hero > img,
  .taller-hero__media img { object-position: 40% top; }
  .gallery { gap: 12px; padding-bottom: 120px; }
  .g-row { gap: 12px; aspect-ratio: auto !important; grid-template-columns: 1fr 1fr !important; }
  .g-row figure { aspect-ratio: 1; }
  .g-row--1, .g-row--3, .g-row--4 { grid-template-columns: 1fr !important; }
  .g-row--1 figure, .g-row--3 figure, .g-row--4 figure { aspect-ratio: 4 / 3; }
  /* ADAPTADO: mismo plegado que las reglas de `.g-row` de estas dos líneas
     para la variante plana: las piezas de las filas 1, 3 y 4 del ciclo pasan a
     ancho completo con proporción 4/3 y las cuatro de la fila 2 quedan en dos
     columnas cuadradas (2 x 2). */
  .gallery--flat { --gal-gap: 12px; --gal-gap-1: 12px; gap: var(--gal-gap); }
  .gallery--flat > *:nth-child(10n+1),
  .gallery--flat > *:nth-child(10n+2),
  .gallery--flat > *:nth-child(10n+7),
  .gallery--flat > *:nth-child(10n+8),
  .gallery--flat > *:nth-child(10n+9),
  .gallery--flat > *:nth-child(10n+10) { flex-basis: 100%; aspect-ratio: 4 / 3; }
  .gallery--flat > *:nth-child(10n+3),
  .gallery--flat > *:nth-child(10n+4),
  .gallery--flat > *:nth-child(10n+5),
  .gallery--flat > *:nth-child(10n+6) {
    flex-basis: calc((100% - var(--gal-gap) - var(--gal-safe)) / 2);
    aspect-ratio: 1;
  }
  .cards-grid, .programa { padding-bottom: 120px; }
  .carousel { grid-auto-columns: 78%; gap: 20px; }
  .section-label { text-align: left; margin-bottom: 28px; }
  .contact { padding: 48px 0 120px; }
  .contact h1 { font-size: 46px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .logo { font-size: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .feature img { width: 96px; }
  .site-footer .container { grid-template-columns: 1fr; padding-top: 56px; }
  .footer__claim { font-size: 22px; }
  .hero__title { font-size: 40px; }
  .hero__actions { flex-wrap: wrap; }
  .contact-card strong { font-size: 26px; }
  .contact-card { padding: 22px 22px 70px; }
  .feature p br, .page-intro p br { display: none; }
  .hero { align-items: flex-start; background-position: 72% bottom; background-size: auto 100%; }
  .hero .container { padding-top: calc(var(--header-h) + 48px); }
  .hero::before { background: linear-gradient(180deg, rgba(240,232,228,.92) 0%, rgba(240,232,228,.85) 55%, rgba(240,232,228,.1) 80%); }
  .taller-hero { height: 60vh; background-position: 62% top; }
  /* ADAPTADO: la imagen de contenido del hero sigue el encuadre del fondo.
     `background-size: auto 100%` no tiene equivalente exacto con object-fit;
     `cover` es la aproximación más cercana y no deja franjas vacías. */
  .hero > figure img,
  .hero > picture img,
  .hero > img,
  .hero__media img { object-position: 72% bottom; }
  .taller-hero > figure img,
  .taller-hero > picture img,
  .taller-hero > img,
  .taller-hero__media img { object-position: 62% top; }
  /* La galería plana no cambia aquí: el prototipo tampoco toca `.g-row`
     por debajo de 600px (sigue el plegado del breakpoint de 860). */
}

/* Source and licensing information for the above line(s) can be found at https://urbanpotters.es/themes/custom/figmapotters/css/styles.css. */