
/* ── TOKENS ─────────────────────────────── */
:root {
  --bg:       #181310;
  --panel:    #221A15;
  --black:    #14110B;
  --cream:    #FEF2E9;
  --orange:   #E07856;
  --lavender: #C8A2C8;
  --prog-bg:  #2B232B;
  --duo-shadow: #271529;

  --f-micro:   "forma-djr-micro",   system-ui, sans-serif;
  --f-text:    "forma-djr-text",    system-ui, sans-serif;
  --f-display: "slight-chance",     Georgia, serif;
  --f-mono:    "slight-chance-mono",monospace;

  --px:  clamp(20px, 4vw, 64px);
  --nav-h: 56px;
  --hair:   1px solid rgba(254,242,233,.13);
  --hair-l: 1px solid rgba(200,162,200,.2);
}

/* ── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
body  { font-family: var(--f-text); background: var(--bg); color: var(--cream); overflow-x: clip; font-feature-settings: "salt"; -webkit-font-smoothing: antialiased; }
a     { text-decoration: none; color: inherit; }
img   { display: block; max-width: 100%; }
ul    { list-style: none; }
::selection { background: var(--orange); color: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.eyebrow {
  font-family: var(--f-micro);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ── NAV ─────────────────────────────── */
header { display: contents; }
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(24,19,16,.92); backdrop-filter: blur(10px);
  border-bottom: var(--hair);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nav.hide { transform: translateY(-100%); }
.nav-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 19px var(--px);
}
.nav-logo svg { fill: var(--cream); display: block; }
.nav-iso { display: none; }
.nav-iso svg { fill: var(--cream); display: block; }
.nav-logo .nav-logo-svg--compact { display: none; }
.nav-right { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav-links a { color: var(--cream); opacity: .6; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.nav-menu-btn {
  display: none; border: 0; background: transparent; color: var(--cream);
  cursor: pointer; padding: 0; line-height: 0;
}
.nav-menu-btn svg { width: auto; height: clamp(16px, 5vw, 20px); display: block; }
.nav-menu-btn .icon-close { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-close { display: block; }
.nav-drawer {
  display: none; flex-direction: column;
  padding: 0 var(--px) 28px; border-top: var(--hair);
}
.nav-drawer.open { display: flex; }
.nav-drawer-links {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0 18px;
}
.nav-drawer-links a {
  font-family: var(--f-micro); font-size: 15px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); opacity: .65; transition: opacity .15s;
  padding: 15px 0;
}
.nav-drawer-links a:hover { opacity: 1; }
.nav-drawer-social {
  display: flex; gap: 18px; padding-top: 20px; border-top: var(--hair);
}
.nav-drawer-social a { color: var(--cream); opacity: .5; transition: opacity .15s; }
.nav-drawer-social a:hover { opacity: 1; }
.nav-drawer-social svg { width: 20px; height: 20px; display: block; }

/* ── HERO ─────────────────────────────── */
.hero-photos { display: flex; }
.hero-photo { flex: 1; position: relative; aspect-ratio: 1/1; max-height: 74vh; background: #0f0c08 center/cover; overflow: hidden; }
.hero-photo + .hero-photo { border-left: var(--hair); }
.hero-ticker {
  background: var(--orange); color: var(--bg);
  display: flex; justify-content: center; align-items: center; gap: 16px;
  padding: 15px var(--px);
}
.hero-ticker-label { color: var(--cream); }
.hero-ticker-cta { color: var(--bg); transition: opacity .15s; }
.hero-ticker-cta:hover { opacity: .6; }

/* ── SECTION SCAFFOLD ─────────────────────────────── */
.section-label { display: block; color: var(--orange); margin-bottom: clamp(22px, 3vw, 38px); }

/* ── NOSOTROS ─────────────────────────────── */
.sobre { position: relative; background: var(--cream); color: var(--black); padding: clamp(54px, 8vw, 120px) var(--px); }
.sobre-gallery { display: flex; flex-direction: column; gap: clamp(12px, 1.5vw, 18px); }
.sobre-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.sobre-copy { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.sobre-lead {
  font-family: "forma-djr-display", var(--f-text); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em;
  max-width: 28ch; text-wrap: balance;
  margin-bottom: clamp(16px, 1.8vw, 26px);
}
.sobre-text { font-size: 16px; line-height: 1.8; opacity: .72; max-width: 50ch; margin-bottom: clamp(20px, 2.4vw, 30px); }
.link-arrow { color: var(--orange); display: inline-flex; align-items: center; gap: 7px; text-decoration: underline; text-underline-offset: 3px; transition: gap .2s, opacity .15s; }
.link-arrow:hover { gap: 13px; opacity: .7; }

.slider { position: relative; }
.slider-window { position: relative; overflow: hidden; background: var(--panel); cursor: grab; touch-action: pan-y; }
.slider-window:active { cursor: grabbing; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.22,.7,.2,1); }
.slide {
  position: relative; flex: 0 0 100%;
  aspect-ratio: 3 / 2; background: var(--panel) center/cover;
  user-select: none; -webkit-user-drag: none;
}
.slider-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.slider-count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--cream); }
.slider-cap { font-family: var(--f-micro); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); opacity: .85; }
.slider-nav { display: flex; gap: 16px; pointer-events: auto; }
.slider-nav button {
  border: 0; background: transparent; color: var(--cream); opacity: .85;
  cursor: pointer; font-size: 20px; line-height: 1; padding: 2px; transition: opacity .15s, color .15s;
}
.slider-nav button:hover { opacity: 1; color: var(--orange); }

/* ── PROGRAMA ─────────────────────────────── */
.promo {
  background: var(--prog-bg); color: var(--cream);
  margin: clamp(32px, 5vw, 84px) var(--px);
  --ppx: clamp(26px, 3.4vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: clamp(560px, 86vh, 820px);
  position: relative; overflow: hidden;
}
.promo-left {
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 4vw, 48px);
  padding: clamp(30px, 4vw, 56px) var(--ppx);
}
.promo-right { position: relative; overflow: hidden; }
.promo-right .duo-img { position: absolute; inset: 0; background: center/cover; }
.promo-svg { position: absolute; bottom: clamp(20px, 3vw, 42px); right: clamp(20px, 3vw, 42px); z-index: 2; }
.promo-svg img { height: clamp(110px, 14vw, 168px); width: auto; display: block; }

.promo-stats { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 0; width: 100%; }
.promo-stats span { font-family: var(--f-micro); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.promo-stats b { color: var(--lavender); }

.promo-lockup { display: block; width: 100%; height: auto; }
.promo-barbottom { display: flex; flex-direction: column; padding-top: clamp(14px, 1.8vw, 22px); }
.promo-bar-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: clamp(12px, 1.4vw, 18px);
}
.promo-bar-actions {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 10px;
  padding-top: clamp(12px, 1.4vw, 18px); border-top: var(--hair-l);
}
.promo-barbottom .a { font-family: var(--f-micro); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.promo-barbottom .b { font-family: var(--f-mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--lavender); opacity: .85; }
.promo-barbottom .c, .promo-barbottom .d {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 4px;
}
.promo-barbottom .c::after, .promo-barbottom .d::after { content: '▸'; font-size: 16px; transform: translateY(-2px); }
.promo-barbottom .c {
  background: var(--cream); color: var(--prog-bg);
  transition: background .15s, color .15s;
}
.promo-barbottom .c:hover { background: var(--orange); color: var(--cream); }
.promo-barbottom .d {
  color: var(--cream); opacity: .65;
  border: 1px solid rgba(254,242,233,.22);
  transition: opacity .15s;
}
.promo-barbottom .d:hover { opacity: 1; }

/* ── TALLERES ───────────── */
.talleres { background: var(--bg); border-bottom: var(--hair); }
.talleres-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
  padding: clamp(54px, 8vw, 120px) var(--px);
}
.talleres-left {
  position: sticky; top: calc(var(--nav-h) + 24px); align-self: start;
  display: flex; flex-direction: column; gap: clamp(22px, 3vw, 38px);
}
.talleres-left .section-label { margin-bottom: 0; }
.talleres-title {
  font-family: var(--f-display); font-weight: 400; color: var(--cream);
  font-size: clamp(30px, 4vw, 58px); line-height: .96; letter-spacing: -.02em; text-wrap: balance;
  max-width: 18ch;
}
.talleres-intro { font-size: 16px; line-height: 1.8; color: var(--cream); opacity: .72; }
.talleres-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px) clamp(24px, 3vw, 44px);
}
.card { display: flex; flex-direction: column; }
.card-photo { width: 100%; aspect-ratio: 3/2; overflow: hidden; background: var(--panel); margin-bottom: clamp(14px, 1.6vw, 22px); }
.card-photo > div { width: 100%; height: 100%; background: center/cover; }
.card-body { flex: 1; }
.card-name {
  font-family: var(--f-display); font-weight: 400; color: var(--orange);
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1; letter-spacing: -.01em;
  text-wrap: balance;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}
.card-text { font-size: 15px; line-height: 1.7; opacity: .75; }

/* ── SERVICIOS ─────────────────────────────── */
.servicios { background: var(--bg); border-bottom: var(--hair); }
.servicios-inner { padding: clamp(54px,8vw,120px) var(--px) 0; }
.servicios-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px,4vw,64px); align-items: end;
  margin-bottom: clamp(36px,5vw,72px);
}
.servicios-title {
  font-family: var(--f-display); font-weight: 400; color: var(--cream);
  font-size: clamp(30px, 4vw, 58px); line-height: .95; letter-spacing: -.02em; text-wrap: balance;
}
.servicios-intro { font-size: 16px; line-height: 1.8; color: var(--cream); opacity: .72; max-width: 46ch; }

.svc-window { overflow: hidden; cursor: grab; touch-action: pan-y; }
.svc-window:active { cursor: grabbing; }
.svc-track { display: flex; transition: transform .6s cubic-bezier(.22,.7,.2,1); }
.svc-slide { flex: 0 0 calc(100% / 3.5); aspect-ratio: 4/3; background: center/cover no-repeat; padding-right: 12px; box-sizing: border-box; background-clip: content-box; background-origin: content-box; }
.svc-controls {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--px);
}
.svc-count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--cream); opacity: .7; }
.svc-nav { display: flex; gap: 16px; }
.svc-nav button {
  border: 0; background: transparent; color: var(--cream); opacity: .85;
  cursor: pointer; font-size: 20px; line-height: 1; padding: 2px;
  transition: opacity .15s, color .15s;
}
.svc-nav button:hover { opacity: 1; color: var(--orange); }

.servicios-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: clamp(20px,3vw,52px);
  padding: clamp(36px,5vw,72px) var(--px) clamp(54px,8vw,120px);
  border-top: var(--hair);
}
.servicio-title {
  font-family: var(--f-micro); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.servicio-text { font-size: 15px; line-height: 1.7; color: var(--cream); opacity: .70; }
.servicio-list { list-style: none; padding: 0; margin: 10px 0 0; }
.servicio-list li {
  font-size: 15px; line-height: 1.8; color: var(--cream); opacity: .65;
  padding-left: 16px; position: relative;
}
.servicio-list li::before { content: '—'; position: absolute; left: 0; opacity: .5; }

/* ── CONTACTO ─────────────────────────────── */
.contacto {
  display: grid; grid-template-columns: 3fr 9fr; column-gap: clamp(28px, 5vw, 72px);
  padding: 0 var(--px) 0 0; align-items: stretch;
}
.contacto-photo {
  background: url('img/contacto.webp') center/cover no-repeat;
}
.contacto-body { padding: clamp(32px, 4vw, 56px) 0; }
.contacto-eyebrow { color: var(--orange); display: block; margin-bottom: clamp(22px, 3vw, 38px); }
.contacto-email {
  font-family: var(--f-display); font-size: clamp(19px, 2.2vw, 30px); color: var(--orange);
  display: inline-block; border-bottom: 1px solid rgba(224,120,86,.35); padding-bottom: 2px; transition: opacity .15s;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.contacto-email:hover { opacity: .55; }
.contacto-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 34px); align-items: start; }
.contacto-col dl { margin-bottom: 0; }
.contacto-col dt { display: block; margin-bottom: 8px; color: var(--lavender); }
.contacto-col dd { font-size: 15px; line-height: 1.7; opacity: .78; }
.contacto-col dd a { color: var(--orange); }
.contacto-col dd a:hover { opacity: .5; }

/* ── FOOTER ─────────────────────────────── */
.footer {
  background: var(--black); color: var(--cream);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 26px var(--px);
}
.footer-logo svg { fill: var(--cream); opacity: .6; display: block; height: 18px; width: auto; }
.footer-meta { justify-self: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; opacity: .55; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 18px; }
.footer-links a { color: var(--cream); opacity: .55; transition: opacity .15s, color .15s; }
.footer-links a:hover { opacity: 1; color: var(--orange); }
.footer-links svg { width: 21px; height: 21px; display: block; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-photo { max-height: none; }
  .sobre-copy { position: static; }
  .sobre-grid { grid-template-columns: 1fr; gap: 32px 0; }
  .promo { grid-template-columns: 1fr; min-height: 0; }
  .promo-right { order: -1; min-height: clamp(220px, 44vw, 340px); }
  .contacto { grid-template-columns: 1fr; padding: 0; }
  .contacto-photo { min-height: clamp(240px, 56vw, 360px); }
  .contacto-body { padding: clamp(40px, 9vw, 64px) var(--px); }
  .talleres-layout { grid-template-columns: 1fr; }
  .talleres-left { position: static; }
  .talleres-grid { grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px); }
  .servicios-header { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .svc-slide { flex-basis: calc(100% / 2.5); }
  .footer { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .footer-logo, .footer-meta, .footer-links { justify-self: center; text-align: center; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
}
@media (max-width: 520px) {
  .nav-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 16px var(--px); }
  .nav-iso { display: block; }
  .nav-iso svg { height: clamp(16px, 5vw, 20px); width: auto; }
  .nav-logo { justify-self: center; min-width: 0; }
  .nav-logo svg { width: auto; max-width: 100%; }
  .nav-logo .nav-logo-svg--full { display: none; }
  .nav-logo .nav-logo-svg--compact { display: block; height: clamp(16px, 5vw, 20px); }
  .nav-right { justify-self: end; }
  .footer-logo { justify-self: stretch; width: 100%; }
  .footer-logo svg { width: 100%; height: auto; }
  .promo { margin-left: 0; margin-right: 0; }
  .promo-barbottom .c, .promo-barbottom .d { flex: 1 1 0; justify-content: center; padding: 12px 12px; }
  .hero-photos { flex-direction: column; }
  .hero-photo { flex: none; width: 100%; aspect-ratio: 4/3; max-height: none; }
  .hero-photo + .hero-photo { border-left: 0; border-top: var(--hair); }
  .hero-ticker { flex-direction: column; gap: 6px; text-align: center; }
  .slider-cap { display: none; }
  .talleres-grid { grid-template-columns: 1fr; }
  .promo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .promo-stats span, .promo-barbottom .a, .promo-barbottom .b { font-size: 12px; }
  .promo-stats span:nth-child(even) { text-align: right; }
  .servicios-grid { grid-template-columns: 1fr; }
  .contacto-col { grid-template-columns: 1fr; gap: 22px; }
  .svc-slide { flex-basis: 100%; }
}

/* ── Franja Ignacio ─── */
.sobre-ignacio-name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(22px, 2.8vw, 38px); line-height: .92; letter-spacing: -.02em;
}
.sobre-ignacio-role {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lavender);
}
.team {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(44px, 6vw, 84px);
}
.team-card {
  background: var(--panel); color: var(--cream);
  padding: clamp(24px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 22px);
}
.team-head { display: flex; align-items: center; gap: 18px; }
.team-photo {
  flex: 0 0 clamp(64px, 6vw, 84px); aspect-ratio: 1/1; border-radius: 2px;
  background: url('img/ignacio-tamarit.webp') center 25%/cover;
}
.team-id { display: flex; flex-direction: column; gap: 4px; }
.team-id .sobre-ignacio-name { color: var(--cream); }
.team-id .sobre-ignacio-role { opacity: .7; }
.team-bio { font-size: 15px; line-height: 1.7; color: var(--cream); opacity: .72; text-wrap: pretty; }
@media (max-width: 820px) {
  .team { grid-template-columns: 1fr; }
}

/* ── Nosotros variante oscura ─── */
.sobre--dark { background: var(--bg); color: var(--cream); }
.sobre--dark .sobre-text { color: var(--cream); }

.team-ig { display: inline-flex; align-items: center; gap: .35em; vertical-align: middle; margin-left: .5em; font-family: var(--f-micro); font-size: 15px; text-transform: lowercase; color: inherit; text-decoration: none; opacity: .55; transition: opacity .15s; }
.team-ig:hover { opacity: 1; }
.team-ig svg { display: none; }
@media (max-width: 520px) {
  .team-ig { display: block; margin-left: 0; margin-top: 2px; }
}
