/* ============================================
   Casa Olinka — Estilos principales
   Hero + Navegación
   ============================================ */

/* ===== Variables ===== */
:root {
  /* Paleta - tierra/oscuro */
  --color-bg: #1a1410;
  --color-bg-soft: #221a14;
  --color-surface: #2a201a;
  --color-text: #f1ebe2;
  --color-text-soft: #c8bdae;
  --color-text-muted: #8d8478;
  --color-accent: #d4c5a9;
  --color-line: rgba(241, 235, 226, 0.18);

  /* Paleta crema (Convocatoria, Modales, Form-panel) — globales para que todos los componentes flotantes la usen */
  --convo-cream: #ede1cc;
  --convo-cream-dark: #d8c7a8;
  --convo-text: #2a1f17;
  --convo-text-soft: #6b5544;
  --convo-text-muted: #a1907e;
  --convo-accent: #b56a3a;
  --convo-line: rgba(42, 31, 23, 0.16);

  /* Paleta La Casa (sección clara + panel de detalle de espacio) */
  --lc-bg: #efe6d6;
  --lc-text: #2a1f17;
  --lc-text-soft: #6b5544;
  --lc-text-muted: #a1907e;
  --lc-line: rgba(42, 31, 23, 0.18);
  --lc-card-bg: #1a1410;

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

  /* Espaciado y layout */
  --max-w: 1440px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --nav-h: 88px;

  /* Animación */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Base ===== */
html,
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem var(--gutter);
  transition: background-color 0.4s var(--ease), padding 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(20, 16, 12, 0.96);
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--color-line);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  transition: opacity 0.25s var(--ease);
}

.nav__logo:hover {
  opacity: 0.75;
}

.nav__logo img {
  width: 56px;
  height: auto;
  filter: brightness(0) invert(1) opacity(0.92);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.15;
  color: var(--color-text);
}

/* Menú */
.nav__menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__menu ul {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.nav__menu a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.25s var(--ease);
}

.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.nav__menu a:hover::after,
.nav__menu a.is-active::after {
  transform: scaleX(1);
}

/* CTA Agenda */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}

.nav__cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Toggle móvil */
.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) var(--gutter) 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 16, 12, 0.7) 0%,
      rgba(20, 16, 12, 0.45) 35%,
      rgba(20, 16, 12, 0.25) 65%,
      rgba(20, 16, 12, 0.55) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 16, 12, 0.4) 0%,
      rgba(20, 16, 12, 0) 30%,
      rgba(20, 16, 12, 0) 70%,
      rgba(20, 16, 12, 0.6) 100%
    );
}

.hero__content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.4s var(--ease) 0.2s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--color-text);
  margin-bottom: 1.75rem;
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
}

.hero__divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-text-soft);
  margin: 0 0 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.75rem;
  border: 1px solid var(--color-text);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.hero__cta:hover {
  color: var(--color-bg);
}

.hero__cta:hover::before {
  transform: scaleX(1);
}

.hero__cta svg {
  transition: transform 0.35s var(--ease);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* Paginación slider */
.hero__pagination {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.hero__pagination .is-active {
  color: var(--color-text);
}

.hero__pagination-line {
  width: 1px;
  height: 48px;
  background: var(--color-text-soft);
  opacity: 0.4;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  color: var(--color-text-soft);
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
  animation: heroScrollBounce 2.4s ease-in-out infinite;
  z-index: 2;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes heroScrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================
   LA CASA
   ============================================ */

.la-casa {
  position: relative;
  isolation: isolate;
  color: var(--lc-text);
}

/* ===== HERO COMPLETO — misma fórmula que el hero principal ===== */
.la-casa__hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) var(--gutter) 4rem;
  overflow: hidden;
  isolation: isolate;
  background: #14100c;
}

.la-casa__hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.la-casa__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.la-casa__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      95deg,
      rgba(15, 11, 8, 0.9) 0%,
      rgba(15, 11, 8, 0.6) 35%,
      rgba(15, 11, 8, 0.2) 60%,
      rgba(15, 11, 8, 0.15) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 11, 8, 0.4) 0%,
      rgba(15, 11, 8, 0) 28%,
      rgba(15, 11, 8, 0) 72%,
      rgba(15, 11, 8, 0.5) 100%
    );
}

.la-casa__hero-content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.la-casa__hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.la-casa__hero-title em {
  font-style: italic;
  font-weight: 500;
}

.la-casa__hero-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: rgba(241, 235, 226, 0.9);
  max-width: 44ch;
}

/* ===== CUERPO — espacios sobre fondo oscuro liso ===== */
.la-casa__body {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: #14100c;
}

.la-casa__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #14100c;
}

.la-casa__container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== INTRO (legacy, ya no se usa) ===== */
.la-casa__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.la-casa__intro-text {
  padding-right: clamp(0rem, 2vw, 2rem);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 1.75rem;
}

.eyebrow--dark {
  color: var(--lc-text-soft);
}

.la-casa__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--lc-text);
  margin-bottom: 1.5rem;
}

.la-casa__title em {
  font-style: italic;
  font-weight: 500;
}

.divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-text-soft);
  margin-bottom: 1.75rem;
}

.divider--dark {
  background: var(--lc-text-soft);
  opacity: 0.5;
}

.la-casa__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--lc-text-soft);
  max-width: 36ch;
}

.la-casa__intro-figure {
  aspect-ratio: 4 / 3;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.6);
}

.la-casa__intro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.la-casa__intro-figure:hover img {
  transform: scale(1.03);
}

.la-casa__intro-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(20, 16, 12, 0.85));
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
}

/* ===== Placeholder reutilizable ===== */
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.025) 12px,
      transparent 12px,
      transparent 24px
    ),
    linear-gradient(160deg, #2a2018 0%, #1a1410 100%);
  color: rgba(241, 235, 226, 0.5);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.placeholder small {
  font-size: 0.6rem;
  color: rgba(241, 235, 226, 0.3);
  letter-spacing: 0.16em;
  text-transform: none;
  font-family: var(--font-sans);
}

.placeholder--dark {
  /* mismo estilo, semantic naming */
}

/* ===== GRID DE ESPACIOS ===== */
.la-casa__spaces-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 1.75rem;
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  align-items: start;
}

.spaces-grid .space-card:nth-child(5) {
  grid-column: 1;
}

/* Card */
.space-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.space-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 197, 169, 0.35);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
}

.space-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
}

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

/* Recuadro café compacto — la imagen es protagonista */
.space-card__body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.95rem;
  color: var(--color-text);
}

.space-card__number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.space-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-text);
  flex: 1;
  padding-right: 0.5rem;
}

.space-card__title em {
  font-style: italic;
  font-weight: 500;
}

.space-card__more {
  position: static;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.space-card__more svg {
  transition: transform 0.3s var(--ease);
}

.space-card:hover .space-card__more svg,
.space-card__more:hover svg {
  transform: translateX(3px);
}

.space-card:hover .space-card__more,
.space-card__more:hover {
  background: var(--color-text);
  color: var(--lc-card-bg);
  border-color: var(--color-text);
}

/* ============================================
   CONVOCATORIA
   ============================================ */
.convo {
  background: #1a1410;
  color: var(--convo-text);
  position: relative;
}

.convo__container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== 1. HERO ===== */
.convo__hero {
  position: relative;
  min-height: 88vh;
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) clamp(4rem, 7vw, 7rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.convo__hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.convo__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.convo__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(20, 12, 8, 0.7) 0%,
      rgba(20, 12, 8, 0.45) 40%,
      rgba(20, 12, 8, 0.25) 75%,
      rgba(20, 12, 8, 0.55) 100%
    );
}

.convo__hero-content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  color: var(--color-text);
}

.eyebrow--accent {
  color: #e6cba0;
}

.eyebrow--dark {
  color: var(--convo-text-soft);
}

.convo__hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.convo__hero-title em {
  font-style: italic;
  font-weight: 500;
}

.divider--light {
  background: rgba(230, 203, 160, 0.6);
}

.convo__hero-lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.005em;
}

.convo__hero-lead em {
  font-style: italic;
}

.convo__hero-sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(241, 235, 226, 0.85);
  margin-bottom: 2.25rem;
  max-width: 46ch;
}

.convo__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 2rem;
  background: var(--convo-accent);
  color: #fff8eb;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}

.convo__hero-cta:hover {
  background: #9c5429;
}

.convo__hero-cta svg {
  transition: transform 0.3s var(--ease);
}

.convo__hero-cta:hover svg {
  transform: translateX(4px);
}

/* ===== 2. PILARES ===== */
.convo__pillars {
  background: var(--convo-cream);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(181, 106, 58, 0.08), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(110, 120, 90, 0.06), transparent 40%);
  padding: clamp(3rem, 5vw, 5rem) var(--gutter);
  border-bottom: 1px solid var(--convo-line);
}

.convo__pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.pillar {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.pillar__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}

.pillar__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--convo-text);
}

.pillar__text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--convo-text-soft);
  max-width: 22ch;
}

/* ===== 3. SOBRE LA RESIDENCIA ===== */
.convo__about {
  background: transparent;
  padding: clamp(4rem, 7vw, 7rem) var(--gutter) clamp(2rem, 3vw, 3rem);
  position: relative;
}

.convo__about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Fondo oscuro → texto claro */
.convo__about .eyebrow--dark {
  color: #e6cba0;
  font-weight: 500;
}

.convo__about-lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-text);
  margin-top: 0.5rem;
}

.convo__details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.detail {
  padding: 1.5rem 1.1rem;
  background: rgba(241, 235, 226, 0.06);
  border: 1px solid rgba(241, 235, 226, 0.14);
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.detail__icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 0.25rem;
  /* Iconos café → tono claro/dorado para que resalten en el fondo oscuro */
  filter: brightness(0) saturate(100%) invert(82%) sepia(18%) saturate(420%) hue-rotate(353deg) brightness(95%);
}

.detail__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-text);
}

.detail__text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.detail__text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Módulo visual del espacio de residencia */
.convo__spaces {
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.convo__spaces-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #e6cba0;
  margin-bottom: 1.25rem;
}

.convo__spaces-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.convo__space-img {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
}

.convo__space-img--wide {
  aspect-ratio: 16 / 11;
}

.convo__space-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.convo__space-img:hover img {
  transform: scale(1.04);
}

.convo__space-img figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(20, 16, 12, 0.85));
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* ===== 4. QUOTE + COLLAGE ===== */
.convo__quote {
  background:
    url('../assets/img/convocatoria-dark.jpg') center / cover no-repeat,
    #2a201a;
  color: var(--color-text);
  padding: clamp(4rem, 7vw, 7rem) var(--gutter);
  position: relative;
}

.convo__quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 14, 10, 0.5), rgba(20, 14, 10, 0.2));
  pointer-events: none;
}

.convo__quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.convo__quote-collage {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}

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

.convo__quote-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 2rem;
}

.convo__quote-text::before {
  content: '“';
  position: absolute;
  left: -0.2rem;
  top: -2rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.6;
}

.convo__quote-text em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
}

/* ===== 5. BOTTOM: FAQ + DEADLINE + CTA ===== */
.convo__bottom {
  background: transparent;
  padding: clamp(2rem, 3vw, 3rem) var(--gutter) clamp(3.5rem, 6vw, 6rem);
}

/* Eyebrow "¿Tienes dudas?" → claro sobre oscuro */
.convo__bottom .eyebrow--dark {
  color: #e6cba0;
}

.convo__bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--color-line);
}

.convo__faq-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin: 0.5rem 0 1rem;
  max-width: 38ch;
}

.convo__faq-text a {
  color: var(--convo-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Link "Ver FAQs" → claro */
.convo__bottom .link-arrow {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--convo-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--convo-text);
  transition: gap 0.3s var(--ease);
}

.link-arrow:hover {
  gap: 0.85rem;
}

.convo__deadline {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(181, 106, 58, 0.16);
  border-left: 3px solid var(--convo-accent);
  padding: 1.5rem 1.75rem;
  border-radius: 0 4px 4px 0;
}

.convo__deadline-icon {
  color: #e6cba0;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.convo__deadline-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e6cba0;
  margin-bottom: 0.35rem;
}

.convo__deadline-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.convo__deadline-date span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-weight: 400;
}

.convo__deadline-note {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.convo__apply {
  display: flex;
  justify-content: center;
}

/* Botón "Registra tu propuesta" → terracota para resaltar en oscuro */
.convo__apply .btn-primary {
  background: var(--convo-accent);
  color: #fff8eb;
}

.convo__apply .btn-primary:hover {
  background: #9c5429;
}

/* Botones reutilizables */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.75rem;
  background: var(--convo-text);
  color: var(--convo-cream);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}

.btn-primary:hover {
  background: #1a1108;
}

.btn-primary svg {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary--lg {
  padding: 1.2rem 2.5rem;
  font-size: 0.82rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: transparent;
  color: var(--convo-text);
  border: 1px solid var(--convo-line);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-ghost:hover {
  background: rgba(42, 31, 23, 0.06);
  border-color: var(--convo-text-soft);
}

/* ============================================
   NOSOTROS  (cálido cobre / gastronómico)
   ============================================ */
.nosotros {
  --ns-bg: #1c1611;
  --ns-bg-soft: #251d16;
  --ns-text: #f1ebe2;
  --ns-text-soft: #c8bdae;
  --ns-text-muted: #9a8d7d;
  --ns-copper: #c47b4d;
  --ns-copper-soft: #d99c6f;
  --ns-line: rgba(241, 235, 226, 0.12);

  background: var(--ns-bg);
  color: var(--ns-text);
  position: relative;
}

/* Eyebrow cobre */
.eyebrow--copper {
  color: var(--ns-copper-soft);
  font-weight: 500;
}

.divider--copper {
  background: var(--ns-copper);
  opacity: 0.7;
}

/* ===== HERO ASIMÉTRICO ===== */
.nosotros__hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
  gap: 0;
}

.nosotros__hero-text {
  padding: 0 clamp(2rem, 4vw, 4rem) 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nosotros__hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ns-text);
  margin-bottom: 1.5rem;
}

.nosotros__hero-title em {
  font-style: italic;
  font-weight: 500;
}

.nosotros__hero-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ns-text-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.nosotros__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  align-self: flex-start;
  padding: 1.1rem 1.85rem;
  border: 1px solid var(--ns-copper);
  color: var(--ns-text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}

.nosotros__hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ns-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.nosotros__hero-cta:hover {
  color: var(--ns-bg);
}

.nosotros__hero-cta:hover::before {
  transform: scaleX(1);
}

.nosotros__hero-cta svg {
  transition: transform 0.3s var(--ease);
}

.nosotros__hero-cta:hover svg {
  transform: translateX(4px);
}

.nosotros__hero-figure {
  position: relative;
  overflow: hidden;
  margin-right: var(--gutter);
  border-radius: 2px;
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.6);
  aspect-ratio: 3 / 2;
}

.nosotros__hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ===== 3 PILARES ===== */
.nosotros__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ns-line);
  border-top: 1px solid var(--ns-line);
}

.upillar {
  background: var(--ns-bg);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease);
}

.upillar:hover {
  background: var(--ns-bg-soft);
}

.upillar__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.upillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.upillar:hover .upillar__media img {
  transform: scale(1.04);
}

.upillar__body {
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.upillar__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ns-copper-soft);
  margin-bottom: 0.85rem;
}

.upillar__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.15;
  color: var(--ns-text);
  margin-bottom: 1rem;
}

.upillar__title em {
  font-style: italic;
  font-weight: 500;
}

.upillar__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ns-text-soft);
  margin-bottom: 1.5rem;
}

.upillar__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  background: var(--ns-copper);
  color: var(--ns-bg);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}

.upillar__cta:hover {
  background: var(--ns-copper-soft);
}

.upillar__cta svg {
  transition: transform 0.3s var(--ease);
}

.upillar__cta:hover svg {
  transform: translateX(3px);
}

/* ============================================
   MODAL MENÚ DINÁMICO
   ============================================ */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 6, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  contain: layout style paint;
  will-change: opacity;
}

.menu-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-modal__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #1c1611;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  transform: translate3d(0, 8px, 0) scale(0.96);
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

.menu-modal.is-open .menu-modal__inner {
  transform: translate3d(0, 0, 0) scale(1);
}

.menu-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 14, 10, 0.6);
  border: 1px solid rgba(241, 235, 226, 0.18);
  border-radius: 50%;
  color: #f1ebe2;
  transition: background 0.3s var(--ease);
  z-index: 3;
}

.menu-modal__close:hover {
  background: rgba(196, 123, 77, 0.8);
}

.menu-modal__visual {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

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

.menu-modal__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 22, 17, 0.2), rgba(28, 22, 17, 0.6));
}

.menu-modal__content {
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f1ebe2;
}

.menu-modal__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  color: #f1ebe2;
  margin: 0.5rem 0 1.25rem;
}

.menu-modal__title em {
  font-style: italic;
  font-weight: 500;
  color: #d99c6f;
}

.menu-modal__divider {
  display: block;
  width: 40px;
  height: 1px;
  background: #c47b4d;
  margin-bottom: 1.25rem;
}

.menu-modal__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #c8bdae;
  margin-bottom: 1rem;
}

.menu-modal__text strong {
  color: #f1ebe2;
  font-weight: 600;
}

.menu-modal__text--soft {
  font-size: 0.88rem;
  color: #9a8d7d;
  margin-bottom: 1.75rem;
}

.menu-modal__instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #c47b4d, #b5683a);
  color: #fff8eb;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  align-self: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.menu-modal__instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(196, 123, 77, 0.7);
}

.menu-modal__instagram-arrow {
  transition: transform 0.3s var(--ease);
}

.menu-modal__instagram:hover .menu-modal__instagram-arrow {
  transform: translate(2px, -2px);
}

.menu-modal__handle {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #9a8d7d;
}

/* ============================================
   CONTACTO  (split: hero+mapa | form+info)
   ============================================ */
.contacto {
  --ct-bg: #1d1610;
  --ct-bg-soft: #261d15;
  --ct-text: #f1ebe2;
  --ct-text-soft: #c8bdae;
  --ct-text-muted: #8d8478;
  --ct-line: rgba(241, 235, 226, 0.14);
  --ct-accent: #b56a3a;
  --ct-sage: #6b7a5c;
  --ct-sage-bg: rgba(107, 122, 92, 0.16);

  background: var(--ct-bg);
  color: var(--ct-text);
  position: relative;
}

/* Split layout: 50/50 */
.contacto__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.contacto__left,
.contacto__right {
  display: flex;
  flex-direction: column;
}

/* ===== Columna izquierda: Hero + Mapa ===== */
.contacto__left {
  position: relative;
}

/* ===== HERO (parte superior de la columna izquierda) ===== */
.contacto__hero {
  position: relative;
  flex: 1 1 60%;
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 7vw, 7rem) clamp(2rem, 5vw, 5rem) clamp(4rem, 6vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.contacto__hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.contacto__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contacto__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      95deg,
      rgba(20, 14, 10, 0.92) 0%,
      rgba(20, 14, 10, 0.7) 40%,
      rgba(20, 14, 10, 0.45) 70%,
      rgba(20, 14, 10, 0.7) 100%
    );
}

.contacto__hero-content {
  width: 100%;
  max-width: 480px;
}

.contacto__hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ct-text);
  margin-bottom: 1.25rem;
}

.contacto__hero-title em {
  font-style: italic;
  font-weight: 500;
}

.contacto__hero-sub {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(241, 235, 226, 0.82);
  max-width: 42ch;
}

/* ===== MAPA (parte inferior columna izquierda) ===== */
.contacto__map {
  flex: 1 1 40%;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  /* Modo oscuro: invierte luminosidad y corrige el matiz para mantener
     colores naturales (agua azul, vegetación verde) sobre fondo oscuro */
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.8);
  transition: filter 0.5s var(--ease);
}

.contacto__map:hover {
  filter: invert(0.88) hue-rotate(180deg) brightness(1.05) contrast(0.92) saturate(0.95);
}

.contacto__map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== Columna derecha: Form + Banner + Info ===== */
.contacto__right {
  padding: clamp(4rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  gap: 2rem;
}

/* ===== FORMULARIO DARK ===== */
.contact-form--dark {
  background: rgba(241, 235, 226, 0.025);
  border: 1px solid var(--ct-line);
  border-radius: 3px;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form--dark .eyebrow {
  margin-bottom: 0.5rem;
}

.contact-form--dark .field {
  margin-bottom: 0;
}

.contact-form--dark .field__input {
  background: transparent;
  border: 1px solid rgba(241, 235, 226, 0.18);
  color: var(--ct-text);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.contact-form--dark .field__input::placeholder {
  color: rgba(241, 235, 226, 0.5);
  font-family: var(--font-sans);
}

.contact-form--dark .field__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(241, 235, 226, 0.04);
}

.contact-form--dark textarea.field__input {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-sans);
}

/* Botón outline para form dark */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.1rem 1.75rem;
  background: transparent;
  border: 1px solid var(--ct-text);
  color: var(--ct-text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
  cursor: pointer;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ct-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.btn-outline:hover {
  color: var(--ct-bg);
}

.btn-outline:hover::before {
  transform: scaleX(1);
}

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

.btn-outline .btn-icon {
  transition: transform 0.3s var(--ease);
}

.btn-outline:hover .btn-icon {
  transform: translateX(4px);
}

.contact-form__success {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(107, 122, 92, 0.15);
  border: 1px solid rgba(107, 122, 92, 0.35);
  border-radius: 3px;
  color: #b9c4a8;
  font-size: 0.88rem;
  text-align: center;
}

.contact-form__error {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(181, 106, 58, 0.15);
  border: 1px solid rgba(181, 106, 58, 0.35);
  border-radius: 3px;
  color: #e0a47a;
  font-size: 0.88rem;
  text-align: center;
}

.contact-form--dark.is-sending .btn-text { opacity: 0.4; }
.contact-form--dark.is-sending .btn-icon {
  animation: btnSpin 0.8s linear infinite;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ===== BANNER: Proponer idea ===== */
.propose-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--ct-sage-bg);
  border: 1px solid rgba(107, 122, 92, 0.35);
  border-radius: 3px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.propose-banner:hover {
  background: rgba(107, 122, 92, 0.22);
  border-color: rgba(107, 122, 92, 0.55);
}

.propose-banner__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 122, 92, 0.25);
  border-radius: 50%;
  flex-shrink: 0;
}

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

.propose-banner__text {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.35;
  color: var(--ct-text);
}

.propose-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ct-text);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ct-text);
  transition: gap 0.3s var(--ease);
  white-space: nowrap;
}

.propose-banner:hover .propose-banner__cta {
  gap: 0.95rem;
}

/* ===== INFO ESTRUCTURADA ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--ct-line);
  border-bottom: 1px solid var(--ct-line);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-info__item:hover {
  background: rgba(241, 235, 226, 0.03);
  transform: translateX(2px);
}

.contact-info__icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.contact-info__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.contact-info__item p {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ct-text);
}

/* ===== NEWSLETTER ===== */
.contacto__newsletter {
  padding: clamp(4rem, 7vw, 7rem) var(--gutter) clamp(4rem, 6vw, 6rem);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3.5vw, 3.5rem);
  background:
    linear-gradient(120deg, rgba(20, 14, 10, 0.55), rgba(20, 14, 10, 0.15) 60%, rgba(181, 106, 58, 0.10)),
    url('../assets/img/newsletter-bg.jpg') center / cover no-repeat;
  border: 1px solid rgba(212, 197, 169, 0.18);
  border-radius: 4px;
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 90%, rgba(212, 165, 102, 0.18), transparent 55%);
  pointer-events: none;
}

.newsletter > * {
  position: relative;
  z-index: 2;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--ct-text);
  margin: 0.75rem 0 1rem;
}

.newsletter__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
}

.newsletter__sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ct-text-soft);
  max-width: 40ch;
}

.newsletter__form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.newsletter__input {
  flex: 1;
  padding: 1rem 1.15rem;
  background: rgba(20, 14, 10, 0.7);
  border: 1px solid rgba(212, 197, 169, 0.25);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ct-text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.newsletter__input::placeholder {
  color: rgba(241, 235, 226, 0.55);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(20, 14, 10, 0.75);
}

.newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.5rem;
  background: var(--color-accent);
  color: var(--ct-bg);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}

.newsletter__btn:hover {
  background: var(--ct-text);
}

.newsletter__btn svg {
  transition: transform 0.3s var(--ease);
}

.newsletter__btn:hover svg {
  transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f0b08;
  color: var(--ct-text);
  padding: clamp(3.5rem, 5vw, 5rem) var(--gutter) 2rem;
  border-top: 1px solid var(--ct-line);
}

.footer__container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--ct-line);
}

/* Brand */
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  transition: opacity 0.25s var(--ease);
}

.footer__logo:hover { opacity: 0.75; }

.footer__logo img {
  width: 48px;
  height: auto;
  filter: brightness(0) invert(1) opacity(0.92);
}

.footer__logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.15;
  color: var(--ct-text);
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ct-text-soft);
  max-width: 22ch;
}

.footer__tagline em {
  font-style: italic;
  font-weight: 500;
  color: var(--ct-text);
}

/* Cols */
.footer__col-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.1rem;
}

.footer__nav,
.footer__contact,
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--ct-text-soft);
  transition: color 0.25s var(--ease);
}

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

.footer__contact li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ct-text-soft);
}

.footer__contact a {
  transition: color 0.25s var(--ease);
}

.footer__contact a:hover {
  color: var(--ct-text);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ct-text-soft);
  transition: color 0.25s var(--ease);
}

.footer__social a:hover {
  color: var(--ct-text);
}

.footer__social svg { color: var(--color-accent); }

/* Bottom */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ct-text-muted);
}

.footer__credit a {
  color: var(--ct-text-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.footer__credit a:hover {
  color: var(--color-accent);
}

/* ============================================
   GALERÍA  (oscuro cinematográfico + collage)
   ============================================ */
.galeria {
  --gal-bg: #14100c;
  --gal-bg-soft: #1d1812;
  --gal-text: #f1ebe2;
  --gal-text-soft: #c8bdae;
  --gal-text-muted: #8d8478;
  --gal-accent: #d4c5a9;
  --gal-line: rgba(241, 235, 226, 0.14);

  background: var(--gal-bg);
  color: var(--gal-text);
  position: relative;
}

/* ===== HERO COLLAGE ===== */
.galeria__hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 5rem var(--gutter) 6.5rem;
}

/* Strips verticales */
.galeria__hero-strips {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 1fr 1fr;
  z-index: -2;
}

.strip {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 1.2s var(--ease);
}

.strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.25) 0%, rgba(15, 11, 8, 0.55) 100%);
}

.galeria__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(15, 11, 8, 0.92) 0%,
      rgba(15, 11, 8, 0.65) 35%,
      rgba(15, 11, 8, 0.4) 60%,
      rgba(15, 11, 8, 0.7) 100%
    );
}

.galeria__hero-content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.2s var(--ease) 0.1s both;
}

.galeria__hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--gal-text);
  margin-bottom: 1rem;
  text-transform: none;
}

.galeria__hero-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--gal-text-soft);
  margin-bottom: 1.75rem;
  letter-spacing: 0;
}

.galeria__hero-subtitle em {
  font-style: italic;
  color: var(--gal-text);
}

.galeria__hero-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(241, 235, 226, 0.85);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.galeria__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.85rem;
  background: transparent;
  border: 1px solid var(--gal-text);
  color: var(--gal-text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}

.galeria__hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gal-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.galeria__hero-cta:hover {
  color: var(--gal-bg);
}

.galeria__hero-cta:hover::before {
  transform: scaleX(1);
}

.galeria__hero-cta svg {
  transition: transform 0.3s var(--ease);
}

.galeria__hero-cta:hover svg {
  transform: translateX(4px);
}

/* Tags inferiores */
.galeria__hero-tags {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 235, 226, 0.2);
  z-index: 2;
}

.galeria__hero-tags span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gal-text-soft);
  flex: 1;
  text-align: center;
}

/* ===== ARCHIVO ===== */
.galeria__archive {
  padding: clamp(4rem, 7vw, 7rem) var(--gutter) clamp(2.5rem, 4vw, 4rem);
  background: var(--gal-bg);
}

.galeria__archive-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.galeria__archive-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--gal-text);
  margin-top: 1rem;
}

.galeria__archive-title em {
  font-style: italic;
  font-weight: 500;
}

/* Eyebrow sage en oscuro */
.galeria__archive-head .eyebrow--sage-soft {
  color: #8a987c;
}

/* Filtros */
.galeria__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gal-line);
}

.gfilter {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gal-text-muted);
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.gfilter:hover {
  color: var(--gal-text);
}

.gfilter.is-active {
  color: var(--gal-bg);
  background: var(--gal-text);
  border-color: var(--gal-text);
}

/* Grid asimétrico tipo masonry */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gphoto {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--gal-bg-soft);
  cursor: pointer;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}

.gphoto:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Variantes de tamaño */
.gphoto--tall {
  grid-row: span 2;
}

.gphoto--wide {
  grid-column: span 2;
}

/* Caption overlay */
.gphoto figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(15, 11, 8, 0.85));
  color: var(--gal-text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gphoto:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gphoto figcaption span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a987c;
  display: block;
  margin-bottom: 0.25rem;
}

.gphoto figcaption p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Estados de filtro */
.gphoto.is-hidden,
.gphoto.is-over-limit {
  display: none;
}

/* ===== Botón Ver más / Ver menos ===== */
.galeria__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.galeria__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  background: #8a987c;
  color: var(--gal-bg);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.55);
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.galeria__more-btn:hover {
  background: #9aab8c;
  transform: translateY(-2px);
}

.galeria__more-btn svg {
  transition: transform 0.3s var(--ease);
}

.galeria__more-btn.is-expanded svg {
  transform: rotate(180deg);
}

/* Footer CTA */
.galeria__footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--gal-line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria__footer-logo {
  width: 84px;
  height: auto;
  margin-bottom: 1.75rem;
  filter: brightness(0) invert(1) opacity(0.6);
  transition: opacity 0.4s var(--ease);
}

.galeria__footer:hover .galeria__footer-logo {
  filter: brightness(0) invert(1) opacity(0.85);
}

.galeria__footer-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  color: var(--gal-text-soft);
  margin-bottom: 1.5rem;
}

.galeria__footer-text em {
  font-style: italic;
  color: var(--gal-text);
}

.galeria__footer .link-arrow--sage {
  color: #8a987c;
  border-bottom-color: #8a987c;
}

.galeria__footer .link-arrow--sage:hover {
  color: var(--gal-text);
  border-bottom-color: var(--gal-text);
}

/* ============================================
   AGENDA MODAL  (estado vacío contemplativo)
   ============================================ */
.agenda-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 8, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  contain: layout style paint;
  will-change: opacity;
}

.agenda-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.agenda-modal__inner {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 197, 169, 0.10), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(181, 106, 58, 0.08), transparent 50%),
    linear-gradient(180deg, #1d1812 0%, #14100c 100%);
  border: 1px solid rgba(241, 235, 226, 0.10);
  border-radius: 4px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3.5rem);
  text-align: center;
  color: var(--color-text);
  transform: translate3d(0, 20px, 0) scale(0.94);
  transition: transform 0.35s var(--ease);
  will-change: transform;
}

.agenda-modal.is-open .agenda-modal__inner {
  transform: translate3d(0, 0, 0) scale(1);
}

.agenda-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 235, 226, 0.04);
  border: 1px solid rgba(241, 235, 226, 0.14);
  border-radius: 50%;
  color: var(--color-text);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.agenda-modal__close:hover {
  background: rgba(241, 235, 226, 0.10);
  border-color: rgba(241, 235, 226, 0.3);
}

/* Decoraciones de puntos (constelaciones) */
.agenda-modal__deco-top,
.agenda-modal__deco-bottom {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0.4;
}

.agenda-modal__deco-top {
  margin-bottom: 2rem;
}

.agenda-modal__deco-bottom {
  margin-top: 2.5rem;
}

.agenda-modal__deco-top span,
.agenda-modal__deco-bottom span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

.agenda-modal__deco-top span:nth-child(2),
.agenda-modal__deco-bottom span:nth-child(2) {
  opacity: 0.5;
}

.agenda-modal__deco-top span:nth-child(3),
.agenda-modal__deco-bottom span:nth-child(3) {
  opacity: 0.25;
}

/* Logo central con pulso */
.agenda-modal__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.agenda-modal__logo {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agenda-modal__logo img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: brightness(0) invert(1) opacity(0.85);
}

.agenda-modal__logo-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212, 197, 169, 0.3);
  animation: agendaPulse 3s ease-in-out infinite;
}

.agenda-modal__logo-pulse::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212, 197, 169, 0.15);
  animation: agendaPulse 3s ease-in-out infinite 0.6s;
}

@keyframes agendaPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }
}

.agenda-modal__brand-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: rgba(241, 235, 226, 0.5);
  text-transform: uppercase;
}

/* Hero del modal */
.agenda-modal__hero {
  margin-bottom: 2.5rem;
}

.agenda-modal__hero .eyebrow--accent {
  margin-bottom: 1rem;
}

.agenda-modal__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.agenda-modal__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
}

.agenda-modal__divider {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto 1.5rem;
  opacity: 0.6;
}

.agenda-modal__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--color-text-soft);
  max-width: 34ch;
  margin: 0 auto;
}

/* Notify */
.agenda-modal__notify {
  padding: 1.75rem 1.5rem;
  background: rgba(241, 235, 226, 0.03);
  border: 1px solid rgba(241, 235, 226, 0.10);
  border-radius: 3px;
  margin-bottom: 2rem;
}

.agenda-modal__notify-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.agenda-modal__notify-title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 600;
}

.agenda-modal__form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.agenda-modal__input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: rgba(20, 14, 10, 0.5);
  border: 1px solid rgba(241, 235, 226, 0.18);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.agenda-modal__input::placeholder {
  color: rgba(241, 235, 226, 0.5);
}

.agenda-modal__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(20, 14, 10, 0.75);
}

.agenda-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.3s var(--ease);
}

.agenda-modal__btn:hover {
  background: var(--color-text);
}

.agenda-modal__btn svg {
  transition: transform 0.3s var(--ease);
}

.agenda-modal__btn:hover svg {
  transform: translateX(3px);
}

.agenda-modal__notify-sub {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Estados de envío */
.agenda-modal__notify.is-success .agenda-modal__form {
  display: none;
}

.agenda-modal__notify.is-success::after {
  content: '✓ ¡Listo! Te avisaremos cuando publiquemos el calendario.';
  display: block;
  padding: 0.85rem;
  background: rgba(107, 122, 92, 0.15);
  border: 1px solid rgba(107, 122, 92, 0.35);
  border-radius: 3px;
  color: #b9c4a8;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

/* CTAs cruzados */
.agenda-modal__bridges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agenda-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(241, 235, 226, 0.10);
  border-radius: 3px;
  text-align: left;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.agenda-bridge:hover {
  background: rgba(241, 235, 226, 0.04);
  border-color: rgba(212, 197, 169, 0.3);
  transform: translateX(3px);
}

.agenda-bridge__text {
  flex: 1;
}

.agenda-bridge__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.agenda-bridge p {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

.agenda-bridge svg {
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.agenda-bridge:hover svg {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 540px) {
  .agenda-modal__form {
    flex-direction: column;
  }
  .agenda-modal__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(10, 8, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  contain: layout style paint;
  will-change: opacity;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gal-text);
  border: 1px solid rgba(241, 235, 226, 0.2);
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: 2;
}

.lightbox__close {
  top: 2rem;
  right: 2rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev { left: 2rem; }
.lightbox__nav--next { right: 2rem; }

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(241, 235, 226, 0.1);
  border-color: var(--gal-text);
}

.lightbox__figure {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__figure figcaption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gal-text-soft);
  text-align: center;
  font-style: italic;
}

/* ============================================
   EVENTOS  (oscuro umber + acento sage / museo nocturno)
   ============================================ */
.eventos {
  --ev-bg: #1d1812;
  --ev-bg-soft: #261d15;
  --ev-card: #241c14;
  --ev-card-hover: #2c2218;
  --ev-text: #f1ebe2;
  --ev-text-soft: #c8bdae;
  --ev-text-muted: #8d8478;
  --ev-sage: #9aab8c;
  --ev-sage-soft: #8a987c;
  --ev-sage-dark: #b9c4a8;
  --ev-line: rgba(241, 235, 226, 0.12);

  background: var(--ev-bg);
  color: var(--ev-text);
  position: relative;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

/* Eyebrows sage */
.eyebrow--sage {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ev-sage);
  font-weight: 500;
}

.eyebrow--sage-soft {
  color: var(--ev-sage);
  font-weight: 500;
}

/* Link arrow sage */
.link-arrow--sage {
  color: var(--ev-text);
  border-bottom-color: rgba(241, 235, 226, 0.4);
}

.link-arrow--sage:hover {
  color: var(--ev-sage);
  border-bottom-color: var(--ev-sage);
}

/* ===== HERO ASIMÉTRICO ===== */
.eventos__hero {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: stretch;
  gap: 0;
  min-height: 60vh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(3rem, 5vw, 5rem);
}

.eventos__hero-text {
  padding: 0 clamp(2rem, 4vw, 4rem) 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eventos__hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ev-text);
  margin: 0.5rem 0 1.5rem;
  max-width: 14ch;
}

.eventos__hero-title em {
  font-style: italic;
  font-weight: 500;
}

.eventos__hero-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ev-text-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.eventos__hero-figure {
  position: relative;
  overflow: hidden;
  background: var(--ev-bg-soft);
  margin-right: var(--gutter);
  border-radius: 2px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

.eventos__hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
}

/* ===== ARCHIVO HEADER ===== */
.eventos__archive {
  padding: clamp(2.5rem, 4vw, 4rem) var(--gutter) 0;
}

.eventos__archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ev-line);
}

/* Pista de "desliza" */
.eventos__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ev-sage);
}

.eventos__hint svg {
  animation: hintSlide 1.6s ease-in-out infinite;
}

@keyframes hintSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ===== Flechas del carrusel (notorias, rellenas) ===== */
.eventos__nav {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.eventos__arrow {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  color: var(--ev-bg);
  background: var(--ev-sage);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  transition: background 0.3s var(--ease), transform 0.2s var(--ease), opacity 0.3s var(--ease);
}

.eventos__arrow:hover {
  background: var(--ev-sage-dark);
  transform: scale(1.08);
}

.eventos__arrow:active {
  transform: scale(0.96);
}

.eventos__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.eventos__arrow:disabled:hover {
  background: var(--ev-sage);
  transform: none;
}

/* ===== CARRUSEL DE EVENTOS (track horizontal) ===== */
.eventos-track {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  /* Ocultar scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.eventos-track::-webkit-scrollbar {
  display: none;
}

.eventos-track .evento-card {
  flex: 0 0 clamp(260px, 30vw, 340px);
  scroll-snap-align: start;
}

.evento-card {
  background: var(--ev-card);
  border: 1px solid var(--ev-line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.evento-card:hover {
  transform: translateY(-4px);
  background: var(--ev-card-hover);
  border-color: rgba(154, 171, 140, 0.3);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.55);
}

.evento-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ev-bg-soft);
}

.evento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.evento-card:hover .evento-card__media img {
  transform: scale(1.05);
}

.evento-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.evento-card__category {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ev-sage);
  margin-bottom: 0.5rem;
}

.evento-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ev-text);
  margin-bottom: 0.4rem;
}

.evento-card__author {
  font-size: 0.85rem;
  color: var(--ev-text-soft);
  margin-bottom: 0.2rem;
}

.evento-card__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ev-sage);
  margin-bottom: 1.25rem;
}

.evento-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ev-text);
  border-bottom: 1px solid rgba(241, 235, 226, 0.35);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.evento-card:hover .evento-card__cta,
.evento-card__cta:hover {
  color: var(--ev-sage);
  border-bottom-color: var(--ev-sage);
  gap: 0.85rem;
}

/* ===== BANNER CRUZADO A AGENDA ===== */
.eventos__bridge {
  padding: clamp(2rem, 4vw, 4rem) var(--gutter) 0;
}

.bridge {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2rem clamp(1.5rem, 3vw, 3rem);
  background: var(--ev-card);
  border: 1px solid var(--ev-line);
  border-left: 4px solid var(--ev-sage);
  border-radius: 2px;
  box-shadow: 0 2px 12px -4px rgba(0, 0, 0, 0.3);
}

.bridge__icon {
  flex-shrink: 0;
  color: var(--ev-sage);
}

.bridge__text {
  flex: 1;
}

.bridge__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--ev-text);
  margin-bottom: 0.3rem;
}

.bridge__sub {
  font-size: 0.88rem;
  color: var(--ev-text-soft);
  line-height: 1.55;
  max-width: 52ch;
}

.btn-sage {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: var(--ev-sage);
  color: #fff8eb;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.3s var(--ease);
  flex-shrink: 0;
}

.btn-sage:hover {
  background: var(--ev-sage-dark);
}

.btn-sage svg {
  transition: transform 0.3s var(--ease);
}

.btn-sage:hover svg {
  transform: translateX(4px);
}

/* ============================================
   PANEL DETALLE EVENTO (sage)
   ============================================ */
.evento-detail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 100%);
  background: #f3eddc;
  z-index: 95;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  color: #2a1f17;
  will-change: transform;
  contain: layout style paint;
}

.evento-detail.is-open {
  transform: translate3d(0, 0, 0);
}

.evento-detail__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 244, 0.85);
  border: 1px solid rgba(42, 31, 23, 0.12);
  border-radius: 50%;
  color: #2a1f17;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  z-index: 3;
}

.evento-detail__close:hover {
  background: #2a1f17;
  color: #f3eddc;
}

.evento-detail__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ede5d0;
}

.evento-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evento-detail__body {
  padding: 2.25rem 2.25rem 2.5rem;
}

.evento-detail__category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6b7a5c;
  margin-bottom: 0.6rem;
}

.evento-detail__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  color: #2a1f17;
  margin-bottom: 0.5rem;
}

.evento-detail__author {
  font-size: 1rem;
  color: #6b5544;
  margin-bottom: 0.2rem;
}

.evento-detail__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #a1907e;
  margin-bottom: 1.5rem;
}

.evento-detail__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #6b5544;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 31, 23, 0.12);
  margin-bottom: 1.5rem;
}

.evento-detail__meta {
  display: grid;
  gap: 0.85rem;
}

.evento-detail__meta-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: #2a1f17;
  padding: 0.85rem 1rem;
  background: rgba(255, 252, 244, 0.55);
  border-radius: 2px;
  border: 1px solid rgba(42, 31, 23, 0.08);
}

.evento-detail__meta-item strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b7a5c;
  margin-bottom: 0.2rem;
}

.evento-detail__meta-item p {
  color: #6b5544;
  line-height: 1.5;
}

/* ============================================
   TALLERES Y EVENTOS — sección unificada con pestañas
   ============================================ */
.te {
  position: relative;
  background: var(--color-bg);
  color: var(--color-text);
}

.te-anchor {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

/* Barra de pestañas (sticky bajo el nav) */
.te-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  padding: 0 var(--gutter);
}

.te-tabs__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: var(--nav-h);
}

.te-tab {
  position: relative;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
}

.te-tab::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.te-tab:hover {
  color: var(--color-text);
}

.te-tab.is-active {
  color: var(--color-text);
}

.te-tab.is-active::after {
  transform: scaleX(1);
}

/* Paneles */
.te-panel {
  display: none;
}

.te-panel.is-active {
  display: block;
  animation: teFade 0.45s var(--ease);
}

@keyframes teFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   TALLERES
   ============================================ */
.talleres {
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
}

/* ===== HERO ===== */
.talleres__hero {
  position: relative;
  min-height: 68vh;
  padding: clamp(3rem, 5vw, 5rem) var(--gutter) clamp(3.5rem, 6vw, 6rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.talleres__hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.talleres__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.talleres__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      95deg,
      rgba(20, 14, 10, 0.85) 0%,
      rgba(20, 14, 10, 0.55) 45%,
      rgba(20, 14, 10, 0.35) 75%,
      rgba(20, 14, 10, 0.65) 100%
    );
}

.talleres__hero-content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.talleres__hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.talleres__hero-title em {
  font-style: italic;
  font-weight: 500;
}

.talleres__hero-sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(241, 235, 226, 0.85);
  max-width: 46ch;
}

/* ===== FILTROS ===== */
.talleres__filters {
  background: var(--color-bg);
  padding: 2rem var(--gutter) 0.5rem;
  border-bottom: 1px solid var(--color-line);
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  position: relative;
}

.filter {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 0.55rem 0.9rem;
  position: relative;
  transition: color 0.25s var(--ease);
}

.filter::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

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

.filter.is-active {
  color: var(--color-text);
}

.filter.is-active::after {
  transform: scaleX(1);
}

.filter__calendar {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filter__calendar:hover {
  background: rgba(241, 235, 226, 0.06);
  border-color: var(--color-text-soft);
}

.filter__calendar svg {
  transition: transform 0.3s var(--ease);
}

.filter__calendar:hover svg:last-of-type {
  transform: translateX(2px);
}

/* ===== GRID DE TALLERES ===== */
.talleres__grid-wrap {
  padding: clamp(2.5rem, 4vw, 4rem) var(--gutter) clamp(2.5rem, 4vw, 4rem);
}

.talleres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.taller-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.taller-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 197, 169, 0.4);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.55);
}

.taller-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.taller-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.taller-card:hover .taller-card__media img {
  transform: scale(1.04);
}

.taller-card__date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: rgba(20, 16, 12, 0.9);
  border: 1px solid var(--color-line);
  border-radius: 2px;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1;
}

.taller-card__date strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}

.taller-card__date span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--color-text-soft);
}

.taller-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.taller-card__category {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.taller-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--color-text);
  margin: -0.1rem 0 0.15rem;
}

.taller-card__instructor {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}

.taller-card__instructor em {
  font-style: italic;
  color: var(--color-text);
}

.taller-card__desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  margin-bottom: 0.5rem;
}

.taller-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-line);
  margin-top: auto;
}

.taller-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.taller-meta img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: invert(100%) brightness(180%) opacity(0.75);
}

.taller-card__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}

.taller-card__cta:hover {
  background: #d4c5a9;
}

.taller-card__cta svg {
  transition: transform 0.3s var(--ease);
}

.taller-card__cta:hover svg {
  transform: translateX(3px);
}

/* ===== BANNER PERSONALIZADO ===== */
.talleres__banner {
  background:
    url('../assets/img/convocatoria-paper.jpg?v=2') center / cover no-repeat,
    var(--color-bg);
  padding: clamp(2.5rem, 4vw, 4rem) var(--gutter);
  border-top: 1px solid var(--color-line);
}

.banner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2rem clamp(1.5rem, 3vw, 3rem);
  background: rgba(241, 235, 226, 0.06);
  border: 1px solid rgba(241, 235, 226, 0.14);
  border-radius: 4px;
}

.banner__icon {
  width: 56px;
  height: auto;
  object-fit: contain;
  /* Icono claro/dorado para fondo oscuro */
  filter: brightness(0) saturate(100%) invert(82%) sepia(18%) saturate(420%) hue-rotate(353deg) brightness(95%);
  flex-shrink: 0;
}

.banner__text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.banner__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.25;
  color: var(--color-text);
  flex: 0 0 auto;
}

.banner__sub {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-soft);
  flex: 1;
}

.btn-primary--full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   MODAL INSCRIPCIÓN TALLER
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  background: rgba(10, 8, 6, 0.7);
  contain: layout style paint;
  will-change: opacity;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  background: var(--convo-cream);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  transform: translate3d(0, 8px, 0) scale(0.96);
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

.modal.is-open .modal__inner {
  transform: translate3d(0, 0, 0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 244, 0.85);
  border: 1px solid var(--convo-line);
  border-radius: 50%;
  color: var(--convo-text);
  transition: background 0.3s var(--ease);
  z-index: 3;
}

.modal__close:hover {
  background: var(--convo-text);
  color: var(--convo-cream);
}

/* Columna visual */
.modal__visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  isolation: isolate;
}

.modal__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.modal__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.55) 0%, rgba(20, 14, 10, 0.85) 100%);
  z-index: -1;
}

.modal__visual-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  color: var(--color-text);
}

.modal__visual-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 0.85rem;
}

.modal__visual-title em {
  font-style: italic;
  font-weight: 500;
}

.modal__visual-content p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(241, 235, 226, 0.85);
}

/* Columna formulario */
.modal__form-wrap {
  padding: 2.5rem 2.25rem;
  overflow-y: auto;
}

.modal__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  color: var(--convo-text);
  margin: 0.25rem 0 1rem;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--convo-line);
  margin-bottom: 1.5rem;
}

.modal__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--convo-text-soft);
}

.modal__meta img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.65;
}

.modal__form .field__input {
  background: rgba(255, 252, 244, 0.85);
}

/* ============================================
   PANEL FORMULARIO CONVOCATORIA
   ============================================ */
.form-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  background: var(--convo-cream);
  z-index: 95;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  padding: 4.5rem 2.5rem 2.5rem;
  color: var(--convo-text);
  will-change: transform;
  contain: layout style paint;
}

.form-panel.is-open {
  transform: translate3d(0, 0, 0);
}

.form-panel__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--convo-line);
  border-radius: 50%;
  color: var(--convo-text);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.form-panel__close:hover {
  background: var(--convo-text);
  color: var(--convo-cream);
}

.form-panel__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  color: var(--convo-text);
  margin-bottom: 1rem;
}

.form-panel__divider {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--convo-accent);
  margin: 0 auto 2rem;
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.stepper__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 1px;
  background: var(--convo-line);
}

.stepper__num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(42, 31, 23, 0.08);
  color: var(--convo-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.stepper__item.is-active .stepper__num {
  background: var(--convo-accent);
  color: #fff;
}

.stepper__item.is-completed .stepper__num {
  background: var(--convo-text);
  color: var(--convo-cream);
}

.stepper__label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--convo-text-soft);
  text-align: center;
  line-height: 1.3;
}

.stepper__item.is-active .stepper__label {
  color: var(--convo-text);
}

/* Form */
.form-step {
  display: none;
  animation: stepIn 0.35s var(--ease);
}

.form-step.is-active {
  display: block;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--convo-text);
  margin-bottom: 0.4rem;
}

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 252, 244, 0.6);
  border: 1px solid var(--convo-line);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--convo-text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field__input:focus {
  outline: none;
  border-color: var(--convo-accent);
  background: #fff;
}

.field__input::placeholder {
  color: var(--convo-text-muted);
}

textarea.field__input {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-sans);
}

.form-doc {
  padding: 1.25rem;
  background: rgba(255, 252, 244, 0.5);
  border: 1px solid var(--convo-line);
  border-radius: 3px;
  margin-bottom: 1rem;
}

.form-doc__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--convo-text);
  margin-bottom: 0.25rem;
}

.form-doc__hint {
  font-size: 0.75rem;
  color: var(--convo-text-soft);
  margin-bottom: 0.85rem;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border: 1px dashed var(--convo-text-soft);
  border-radius: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.file-upload:hover {
  background: rgba(255, 252, 244, 0.8);
}

.form-review-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--convo-text);
}

.form-review-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--convo-text-soft);
  margin-bottom: 1.5rem;
}

.field-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--convo-text-soft);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.field-check input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--convo-accent);
}

.field-check a {
  color: var(--convo-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.form-actions .btn-primary {
  flex: 1;
  justify-content: center;
}

.form-actions .btn-ghost {
  flex: 0 0 auto;
}

.form-panel__deadline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(181, 106, 58, 0.08);
  border-radius: 3px;
  color: var(--convo-text);
}

.form-panel__deadline svg {
  color: var(--convo-accent);
  flex-shrink: 0;
}

.form-panel__deadline strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.form-panel__deadline span {
  display: block;
  font-size: 0.78rem;
  color: var(--convo-text-soft);
}

/* ============================================
   PANEL DE DETALLE (sidebar)
   ============================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.72);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  will-change: opacity;
}

.overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.space-detail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100%);
  background: var(--lc-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(190, 110, 60, 0.10), transparent 38%),
    radial-gradient(circle at 92% 92%, rgba(135, 145, 100, 0.10), transparent 42%);
  z-index: 95;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  padding: 4.5rem 2.5rem 0;
  color: var(--lc-text);
  will-change: transform;
  contain: layout style paint;
  display: flex;
  flex-direction: column;
}

.space-detail.is-open {
  transform: translate3d(0, 0, 0);
}

.space-detail__inner {
  flex: 1;
  padding-bottom: 2rem;
}

.space-detail__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lc-line);
  border-radius: 50%;
  color: var(--lc-text);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.space-detail__close:hover {
  background: var(--lc-text);
  color: var(--lc-bg);
}

.space-detail__number {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--lc-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.space-detail__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--lc-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.005em;
}

.space-detail__title em {
  font-style: italic;
  font-weight: 500;
}

/* Divisor bajo el título del panel */
.space-detail__divider {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--convo-accent);
  opacity: 0.6;
  margin-bottom: 1.75rem;
}

/* Contenido fluido del panel (párrafos, listas, enlaces) */
.space-detail__content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--lc-text-soft);
}

.space-detail__content p {
  margin-bottom: 1.1rem;
}

.space-detail__content p:last-child {
  margin-bottom: 0;
}

/* Lista de modalidades (Residencias) */
.space-detail__list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 252, 244, 0.5);
  border: 1px solid var(--lc-line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.space-detail__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--lc-text);
}

.space-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--convo-accent);
}

/* Enlaces dentro del contenido */
.space-detail__content a {
  color: var(--convo-accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.space-detail__content a:hover {
  color: #8c4f26;
}

/* Nota de contenido pendiente (espacios 05-07) */
.space-detail__pending {
  font-style: italic;
  color: var(--lc-text-muted);
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lc-line);
}

/* ===== Footer del panel (compacto) ===== */
.space-detail__footer {
  position: sticky;
  bottom: 0;
  margin: 0 -2.5rem;
  padding: 0.95rem 2.5rem 1rem;
  background: var(--convo-cream-dark);
  border-top: 1px solid var(--lc-line);
}

.space-detail__footer-label {
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lc-text-soft);
  margin-bottom: 0.55rem;
}

.space-detail__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.space-footer-link {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 252, 244, 0.55);
  border: 1px solid var(--lc-line);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--lc-text);
  white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.space-footer-link:hover {
  background: var(--lc-text);
  color: var(--convo-cream);
  border-color: var(--lc-text);
}

.space-footer-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.space-footer-link:hover svg {
  transform: translateX(3px);
}

.space-detail__footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.space-detail__footer-brand img {
  width: 24px;
  height: auto;
  opacity: 0.6;
}

.space-detail__footer-brand span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lc-text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .spaces-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .spaces-grid .space-card:nth-child(5) {
    grid-column: auto;
  }

  .convo__pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

  .convo__details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .convo__spaces-grid {
    grid-template-columns: 1fr 1fr;
  }
  .convo__space-img--wide {
    grid-column: 1 / -1;
  }

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

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

  /* Galería */
  .galeria__hero-strips {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .galeria__hero-strips .strip:nth-child(n+4) {
    display: none;
  }
  .galeria__hero-tags {
    display: none;
  }
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }

  /* Nosotros */
  .nosotros__hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .nosotros__hero-text {
    padding: 0 var(--gutter);
  }
  .nosotros__hero-figure {
    margin: 0 var(--gutter);
    aspect-ratio: 16 / 10;
  }
  .nosotros__pillars {
    grid-template-columns: 1fr;
  }
  .menu-modal__inner {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .menu-modal__visual {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  /* Contacto */
  .contacto__split {
    grid-template-columns: 1fr;
  }
  .contacto__map {
    min-height: 320px;
  }
  .contacto__right {
    padding: 3rem 1.5rem;
  }
  .newsletter {
    grid-template-columns: 1fr;
    text-align: left;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Eventos */
  .eventos__hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .eventos__hero-text {
    padding: 0 var(--gutter);
  }
  .eventos__hero-figure {
    margin: 0 var(--gutter);
  }
  .eventos__hero-figure img {
    min-height: 320px;
    max-height: 50vh;
  }
  .eventos-track .evento-card {
    flex: 0 0 60vw;
  }
  .bridge {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  /* Talleres */
  .talleres-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .banner__text {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .modal__inner {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal__visual {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 1024px) {
  .nav__menu ul {
    gap: 1.2rem;
  }
  .nav__menu a {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 860px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 360px);
    background: var(--color-bg);
    border-left: 1px solid var(--color-line);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    justify-content: flex-start;
  }

  .nav.is-open .nav__menu {
    transform: translateX(0);
  }

  .nav__menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav__menu a {
    font-size: 0.9rem;
  }

  .nav__cta {
    margin-left: auto;
    padding: 0.65rem 1rem;
    font-size: 0.7rem;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__pagination {
    display: none;
  }

  .hero__title {
    max-width: 100%;
  }

  /* La Casa */
  .la-casa__hero {
    min-height: 80vh;
  }

  .la-casa__intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .la-casa__intro-text {
    padding-right: 0;
  }

  .spaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .space-detail {
    padding: 4.5rem 1.75rem 2rem;
  }
}

@media (max-width: 520px) {
  .nav__logo img {
    width: 44px;
  }
  .nav__logo-text {
    font-size: 0.72rem;
  }
  .nav__cta span,
  .nav__cta {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 0.6rem 0.85rem;
  }

  .hero {
    padding-bottom: 5rem;
  }

  .hero__eyebrow {
    margin-bottom: 1.5rem;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  .hero__cta {
    padding: 0.95rem 1.4rem;
    font-size: 0.7rem;
  }

  /* La Casa */
  .spaces-grid {
    grid-template-columns: 1fr;
  }

  /* Convocatoria */
  .convo__pillars-grid {
    grid-template-columns: 1fr;
  }
  .convo__details-grid {
    grid-template-columns: 1fr;
  }
  .form-row--2 {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 4.5rem 1.5rem 2rem;
  }

  /* Talleres */
  .talleres-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    gap: 0;
  }
  .filter {
    padding: 0.55rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }
  .filter__calendar {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .modal__form-wrap {
    padding: 1.75rem 1.25rem;
  }

  /* Eventos */
  .eventos-track .evento-card {
    flex: 0 0 80vw;
  }
  .evento-detail__body {
    padding: 1.75rem 1.5rem 2rem;
  }

  /* Contacto */
  .contacto__hero {
    padding: 4rem 1.5rem 3.5rem;
    min-height: auto;
  }
  .contact-info__row {
    grid-template-columns: 1fr;
  }
  .propose-banner {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }
  .propose-banner__cta {
    grid-column: 1 / -1;
    border-bottom: none;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(241, 235, 226, 0.15);
    margin-top: 0.5rem;
    justify-content: center;
    padding-bottom: 0;
  }
  .newsletter__form {
    flex-direction: column;
  }
  .newsletter__btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Galería */
  .galeria__hero {
    min-height: 80vh;
  }
  .galeria__hero-strips {
    grid-template-columns: 1fr 1fr;
  }
  .galeria__hero-strips .strip:nth-child(n+3) {
    display: none;
  }
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gphoto--wide {
    grid-column: span 2;
  }
  .gphoto figcaption {
    opacity: 1;
    transform: none;
    padding: 1rem 0.85rem 0.85rem;
  }
  .lightbox {
    padding: 1.5rem;
  }
  .lightbox__close { top: 1rem; right: 1rem; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}
