/* =========================================================
   STAGING & SOUL — styles.css  (v2)
   ========================================================= */

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

/* ── TOKENS ── */
:root {
  --blush:      #d4b8ba;
  --blush-lt:   #ede0e1;
  --blush-dk:   #b5979a;
  --blush-deep: #9c7a7e;
  --cream:      #faf8f6;
  --cream-2:    #f2ece7;
  --white:      #ffffff;
  --ink:        #1c1717;
  --ink-soft:   #3d3333;
  --ink-muted:  #7a6b6b;
  --line:       rgba(28,23,23,.10);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --nav-h: 102px;
  --wrap:  min(92vw, 1180px);
  --ease:  cubic-bezier(.22,1,.36,1);
  --shadow-soft: 0 14px 44px rgba(28,23,23,.10);
  --shadow-lift: 0 24px 70px rgba(28,23,23,.16);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blush-deep); outline-offset: 3px; border-radius: 2px; }

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blush-deep);
  margin-bottom: .9rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--blush-dk); display: inline-block;
}
.section-head .eyebrow::before { display: none; }
.heading-serif {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.13;
  color: var(--ink);
  margin-bottom: 1.4rem;
  letter-spacing: -.01em;
}
.heading-serif em { font-style: italic; color: var(--blush-deep); }
.body-text {
  font-size: .93rem;
  color: var(--ink-muted);
  line-height: 1.82;
  margin-bottom: 1rem;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.8rem;
  font-family: var(--sans); font-size: .75rem;
  font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  border-radius: 2px; border: 1.5px solid transparent;
  transition: all .35s var(--ease); cursor: pointer; white-space: nowrap;
}
.btn-white  { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover  { background: var(--blush-lt); border-color: var(--blush-lt); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark   { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: var(--blush-deep); border-color: var(--blush-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,23,23,.18); }
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.32); }
.ig-icon, .wa-icon { width: 17px; height: 17px; flex-shrink: 0; }

/* ── FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  height: var(--nav-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  background: rgba(250,248,246,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: var(--wrap); margin-inline: auto;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo-wrap { flex-shrink: 0; position: relative; display: flex; align-items: center; }
.nav-logo { height: 78px; width: auto; object-fit: contain; transition: opacity .4s var(--ease); }
.nav-logo-dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.nav.scrolled .nav-logo-light { opacity: 0; }
.nav.scrolled .nav-logo-dark  { opacity: 1; }
.nav-logo-wrap:hover .nav-logo { opacity: .82; }
.nav.scrolled .nav-logo-wrap:hover .nav-logo-light { opacity: 0; }

.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.2rem); }
.nav-links a {
  font-size: .78rem; font-weight: 400; letter-spacing: .05em;
  color: rgba(255,255,255,.92); transition: color .3s;
  position: relative;
}
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--blush-deep);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--blush-deep); }
.nav.scrolled .nav-links a:hover { color: var(--blush-deep); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--blush-deep) !important; color: #fff !important;
  padding: .48rem 1.25rem; border-radius: 2px;
  transition: background .3s var(--ease), transform .3s var(--ease) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ink) !important; color: #fff !important; transform: translateY(-1px); }

/* burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 310;
}
.burger span {
  display: block; width: 24px; height: 1.5px;
  background: #fff; transition: all .3s var(--ease);
}
.nav.scrolled .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); background: var(--ink); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); background: var(--ink); }

/* mobile drawer */
.nav-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh;
  width: min(310px, 82vw); background: var(--cream);
  padding: calc(var(--nav-h) + 1.5rem) 2rem 2rem;
  transform: translateX(100%); transition: transform .4s var(--ease);
  box-shadow: -6px 0 30px rgba(28,23,23,.1); z-index: 300;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer ul { display: flex; flex-direction: column; gap: 1.3rem; }
.nav-drawer a { font-size: 1.05rem; color: var(--ink-soft); font-weight: 400; font-family: var(--serif); position: relative; display: block; touch-action: manipulation; }
.nav-drawer a:hover { color: var(--blush-deep); }
.nav-drawer .drawer-sep { height: 1px; background: var(--line); margin: .4rem 0; }

.nav-scrim {
  display: none; position: fixed; inset: 0;
  background: rgba(28,23,23,.35); z-index: 295;
  opacity: 0; transition: opacity .3s;
}
.nav-scrim.open { display: block; opacity: 1; }

/* ── HERO ── */
.hero {
  position: relative; height: 100dvh; min-height: 580px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block;
  transform: scale(1);
}
/* solo aplica el pan a imágenes estáticas */
img.hero-img {
  transform: scale(1.08); transition: transform 9s var(--ease);
}
img.hero-img.loaded { transform: scale(1); }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(120deg,rgba(28,23,23,.78) 0%,rgba(28,23,23,.42) 58%,rgba(156,122,126,.22) 100%);
}
.hero-body {
  position: relative; z-index: 2;
  width: var(--wrap); margin-inline: auto;
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  font-size: .68rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 1.2rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: rgba(255,255,255,.5); }
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 7.2rem);
  font-weight: 400; line-height: 1.04; color: #fff; margin-bottom: 1.5rem;
  letter-spacing: -.015em;
}
.hero-headline em { font-style: italic; color: var(--blush-lt); }
.hero-lead {
  font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 300;
  color: rgba(255,255,255,.84); max-width: 470px;
  margin-bottom: 2.4rem; line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  z-index: 2; animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero-scroll span { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hero-scroll-bar { width: 1px; height: 38px; background: linear-gradient(to bottom,rgba(255,255,255,.5),transparent); }
@keyframes scrollPulse {
  0%,100% { opacity: .45; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(5px); }
}

/* ── ABOUT ── */
.about { padding: clamp(5rem,9vw,9rem) 0; background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); align-items: center;
}
.about-img-frame {
  position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-img-frame img { transition: transform .8s var(--ease); }
.about-img-frame:hover img { transform: scale(1.05); }
.about-badge {
  position: absolute; bottom: 1.4rem; right: 1.4rem;
  background: rgba(250,248,246,.93); backdrop-filter: blur(8px);
  padding: .9rem 1.2rem; border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  box-shadow: 0 6px 20px rgba(28,23,23,.12);
}
.about-badge span { font-family: var(--serif); font-size: .9rem; font-style: italic; color: var(--ink); }
.ab-amp { font-size: .7rem !important; font-style: normal !important; color: var(--blush-deep) !important; }

.about-stats {
  display: flex; gap: 2.5rem; margin-top: 2rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-n { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--ink); line-height: 1; }
.stat-l { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-muted); }

/* ── SERVICES ── */
.services { padding: clamp(5rem,9vw,9rem) 0; background: var(--cream-2); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); gap: 2px;
}
.srv-card {
  background: var(--cream); padding: 2.6rem 2rem; position: relative;
  transition: background .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
  cursor: default; overflow: hidden;
}
.srv-card::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--blush-deep); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.srv-card:hover { background: #fff; transform: translateY(-6px); box-shadow: var(--shadow-soft); z-index: 1; }
.srv-card:hover::after { transform: scaleX(1); }
.srv-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.3rem; }
.srv-num {
  font-family: var(--serif); font-size: 3.2rem; font-weight: 300;
  color: var(--blush-lt); line-height: .8;
  transition: color .3s;
}
.srv-card:hover .srv-num { color: var(--blush); }
.srv-icon {
  width: 30px; height: 30px; color: var(--blush-deep); flex-shrink: 0; margin-top: .4rem;
  transition: transform .45s var(--ease);
}
.srv-icon svg { width: 100%; height: 100%; }
.srv-card:hover .srv-icon { transform: translateY(-2px) rotate(-4deg); }
.srv-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); margin-bottom: .7rem; }
.srv-card p  { font-size: .87rem; color: var(--ink-muted); line-height: 1.8; }

/* ── PROJECTS / GALLERY (square-leaning, consistent 4:5) ── */
.projects { padding: clamp(5rem,9vw,9rem) 0; background: var(--cream); }
.gallery {
  margin-top: 3rem;
  width: var(--wrap); margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gal-item {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4/5; box-shadow: 0 6px 22px rgba(28,23,23,.07);
}
.gal-item img { transition: transform .8s var(--ease), filter .5s; filter: saturate(.94); }
.gal-item:hover img { transform: scale(1.06); filter: saturate(1.08); }
.gal-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.6rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(28,23,23,.68));
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  font-family: var(--serif); font-size: 1.02rem; font-style: italic; color: #fff;
}
.gal-item:hover .gal-cap { opacity: 1; transform: translateY(0); }

/* ── PROCESS ── */
.process { padding: clamp(5rem,9vw,9rem) 0; background: var(--cream-2); }
.process-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5rem); align-items: start;
}
.process-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 1.5rem; padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child { padding-top: 0; }
.step:last-child  { border-bottom: none; }
.step-n {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 300;
  color: var(--blush-deep); line-height: 1; flex-shrink: 0; width: 2.5rem;
}
.step-body h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); margin-bottom: .5rem; }
.step-body p  { font-size: .87rem; color: var(--ink-muted); line-height: 1.8; }

.process-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.proc-img { overflow: hidden; border-radius: 4px; aspect-ratio: 1/1; box-shadow: var(--shadow-soft); }
.proc-img-1 { grid-column: 1 / -1; aspect-ratio: 16/10; }
.proc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proc-img:hover img { transform: scale(1.05); }

/* ── BEFORE & AFTER ── */
.ba-section { padding: clamp(5rem,9vw,9rem) 0; background: var(--cream); }
.ba-hint { font-size: .87rem; color: var(--ink-muted); margin-top: .6rem; }
.ba-wrap { max-width: 720px; margin-inline: auto; }

.ba-slider {
  position: relative; width: 100%; aspect-ratio: 4/5; max-height: 620px;
  border-radius: 5px; overflow: hidden;
  user-select: none; cursor: col-resize;
  box-shadow: var(--shadow-lift);
}
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { z-index: 1; }
.ba-after   { z-index: 2; clip-path: inset(0 50% 0 0); }

.ba-tag {
  position: absolute; top: 1.2rem;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; padding: .35rem .8rem; border-radius: 2px; z-index: 10;
}
.ba-tag-before { left: 1.2rem; background: rgba(28,23,23,.74); color: #fff; }
.ba-tag-after  { right: 1.2rem; background: var(--blush-deep); color: #fff; }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 46px; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; justify-content: center;
}
.ba-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%); background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
}
.ba-circle {
  position: relative; width: 46px; height: 46px; background: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 2px 18px rgba(0,0,0,.24);
}
.ba-circle svg { width: 13px; height: 13px; color: var(--ink); flex-shrink: 0; }

.ba-caption { margin-top: 1.4rem; font-size: .87rem; color: var(--ink-muted); line-height: 1.7; text-align: center; }
.ba-caption strong { color: var(--ink); }

/* ── MARQUEE ── */
.marquee { background: var(--blush); padding: .95rem 0; overflow: hidden; }
.marquee-track {
  display: flex; gap: 1.8rem; width: max-content;
  animation: ticker 32s linear infinite;
}
.marquee-track span { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--ink); white-space: nowrap; opacity: .85; }
.dot { font-style: normal !important; opacity: .45 !important; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── CONTACT ── */
.contact { padding: clamp(5rem,9vw,9rem) 0; background: var(--cream-2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); align-items: center;
}
.contact-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .9rem; }
.contact-handle { font-size: .78rem; color: var(--ink-muted); letter-spacing: .05em; }

.contact-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ci-a, .ci-b { aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-soft); }
.ci-b { margin-top: 2.6rem; }
.ci-a img, .ci-b img { transition: transform .8s var(--ease); }
.ci-a:hover img, .ci-b:hover img { transform: scale(1.05); }

/* ── FOOTER ── */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 2rem;
}
.footer-logo { height: 82px; width: auto; object-fit: contain; margin-bottom: 1.2rem; opacity: .92; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.48); line-height: 1.7; }
.footer h4 { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a, .footer-contact a { font-size: .84rem; color: rgba(255,255,255,.62); transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--blush-lt); }
.footer-contact { display: flex; flex-direction: column; gap: .55rem; }
.footer-contact p { font-size: .84rem; color: rgba(255,255,255,.4); }
.footer-bottom { font-size: .73rem; color: rgba(255,255,255,.3); text-align: center; }

/* ══════════════════════════════ RESPONSIVE ══════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger    { display: flex; }

  .about-grid   { grid-template-columns: 1fr; }
  .about-img-frame { aspect-ratio: 4/5; max-width: 460px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .process-layout { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  .hero-headline { font-size: clamp(2.6rem, 12vw, 5rem); }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; gap: 2px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gal-cap { opacity: 1; transform: none; font-size: .82rem; padding: 1rem .8rem .8rem; }

  .ba-slider { aspect-ratio: 4/5; }

  .contact-cta-row { flex-direction: column; }
  .contact-cta-row .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .about-stats { gap: 1.5rem; }
  .btn { font-size: .72rem; padding: .75rem 1.4rem; }
}
