/* =============================================
   PRIMERA PINCELADA — style.css
   ============================================= */

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

:root {
  --cream:        #F5F0E8;
  --warm-white:   #FDFAF6;
  --ink:          #1A1510;
  --ink-soft:     #3D3020;
  --sienna:       #8B4513;
  --sienna-mid:   #A85520;
  --sienna-light: #C4845A;
  --sand:         #C4A882;
  --sand-light:   #DDD0B8;
  --dark-bg:      #2C2318;
  --border:       rgba(26,21,16,0.13);
  --border-light: rgba(26,21,16,0.07);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--warm-white); color: var(--ink); font-weight: 300; line-height: 1.75; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* --- TYPOGRAPHY --- */
.eyebrow { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sienna); margin-bottom: 0.9rem; display: block; }
.eyebrow--light { color: var(--sienna-light); }
.eyebrow--sand  { color: var(--sand); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.0; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: 1.2rem; }
p  { font-size: 1rem; color: var(--ink-soft); line-height: 1.85; }

/* em colour variants — context-specific to avoid clashing with backgrounds */
.title-italic em        { font-style: italic; color: var(--sienna); }
.title-italic--light em { font-style: italic; color: var(--sienna-light); }
.title-italic--white em { font-style: italic; color: var(--warm-white); opacity: 0.85; }

p em { font-style: italic; color: var(--sienna-mid); }
.section--dark   p em    { color: var(--sienna-light); }
.section--sienna p em    { color: rgba(255,255,255,0.75); }
.metodologia__paso p em  { color: var(--sand-light); }
.tema__detalle p em      { color: var(--sienna-mid); }

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 7vw;
  background: rgba(253,250,246,0.95); backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
  transition: padding 0.3s;
}
.nav--scrolled { padding: 0.75rem 7vw; }
.nav__logo { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); flex-shrink: 0; }

.nav__links { display: flex; gap: 2.2rem; list-style: none; white-space: nowrap; }
.nav__links a {
  font-size: 0.75rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); transition: color 0.2s;
  position: relative; padding-bottom: 2px;
  white-space: nowrap;
}
.nav__links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--sienna); transition: width 0.25s; }
.nav__links a:hover { color: var(--sienna); }
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
  display: flex; align-items: center; gap: 0.35rem;
  border: 0.5px solid var(--border);
  padding: 0.25rem 0.5rem;
}
.lang-switcher__option {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sand); transition: color 0.2s;
  padding: 0.2rem 0.3rem;
}
.lang-switcher__option:hover { color: var(--sienna); }
.lang-switcher__option--active { color: var(--ink); font-weight: 400; }
.lang-switcher__option--active .lang-switcher__flag { opacity: 1; }
.lang-switcher__flag  { display: block; width: 20px; height: 14px; border-radius: 1px; overflow: hidden; opacity: 0.55; transition: opacity 0.2s; }
.lang-switcher__flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lang-switcher__option:hover .lang-switcher__flag { opacity: 1; }
.lang-switcher__label { line-height: 1; }
.lang-switcher__sep   { color: var(--border); font-size: 0.8rem; }

/* --- BURGER --- */
.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

/* --- BUTTONS --- */
.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
}
.btn--primary        { background: var(--sienna);     color: var(--warm-white); border-color: var(--sienna); }
.btn--primary:hover  { background: var(--ink);          border-color: var(--ink); }
.btn--outline        { background: transparent; color: var(--sienna); border-color: var(--sienna-light); }
.btn--outline:hover  { border-color: var(--sienna); }
.btn--light          { background: var(--warm-white); color: var(--sienna); border-color: var(--warm-white); }
.btn--light:hover    { background: var(--cream); }
.btn--outline-light        { background: transparent; color: var(--warm-white); border-color: rgba(253,250,246,0.45); }
.btn--outline-light:hover  { border-color: var(--warm-white); }

/* --- SECTION BASE --- */
.section         { padding: 6rem 7vw; }
.section--cream  { background: var(--cream); }
.section--dark   { background: var(--dark-bg); }
.section--sienna { background: var(--sienna); }
.section--dark   h2, .section--dark   h3 { color: var(--cream); }
.section--dark   p                        { color: var(--sand-light); }
.section--sienna h2, .section--sienna h3 { color: var(--warm-white); }
.section--sienna p                        { color: rgba(253,250,246,0.82); }

/* --- HERO --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  max-height: 100vh;
  padding-top: 4rem;
  overflow: hidden;
}
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 5vw 2rem 7vw;
  min-height: 0;
}
.hero__title { margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; color: var(--sienna); }
.hero__subtitle { font-family: var(--font-display); font-size: clamp(0.95rem, 1.5vw, 1.2rem); font-style: italic; color: var(--ink-soft); max-width: 38ch; margin-bottom: 2rem; line-height: 1.55; }
.hero__actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.hero__right   { position: relative; overflow: hidden; background: var(--cream); height: 100%; }
.hero__media   { position: relative; width: 100%; height: 100%; }
.hero__video   { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__img--fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -1; /* hidden behind video unless video fails */
}
.hero__media--fallback .hero__video { display: none; }
.hero__media--fallback .hero__img--fallback { z-index: 1; }

.hero__sound-toggle {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,21,16,0.55); backdrop-filter: blur(4px);
  border: none; border-radius: 50%; cursor: pointer;
  color: var(--warm-white); transition: background 0.2s;
}
.hero__sound-toggle:hover { background: rgba(26,21,16,0.75); }
.hero__sound-toggle .icon-sound { display: none; }
.hero__sound-toggle--on .icon-muted { display: none; }
.hero__sound-toggle--on .icon-sound { display: block; }

.hero__badge { position: absolute; bottom: 2rem; right: 2rem; background: rgba(253,250,246,0.9); backdrop-filter: blur(6px); border: 0.5px solid var(--border); padding: 0.75rem 1.25rem; font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--ink-soft); z-index: 2; }

/* --- TALLER --- */
.taller__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.taller__text p + p { margin-top: 1.1rem; }
.taller__objetivo { margin-top: 2rem; padding: 1.5rem 1.75rem; border-left: 2px solid var(--sienna); background: var(--cream); }
.taller__objetivo-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sienna); margin-bottom: 0.5rem; }
.taller__objetivo p { font-style: italic; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.taller__image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* Inline contact block */
.taller__contacto { margin-top: 2.5rem; padding-top: 2rem; border-top: 0.5px solid var(--border); }
.taller__contacto-texto { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem; font-style: italic; }
.taller__contacto-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- PÚBLICO --- */
.publico__intro { font-size: 1.05rem; max-width: 70ch; margin-top: 1rem; margin-bottom: 0; }
.publico__grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3rem; }
.publico__card  { padding: 1.75rem; border: 0.5px solid var(--border); background: var(--warm-white); transition: transform 0.3s, box-shadow 0.3s; }
.publico__card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26,21,16,0.07); }
.publico__card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--sienna); margin-bottom: 0.6rem; }

/* --- METODOLOGÍA --- */
.metodologia__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.metodologia__image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.metodologia__pasos { margin-top: 2.5rem; }
.metodologia__paso { padding: 1.5rem 0; border-top: 0.5px solid rgba(253,250,246,0.15); }
.metodologia__paso:last-child { border-bottom: 0.5px solid rgba(253,250,246,0.15); }
.metodologia__paso h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--cream); margin-bottom: 0.5rem; }
.metodologia__paso p  { font-size: 0.95rem; color: rgba(220,215,200,0.75); }

/* --- CONTENIDOS --- */
.contenidos__intro { max-width: 75ch; margin-top: 1rem; margin-bottom: 3rem; }
.contenidos__grid  { display: grid; grid-template-columns: repeat(2,1fr); border: 0.5px solid var(--border); }
.tema { border: 0.5px solid var(--border); cursor: pointer; transition: background 0.2s; overflow: hidden; }
.tema:hover { background: rgba(139,69,19,0.04); }
.tema.open  { background: rgba(139,69,19,0.06); }
.tema__header { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.75rem; gap: 1rem; }
.tema__header-left { flex: 1; min-width: 0; }
.tema__titulo  { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; line-height: 1.3; }
.tema__resumen { font-size: 0.82rem; color: var(--sand); }
.tema__toggle  { flex-shrink: 0; width: 22px; height: 22px; position: relative; color: var(--sienna-light); }
.tema__toggle::before, .tema__toggle::after { content: ''; position: absolute; background: currentColor; transition: transform 0.3s, opacity 0.3s; top: 50%; left: 50%; }
.tema__toggle::before { width: 12px; height: 1px; transform: translate(-50%,-50%); }
.tema__toggle::after  { width: 1px; height: 12px; transform: translate(-50%,-50%); }
.tema.open .tema__toggle::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.tema.open .tema__titulo  { color: var(--sienna); }
.tema.open .tema__resumen { color: var(--sienna-light); }
.tema__detalle { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 1.75rem; }
.tema.open .tema__detalle { max-height: 320px; padding: 0 1.75rem 1.4rem; }
.tema__detalle p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.8; border-top: 0.5px solid var(--border-light); padding-top: 1rem; }

/* --- TESTIMONIALES --- */
.testimoniales__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonio {
  padding: 2rem;
  border: 0.5px solid rgba(253,250,246,0.12);
  background: rgba(253,250,246,0.04);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color 0.25s;
}
.testimonio:hover { border-color: rgba(253,250,246,0.25); }

.testimonio__stars {
  display: flex;
  gap: 0.2rem;
}
.star-wrap { color: rgba(253,250,246,0.2); display: flex; }
.star-wrap--on { color: var(--gold-light, #D4A84B); }
.star-wrap svg { display: block; }

.testimonio__texto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--cream);
  line-height: 1.75;
  flex: 1;
}

.testimonio__nombre {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,250,246,0.5);
}

/* --- DOCENTE --- */
.docente__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; align-items: center; }
.docente__image { position: relative; }
.docente__image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; filter: sepia(8%) contrast(1.05); }
.docente__image::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(200,170,130,0.3); pointer-events: none; }
.docente__text h2 { margin-bottom: 0.2rem; }
.docente__subtitulo { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--sienna); margin-bottom: 2rem; display: block; }
.docente__text p + p { margin-top: 1.1rem; }

/* --- PRECIOS --- */
.precios__info { display: flex; gap: 3rem; margin-top: 2.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.precios__info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.precios__info-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sienna); }
.precios__info-value { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.precios__cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; max-width: 680px; }
.precio__card { padding: 2rem 2.25rem; border: 0.5px solid var(--border); background: var(--warm-white); position: relative; transition: border-color 0.25s, box-shadow 0.25s; }
.precio__card:hover { border-color: var(--sienna-light); box-shadow: 0 8px 30px rgba(26,21,16,0.06); }
.precio__card--destacado { border-color: var(--sienna); }
.precio__badge { position: absolute; top: -1px; left: 1.75rem; transform: translateY(-50%); background: var(--sienna); color: var(--warm-white); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.25rem 0.75rem; }
.precio__tipo { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sienna); margin-bottom: 0.75rem; }
.precio__monto { font-family: var(--font-display); font-size: 3.2rem; color: var(--ink); line-height: 1; margin-bottom: 0.3rem; }
.precio__detalle { font-size: 0.82rem; color: var(--sand); margin-bottom: 1rem; }
.precio__descripcion { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }

/* --- MI OBRA --- */
.obra__intro { max-width: 62ch; margin-top: 1rem; margin-bottom: 2rem; font-size: 1.05rem; }
.obra__actions { display: flex; gap: 1.25rem; margin-bottom: 2.5rem; flex-wrap: wrap; }

/* Galeria items get pointer cursor too, since they open in lightbox */
.galeria__item { cursor: pointer; }

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,8,5,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox__content {
  max-width: 88vw; max-height: 82vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 88vw; max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
  color: var(--warm-white); cursor: pointer;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.18); }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
  color: var(--warm-white); cursor: pointer;
  transition: background 0.2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

.lightbox__counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em;
  color: rgba(253,250,246,0.6);
}

/* --- CONTACTO: detalles explícitos --- */
.contacto__detalles {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(253,250,246,0.2);
  flex-wrap: wrap;
}
.contacto__detalle-item { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; }
.contacto__detalle-item span:first-child {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(253,250,246,0.55);
}
.contacto__detalle-item span:last-child {
  font-family: var(--font-display); font-size: 1rem; color: var(--warm-white);
}

/* --- UBICACIÓN --- */
.ubicacion__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; margin-top: 2.5rem; align-items: start; }
.ubicacion__direccion { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 2rem; }
.ubicacion__direccion svg { flex-shrink: 0; color: var(--sienna); }
.ubicacion__transportes { display: flex; flex-direction: column; gap: 0.75rem; }
.transporte { display: flex; align-items: baseline; gap: 1rem; padding: 0.85rem 1.1rem; border: 0.5px solid var(--border); background: var(--warm-white); }
.transporte__tipo   { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sienna); min-width: 3.5rem; flex-shrink: 0; }
.transporte__lineas { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink-soft); }
.ubicacion__mapa { height: 400px; border: 0.5px solid var(--border); overflow: hidden; }
.ubicacion__mapa iframe { width: 100%; height: 100%; display: block; }

/* --- GALERÍA MASONRY (compartido por "El trabajo en proceso" y "Mi obra") --- */
.galeria__masonry, .obra__masonry {
  columns: 5;
  column-gap: 0.6rem;
  margin-top: 2.5rem;
  orphans: 1;
  widows: 1;
  position: relative;
  transition: max-height 0.4s ease;
}
.galeria__item {
  break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  margin-bottom: 0.6rem;
  overflow: hidden;
  position: relative;
  background: var(--sand-light);
  cursor: pointer;
}
.galeria__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  filter: sepia(5%) contrast(1.03);
}
.galeria__item:hover img { transform: scale(1.04); }

/* "Ver más" / "Ver menos" toggle button, shared style */
.galeria__ver-todas, .obra__ver-todas {
  display: block;
  margin: 1.5rem auto 0;
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.galeria__ver-todas:hover, .obra__ver-todas:hover { border-color: var(--sienna); color: var(--sienna); }

/* Dark-section variant (used in "Mi obra") */
.section--dark .galeria__ver-todas, .section--dark .obra__ver-todas {
  border-color: rgba(253,250,246,0.25);
  color: var(--sand-light);
}
.section--dark .galeria__ver-todas:hover, .section--dark .obra__ver-todas:hover { border-color: var(--sienna-light); color: var(--warm-white); }

/* --- CONTACTO --- */
.contacto__inner { max-width: 580px; margin: 0 auto; text-align: center; }
.contacto__texto { margin: 1.25rem auto 3rem; max-width: 46ch; font-size: 1.05rem; color: rgba(253,250,246,0.82); }
.contacto__actions { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

/* --- FOOTER --- */
.footer { background: var(--ink); padding: 1.75rem 7vw; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__copy { font-size: 0.75rem; color: rgba(245,240,232,0.3); letter-spacing: 0.04em; }
.footer__links { display: flex; gap: 2rem; list-style: none; }
.footer__links a { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.3); transition: color 0.2s; }
.footer__links a:hover { color: var(--sienna-light); }

/* --- SCROLL ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }
.reveal--left.visible, .reveal--right.visible { transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Nav intermediate: shrink before burger threshold to avoid text wrapping */
@media (max-width: 1168px) and (min-width: 681px) {
  .nav__links { gap: 1.3rem; }
  .nav__links a { font-size: 0.68rem; }
  .lang-switcher { padding: 0.2rem 0.4rem; }
}

/* Tablet */
@media (max-width: 1024px) {
  .section { padding: 4.5rem 5vw; }

  .hero { grid-template-columns: 1fr; height: auto; max-height: none; overflow: visible; }
  .hero__right { height: 60vw; order: -1; }
  .hero__left  { padding: 3rem 5vw; }

  .taller__grid, .metodologia__grid, .docente__grid { grid-template-columns: 1fr; gap: 3rem; }
  .taller__image img   { aspect-ratio: 16/9; }
  .docente__image img  { aspect-ratio: 16/9; }
  .metodologia__image img { aspect-ratio: 16/9; }

  .contenidos__grid { grid-template-columns: 1fr; }

  .ubicacion__grid { grid-template-columns: 1fr; gap: 2rem; }
  .ubicacion__mapa { height: 300px; }

  .obra__actions { flex-direction: column; align-items: flex-start; }
  .galeria__masonry, .obra__masonry { columns: 3; }
}

/* Mobile */
@media (max-width: 680px) {
  .section { padding: 3.5rem 5vw; }

  /* Nav: hide links, show burger; keep lang switcher visible */
  .nav { padding: 1rem 5vw; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 54px; left: 0; right: 0;
    background: var(--warm-white); padding: 1.75rem 5vw;
    border-bottom: 0.5px solid var(--border); gap: 1.5rem;
    z-index: 199;
  }
  /* Also show lang switcher inside mobile menu */
  .nav__links.open::after {
    content: '';
  }
  .nav__burger { display: flex; }

  .hero__right { height: 100vw; }
  .hero__left  { padding: 2.5rem 5vw; }

  .publico__grid  { grid-template-columns: 1fr; }
  .precios__cards { grid-template-columns: 1fr; }
  .precios__info  { gap: 1.5rem; }

  .contacto__detalles { gap: 1.5rem; }

  .galeria__masonry, .obra__masonry { columns: 2; }

  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__close { top: 1rem; right: 1rem; width: 38px; height: 38px; }
  .lightbox__content { max-width: 94vw; max-height: 78vh; }
  .lightbox__img { max-width: 94vw; max-height: 78vh; }

  .taller__contacto-actions { flex-direction: column; }
  .taller__contacto-actions .btn { text-align: center; }

  .footer { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 1.2rem; }

  /* Smaller lang switcher on mobile */
  .lang-switcher { padding: 0.2rem 0.4rem; }
  .lang-switcher__flag { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .galeria__item img { transition: none; }
}

/* =============================================
   ADDENDUM — flags, gallery fix, lang switcher
   ============================================= */

/* --- FLAG ICONS via SVG background (works everywhere) --- */
.lang-flag {
  display: inline-block;
  width: 18px;
  height: 13px;
  background-size: cover;
  background-position: center;
  border-radius: 1px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Spain flag — red/yellow/red stripes */
.lang-flag--es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='3' height='2' fill='%23c60b1e'/%3E%3Crect y='.5' width='3' height='1' fill='%23ffc400'/%3E%3C/svg%3E");
}

/* UK flag — simplified union jack */
.lang-flag--en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M30 15h30v15zM30 15H0V0zM30 15v15H0zM30 15V0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' clip-path='url(%23b)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Updated lang-switcher to use buttons */
.lang-switcher__option {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sand); transition: color 0.2s;
  padding: 0.25rem 0.35rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
}
.lang-switcher__option:hover { color: var(--sienna); }
.lang-switcher__option--active { color: var(--ink); }
