/* ══════════════════════════════════════════════════════
   OBRAS EXCLUSIVAS — Gamantri Fine Art Landing
   Diseño: Patricio [DSGN] · Tipografía y jerarquía visual
   Stack: Jura + Play (mismas que sitio principal)
══════════════════════════════════════════════════════ */

:root {
  --oex-gray1: rgba(242,237,232,0.72);  /* cuerpo de texto */
  --oex-gray2: rgba(242,237,232,0.40);  /* subtexto, placeholders */
  --oex-gray3: rgba(242,237,232,0.16);  /* bordes, líneas */
  --oex-line:  rgba(242,237,232,0.07);
}

/* ── Labels ── */
.oex-label-white  { color: var(--text) !important; }
.oex-label-accent { color: var(--accent) !important; }

/* ── Jerarquía tipográfica (Patricio) ──
   H1 panel: Play 400 clamp(24→44px) — moderado, no agresivo
   H2 sección: Play 400 clamp(26→48px)
   Cuerpo: Jura 400 16-18px, var(--oex-gray1)
   Sub-tags: Jura 400 12px letterspacing 0.3em, var(--oex-gray2)
   Labels acento: 12px letterspacing 0.32em, accent/white
*/
.oex-section-title {
  font-family: 'Play', sans-serif;
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text);
  margin: 12px 0 28px;
}
.oex-centered { text-align: center; }

/* ── Griffiths — registrada desde shared/styles.css ── */

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
#oex-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 56px;
  transition: background 0.4s, padding 0.4s;
}
#oex-header.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  padding: 18px 56px;
}
#oex-header .logo-btn img { height: 36px; }

/* ══════════════════════════════════════
   ① HERO PANEL — centrado, solo símbolo
══════════════════════════════════════ */
#oex-hero-panel {
  min-height: 72vh;          /* más delgado — la portada se "asoma" */
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 48px 56px;
  background: #141414;       /* gris 90% — ligeramente más claro que negro */
}
.oex-hero-panel-content {
  display: flex; flex-direction: column; align-items: center;
}
.oex-hero-logo {
  height: 96px;              /* 50% más grande que antes (64→96) */
  margin-bottom: 36px;
}
.oex-hero-panel-title {
  margin-bottom: 20px;
}

/* Jerarquía tipográfica del título hero
   Fine Art B&N → encima, más pequeño pero con peso visual propio
   COLECCIÓN EXCLUSIVA → debajo, el plato fuerte
*/
.oex-title-sub {
  display: block;
  font-family: 'Jura', sans-serif;
  font-size: clamp(18px, 2.1vw, 27px);   /* +50% vs anterior 12→18px */
  font-weight: 400;
  letter-spacing: 0.22em;
  color: #6E6B66;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.oex-title-main {
  display: block;
  font-family: 'Griffiths', 'Play', serif;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 228, 223, 0.80);       /* blanco al 80% */
  margin-bottom: 0;
}

/* "Actualmente en galería" — mismo estilo que .oex-title-sub actualizado */
.oex-obras-header .oex-section-title {
  font-family: 'Jura', sans-serif;
  font-size: clamp(18px, 2.1vw, 27px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6E6B66;
  margin-bottom: 0;
}
.oex-hero-sub {
  font-family: 'Jura', sans-serif;
  font-size: 14px;           /* 22px × 65% ≈ 14px */
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #4E4C48;
  margin-top: 18px;          /* espacio entre título y esta línea */
  margin-bottom: 44px; display: block;
  line-height: 1.4;
}
.btn-oex {
  display: inline-block;
  font-family: 'Jura', sans-serif;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--oex-gray3);
  padding: 14px 40px;
  transition: border-color 0.3s, background 0.3s;
}
.btn-oex:hover { border-color: var(--text); background: rgba(242,237,232,0.05); }

/* ══════════════════════════════════════
   ② PORTADA CON PARALLAX
══════════════════════════════════════ */
.oex-portada {
  position: relative;
  width: 100%;
  height: min(calc(100vw * 0.75), 92vh);
  overflow: hidden;
}
.oex-portada-img {
  position: absolute; inset: -25% 0;
  background: url('shared/assets/images/obras/0-O-P-HR.jpg') center 40% / cover no-repeat;
  filter: grayscale(100%) contrast(1.05);
  will-change: transform;
}
.oex-portada-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.2) 0%, transparent 50%);
}

/* ══════════════════════════════════════
   ③ MANIFIESTO — 2 columnas: texto + mockup
══════════════════════════════════════ */
#oex-manifiesto {
  padding: 96px 72px;
  border-top: 1px solid var(--oex-line);
}
.oex-manifiesto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.oex-manifiesto-left { }
.oex-manifiesto-copy {
  font-size: 16px; line-height: 2;
  color: var(--oex-gray1);
  max-width: 480px;
}

/* Mockup — imagen completa con márgenes */
.oex-manifiesto-right { }
.oex-mockup-frame {
  padding: 32px;
  background: #111;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.oex-mockup-frame img {
  width: 100%; height: auto;
  display: block;
  /* LC7: en color */
}

/* ══════════════════════════════════════
   ④ PROCESO — fondo claro, texto oscuro
══════════════════════════════════════ */
#oex-proceso {
  padding: 96px 72px;
  background: #E2DFD9;   /* gris cálido 85% blanco */
  border-top: 1px solid #c8c5be;
  border-bottom: 1px solid #c8c5be;
}
.oex-proceso-inner { max-width: 1200px; margin: 0 auto; }

/* Override labels en sección clara */
#oex-proceso .label { color: #7a7770 !important; }
#oex-proceso .oex-section-title { color: #1a1916; }

.oex-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 56px;
}

/* Cada step: texto + imagen hover */
.oex-step {
  position: relative;
  overflow: hidden;
  border-left: 1px solid #c8c5be;
  cursor: default;
  transition: background 0.3s;
}
.oex-step:hover { background: rgba(0,0,0,0.04); }

/* Paso 01 — fijo, sin hover */
.oex-step:first-child {
  border: 1px solid #b8b5ae;
  background: rgba(0,0,0,0.06);
  cursor: default;
}
.oex-step:first-child:hover { background: rgba(0,0,0,0.06); }
.oex-step:first-child:hover .oex-step-body { opacity: 1; }

/* Imagen de hover — cubre todo el step */
.oex-step-img {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 2;
}
.oex-step-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}
.oex-step:hover .oex-step-img { opacity: 1; }

/* Contenido del step */
.oex-step-body {
  padding: 36px 28px;
  position: relative; z-index: 1;
  transition: opacity 0.3s;
}
.oex-step:hover .oex-step-body { opacity: 0; }

.oex-step-num {
  display: block;
  font-family: 'Play', sans-serif;
  font-size: 32px; font-weight: 400;
  color: var(--accent);   /* naranja — único color vivo en la sección clara */
  margin-bottom: 14px; line-height: 1;
}
.oex-step-title {
  font-family: 'Play', sans-serif;
  font-size: 17px; font-weight: 400;
  color: #1a1a18;
  margin-bottom: 10px;
}
.oex-step-desc {
  font-family: 'Jura', sans-serif;
  font-size: 13px; line-height: 1.85;
  color: #6a6a66;
}

/* ══════════════════════════════════════
   ⑤ LAS OBRAS — misma estructura index
══════════════════════════════════════ */
#oex-obras {
  padding: 96px 0 0;
  border-top: 1px solid var(--oex-line);
}
.oex-obras-header {
  padding: 0 calc(0.025 * (100vw / 3) * 8) 48px;
}
.oex-obras-header .oex-section-title {
  margin-bottom: 0;
  font-size: calc(clamp(18px, 2.1vw, 27px) * 0.75);
}

/* Grid B&W: base=foto original sin filtro (ya es B&N), hover=Mu-Z en color */
/* Marco = 2.5% del ancho de card (~33vw). Gap interno = 2× marco. Laterales = 4× marco. */
.oex-grid-bw {
  --marco: calc(0.025 * (100vw / 3));
  gap: calc(var(--marco) * 4);
  padding: 0 calc(var(--marco) * 8);
  margin-bottom: calc(var(--marco) * 4);
}
.oex-grid-bw .obra-img-wrap  { aspect-ratio: 16 / 9; }
.oex-grid-bw .obra-img-base  { filter: none; }
.oex-grid-bw .obra-img-hover { filter: none; }

/* CO: imágenes en overlay obras exclusivas */
#oex-overlay-obra .obra-modal-foto-item { height: auto; object-fit: cover; width: 100%; display: block; }
#oex-foto-sola  { aspect-ratio: 16 / 9; }
#oex-foto-zoom  { aspect-ratio: 16 / 9; }
#oex-foto-full  { aspect-ratio: 3 / 2; }

/* ══════════════════════════════════════
   ⑥ FORMULARIO — jerarquía en grises
══════════════════════════════════════ */
#oex-contacto {
  padding: 96px 72px;
  border-top: 1px solid var(--oex-line);
  background: #212121;
}
.oex-form-wrap { max-width: 800px; margin: 0 auto; }

/* "Contacto" ya es .oex-label-accent → naranja */
/* Título de sección: blanco, Play */
/* Sub-intro: gris medio */
.oex-form-intro {
  font-family: 'Jura', sans-serif;
  font-size: 21px; line-height: 1.9;  /* LC10: 14px × 150% = 21px */
  color: var(--oex-gray2);
  margin-bottom: 48px;
}

/* Labels del formulario: var(--muted) ya viene de shared/styles.css */
/* Inputs: borde gris3, texto oex-gray1 */
.oex-form .form-label { color: var(--oex-gray2); }
.oex-form .form-input,
.oex-form .form-textarea {
  color: var(--oex-gray1);
  border-bottom-color: var(--oex-gray3);
}
.oex-form .form-input:focus,
.oex-form .form-textarea:focus {
  border-bottom-color: var(--oex-gray2);
}

.btn-oex-submit {
  font-family: 'Jura', sans-serif;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--oex-gray3);
  padding: 14px 44px; cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.btn-oex-submit:hover { border-color: var(--text); background: rgba(242,237,232,0.05); }

.oex-gracias {
  display: none; text-align: center; padding: 80px 0;
}
.oex-gracias img {
  height: 40px; opacity: 0.35;
  margin: 0 auto 24px; display: block;
}
.oex-gracias h3 {
  font-family: 'Play', sans-serif;
  font-size: 38px; font-weight: 400;
  color: var(--text); margin-bottom: 12px;
}
.oex-gracias p { font-size: 15px; color: var(--oex-gray1); }

/* ── PANEL EXPANDIBLE — pasos 02-05 ── */
#oex-proceso { position: relative; }   /* ancla para el panel absoluto */

.oex-steps { position: relative; }

/* Pasos clickeables: cursor pointer + hover sutil */
.oex-step-clickable { cursor: pointer; }
.oex-step-clickable:hover { background: rgba(0,0,0,0.06); }
.oex-step-clickable:hover .oex-step-body { opacity: 1; } /* anular fade */

/* Panel expandible */
.oex-paso-expand {
  position: absolute;
  top: 0;
  display: none;              /* hidden por defecto; JS toggle .active */
  flex-direction: row;
  align-items: stretch;
  border: 1px solid rgba(100,96,90,0.80);
  background: #D8D4CE;   /* opaco — mismo tono cálido que la sección, ligeramente más oscuro */
  z-index: 10;
  overflow: hidden;
  transition: opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}
.oex-paso-expand.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.oex-paso-expand-img {
  width: 58%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  filter: grayscale(100%) contrast(1.05);
}

.oex-paso-expand-info {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}
.oex-paso-expand-num {
  font-family: 'Play', sans-serif;
  font-size: 42px;
  font-weight: 400;
  color: #9a9690;
  line-height: 1;
}
.oex-paso-expand-title {
  font-family: 'Play', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2a2a26;
  margin-top: 4px;
}
.oex-paso-expand-desc {
  font-family: 'Jura', sans-serif;
  font-size: 12px;
  line-height: 1.8;
  color: #6a6762;
  margin-top: 6px;
}

/* ── LC8: scroll hint naranja en overlay obras exclusivas ── */
.oex-scroll-hint {
  color: var(--accent) !important;
}

/* ── Fix 2: botón cerrar siempre visible en overlay obras ── */
#oex-overlay-obra .overlay-close-wrap {
  position: sticky;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
  z-index: 400;
  pointer-events: none;
}
#oex-overlay-obra .overlay-close {
  position: static;
  pointer-events: all;
}

/* ── FOOTER ── */
.oex-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 56px;
  border-top: 1px solid var(--oex-line);
}
.oex-footer img { height: 28px; opacity: 0.45; }
.oex-footer .footer-links a,
.oex-footer .footer-links button {
  color: var(--oex-gray2);
  font-size: 13px;
}
.oex-footer .footer-copy { color: var(--oex-gray2); font-size: 12px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .oex-steps { grid-template-columns: repeat(3, 1fr); }
  .oex-manifiesto-inner { gap: 48px; }
}
/* oex-step-mob-img: hidden on desktop, shown on mobile */
.oex-step-mob-img { display: none; }

@media (max-width: 768px) {
  #oex-header { padding: 20px 24px; }
  #oex-hero-panel { padding: 100px 28px 64px; }
  .oex-hero-logo { height: 48px; }
  #oex-manifiesto, #oex-proceso, #oex-contacto { padding: 72px 24px; }
  .oex-manifiesto-inner { grid-template-columns: 1fr; gap: 40px; }
  .oex-obras-header { padding: 0 24px 40px; }
  .oex-steps { grid-template-columns: 1fr; }
  .oex-step { border-left: none; border-top: 1px solid #d0cec9; }
  .oex-footer { flex-direction: column; gap: 16px; padding: 28px 24px; text-align: center; }
  #oex-obras .obras-footer-row { padding: 24px; }
  .oex-paso-expand { display: none !important; }
  .oex-step-mob-img {
    display: block;
    width: 100%; height: auto;
    filter: grayscale(100%) contrast(1.05);
  }
  /* mob-E-Pr: desactivar hover/click oscuro en pasos 02-05, solo 01 queda fijo oscuro */
  .oex-step:hover { background: transparent; }
  .oex-step:hover .oex-step-img { opacity: 0; }
  .oex-step:hover .oex-step-body { opacity: 1; }
  .oex-step-clickable:hover { background: transparent; }
  /* Paso 01 mantiene su fondo oscuro fijo */
  .oex-step:first-child,
  .oex-step:first-child:hover { background: rgba(0,0,0,0.06); }
}
@media (max-width: 480px) {
  #oex-obras .obras-grid { grid-template-columns: 1fr; }
}
