/* =========================================================
   Witamy Mastay · Rosa María Reyna Enríquez
   Psicoterapeuta familiar · CDMX
   ========================================================= */

:root {
  --olive:       #6F684C;
  --olive-deep:  #4F4A33;
  --terra:       #BE8D6F;
  --terra-deep:  #A56F4F;
  --taupe:       #BFAE9E;
  --soft:        #A69A7E;
  --sand:        #DAD0BD;
  --cream:       #F2EBDC;
  --paper:       #FBF6EC;
  --ink:         #2C2A22;
  --muted:       #756C5D;
  --line:        rgba(44,42,34,.16);
  --line-soft:   rgba(44,42,34,.10);
  --nav-h:       84px;
  --pad:         7vw;
  --maxw:        1320px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- shared type ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .26em;
  font-size: 11.5px; font-weight: 500;
}
.kicker {
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 12px; font-weight: 600; color: var(--olive);
  margin: 0 0 18px;
}
.kicker--terra { color: var(--terra-deep); }
.h-section {
  font-size: clamp(34px, 5.1vw, 70px);
  line-height: .98; letter-spacing: .01em; color: var(--ink);
  margin: 0 0 26px;
}
.lede {
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  color: var(--muted); max-width: 56ch; margin: 0 0 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid currentColor; border-radius: 999px;
  padding: 15px 26px; font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  cursor: pointer; line-height: 1;
}
.btn__ico { display: inline-flex; }
.btn__ico svg { width: 17px; height: 17px; }
.btn--solid { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.btn--solid:hover { background: var(--olive-deep); border-color: var(--olive-deep); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ghost { background: transparent; }

/* ---------- reveal (only hides when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  color: var(--paper);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: var(--nav-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__kicker { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .8; }
.brand__name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; letter-spacing: .02em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  position: relative; padding: 6px 0; opacity: .92;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { color: var(--paper); border-color: rgba(251,246,236,.5); padding: 12px 22px; }
.nav__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.nav.is-scrolled {
  background: rgba(251,246,236,.92);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.is-scrolled .brand__kicker { opacity: .65; }
.nav.is-scrolled .nav__cta { color: var(--olive); border-color: var(--olive); }
.nav.is-scrolled .nav__cta:hover { background: var(--olive); color: var(--paper); }
.nav.is-scrolled .nav__burger span { background: var(--ink); }

.nav__burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  padding: 0; cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
}
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--paper); border-radius: 2px; transition: .3s var(--ease); }

/* =========================================================
   DRAWER (mobile menu)
   ========================================================= */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--olive-deep); color: var(--paper);
  padding: 26px 28px 36px;
  display: flex; flex-direction: column;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .4s var(--ease), visibility .4s;
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__brand { font-size: 26px; font-weight: 500; }
.drawer__close { background: none; border: 0; color: var(--paper); font-size: 40px; line-height: 1; cursor: pointer; width: 44px; height: 44px; }
.drawer__links { margin: auto 0; display: grid; gap: 6px; }
.drawer__links a {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 9vw, 44px);
  font-weight: 500; padding: 8px 0; border-bottom: 1px solid rgba(251,246,236,.14);
}
.drawer__cta { justify-content: center; background: var(--terra); border-color: var(--terra); color: #fff; padding: 17px; }
.drawer__cta:hover { background: var(--terra-deep); border-color: var(--terra-deep); }
.drawer__foot { margin: 18px 0 0; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 4vh) var(--pad) 12vh;
  color: var(--paper); overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(190,141,111,.40), transparent 55%),
    linear-gradient(155deg, #3c3a26 0%, var(--olive) 52%, #837a59 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero__orb--a { width: 46vw; height: 46vw; top: -14vw; right: -8vw; background: radial-gradient(circle, rgba(218,208,189,.55), transparent 70%); }
.hero__orb--b { width: 40vw; height: 40vw; bottom: -16vw; left: -10vw; background: radial-gradient(circle, rgba(79,74,51,.7), transparent 70%); }
.hero__branch { position: absolute; right: 4vw; bottom: 0; height: 78%; width: auto; color: rgba(242,235,220,.5); }
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__eyebrow { color: rgba(242,235,220,.86); margin: 0 0 22px; }
.hero__title {
  font-size: clamp(66px, 13vw, 158px); line-height: .82; letter-spacing: .015em;
  margin: 0 0 22px; text-shadow: 0 2px 40px rgba(0,0,0,.18);
}
.hero__welcome { font-size: clamp(22px, 3.2vw, 40px); font-weight: 400; letter-spacing: .04em; margin: 0 0 10px; }
.hero__tagline {
  font-style: italic; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.15;
  max-width: 18ch; margin: 0 0 36px; color: rgba(242,235,220,.94);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--line { color: var(--paper); border-color: rgba(242,235,220,.45); }
.hero .btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(242,235,220,.5); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: rgba(242,235,220,.8); animation: scrolldot 1.7s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   FRAMES (photo shapes)
   ========================================================= */
.frame { position: relative; overflow: hidden; margin: 0; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.frame--arch { border-radius: 999px 999px 16px 16px; aspect-ratio: 4 / 5; }
.frame--dome { border-radius: 240px 240px 18px 18px; aspect-ratio: 3 / 4.1; }
.frame--corner { border-radius: 14px 130px 14px 14px; aspect-ratio: 5 / 4; }
.frame--corner-b { border-radius: 14px 14px 130px 14px; aspect-ratio: 4 / 5; }

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  background: var(--paper);
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(40px, 6vw, 90px);
  align-items: center; padding: clamp(70px, 9vw, 130px) var(--pad);
}
.path {
  margin-top: 40px; display: grid; gap: 13px;
  border-left: 1px solid var(--line); padding-left: 28px;
}
.path li {
  text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px;
  color: var(--olive); font-weight: 500; display: flex; align-items: center; gap: 14px;
}
.path li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); flex: none; }
.intro__media { display: grid; place-items: center; }
.frame--arch { width: min(440px, 100%); }

/* =========================================================
   VALUES
   ========================================================= */
.values {
  background: var(--sand);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 30px var(--pad);
}
.value {
  text-align: center; padding: 10px; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--olive-deep); font-weight: 500;
  border-left: 1px solid rgba(44,42,34,.12);
}
.value:first-child { border-left: 0; }

/* =========================================================
   APPROACH
   ========================================================= */
.approach {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center; padding: clamp(70px, 9vw, 130px) var(--pad);
}
.approach__media .frame--corner { width: min(560px, 100%); }
.approach__text { max-width: 560px; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  background: var(--olive-deep); color: var(--paper);
  padding: clamp(64px, 8vw, 104px) var(--pad);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(218,208,189,.16), transparent 34%),
    radial-gradient(circle at 84% 88%, rgba(190,141,111,.20), transparent 40%);
}
.stats__grid {
  position: relative; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 56px);
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font-size: clamp(62px, 8vw, 118px); line-height: .82; font-weight: 500; }
.stat__label { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; margin-top: 12px; color: rgba(242,235,220,.7); }
.stat p { margin: 16px 0 0; max-width: 30ch; font-size: 14.5px; color: rgba(242,235,220,.82); }
.stats__note {
  position: relative; text-align: center; margin: clamp(40px, 5vw, 60px) auto 0;
  font-size: clamp(22px, 2.6vw, 30px); font-style: italic; color: rgba(242,235,220,.9);
}

/* =========================================================
   AREAS
   ========================================================= */
.areas { background: var(--paper); padding: clamp(70px, 9vw, 120px) var(--pad) 0; }
.areas__head {
  max-width: var(--maxw); margin: 0 auto clamp(40px, 5vw, 60px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.areas__head .h-section { margin: 0; }
.areas__intro { max-width: 44ch; color: var(--muted); font-size: 16px; }
.areas__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.area {
  border-radius: 16px; padding: 30px 26px 34px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.area:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -26px rgba(44,42,34,.5); }
.area__mark { margin-bottom: auto; }
.area__mark svg { width: 38px; height: 38px; opacity: .92; }
.area h3 { font-size: clamp(24px, 2vw, 30px); font-weight: 500; margin: 22px 0 8px; }
.area p { font-size: 14px; margin: 0; }
.area--olive    { background: var(--olive);      color: var(--paper); }
.area--olive p  { color: rgba(242,235,220,.82); }
.area--sand     { background: var(--taupe);      color: var(--olive-deep); }
.area--sand p   { color: rgba(44,42,34,.7); }
.area--terra    { background: var(--terra);      color: #fff; }
.area--terra p  { color: rgba(255,255,255,.86); }
.area--cream    { background: var(--cream);      color: var(--ink); border: 1px solid var(--line-soft); }
.area--cream p  { color: var(--muted); }
.area--darkolive   { background: var(--olive-deep); color: var(--paper); }
.area--darkolive p { color: rgba(242,235,220,.8); }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--cream);
  display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 6vw, 92px);
  align-items: center; padding: clamp(80px, 10vw, 140px) var(--pad);
}
.about__media { display: grid; place-items: center; }
.frame--dome { width: min(460px, 100%); }
.about__text { max-width: 600px; }
.about__list { margin-top: 30px; display: grid; gap: 0; }
.about__list li {
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink); font-size: 15.5px; position: relative; padding-left: 26px;
}
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 1px; background: var(--terra);
}

/* =========================================================
   QUOTE
   ========================================================= */
.quote {
  background: var(--olive); color: var(--paper);
  padding: clamp(80px, 11vw, 150px) var(--pad);
  text-align: center; position: relative; overflow: hidden;
}
.quote::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(79,74,51,.55), transparent 60%);
}
.quote__mark { position: relative; width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 30px; opacity: .9; }
.quote__text {
  position: relative; max-width: 20ch; margin: 0 auto 22px;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1.1; font-weight: 500;
}
@media (min-width: 760px) { .quote__text { max-width: 24ch; } }
.quote__sub { position: relative; text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: rgba(242,235,220,.78); margin: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 92px);
  align-items: center; padding: clamp(70px, 9vw, 130px) var(--pad);
}
.contact__media { display: grid; place-items: center; }
.frame--corner-b { width: min(460px, 100%); }
.contact__panel { max-width: 540px; }
.contact__info { margin: 30px 0 34px; display: grid; gap: 18px; }
.contact__info li { display: flex; align-items: center; gap: 16px; font-size: 16px; color: var(--ink); }
.contact__info a:hover { color: var(--terra-deep); }
.contact__ico {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); color: var(--olive); border: 1px solid var(--line-soft);
}
.contact__ico svg { width: 19px; height: 19px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--olive-deep); color: rgba(242,235,220,.82); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap;
}
.footer__logo { width: clamp(220px, 24vw, 320px); height: auto; opacity: .96; }
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.footer__links a:hover { opacity: 1; color: var(--terra); }
.footer__bar {
  border-top: 1px solid rgba(242,235,220,.14);
  padding: 20px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,235,220,.6);
  max-width: var(--maxw); margin: 0 auto;
}

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.cta-bar {
  display: none;
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 80;
  background: var(--olive); color: var(--paper);
  border-radius: 999px; padding: 15px; justify-content: center; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 14px 30px -12px rgba(44,42,34,.6);
}
.cta-bar__ico svg { width: 18px; height: 18px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1040px) {
  :root { --pad: 6vw; }
  .areas__grid { grid-template-columns: repeat(3, 1fr); }
  .area--darkolive { grid-column: span 1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .intro, .approach, .about, .contact { grid-template-columns: 1fr; }
  .intro__media, .approach__media, .about__media, .contact__media { order: -1; }
  .approach .approach__media { order: -1; }
  .areas__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .values { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .value:nth-child(4) { border-left: 0; }
  .stats__grid { grid-template-columns: 1fr; gap: 44px; }
  .stat { padding-bottom: 8px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__bar { flex-direction: column; gap: 8px; }
}

@media (max-width: 720px) {
  :root { --pad: 24px; }
  body { padding-bottom: 84px; } /* room for sticky CTA */
  .cta-bar { display: flex; }

  .hero { padding: calc(var(--nav-h) + 6vh) var(--pad) 16vh; min-height: 92svh; }
  .hero__title { font-size: clamp(58px, 19vw, 110px); }
  .hero__tagline { max-width: 22ch; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__branch { opacity: .35; right: -6vw; height: 56%; }
  .hero__scroll { display: none; }

  .frame--arch, .frame--dome, .frame--corner, .frame--corner-b { width: 100%; max-width: 460px; }
  .frame--corner  { aspect-ratio: 4 / 3; }

  /* AREAS → horizontal snap carousel */
  .areas { padding-bottom: 8px; }
  .areas__grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 76%;
    grid-template-columns: none; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 22px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .areas__grid::-webkit-scrollbar { display: none; }
  .area { scroll-snap-align: start; min-height: 300px; }

  .contact__info li { font-size: 15px; }
  .footer__links { gap: 16px 22px; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 19.5vw; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; }
  .areas__grid { grid-auto-columns: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .exp { transition: none !important; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   ADD-ONS 2026-06-18 · imágenes de fondo, nav 1 fila,
   cifras, sección "Sobre mí" y experiencia desplegable
   ========================================================= */

/* ---- HERO: foto de fondo (portada de inicio) + velo ---- */
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(34,32,22,.90) 0%, rgba(44,42,28,.74) 42%, rgba(63,60,40,.46) 72%, rgba(79,74,51,.34) 100%),
    linear-gradient(180deg, rgba(34,32,22,.42) 0%, transparent 30%, rgba(34,32,22,.30) 100%);
}
.hero__branch { z-index: 2; }
.hero__inner { z-index: 3; }
.hero__scroll { z-index: 3; }

/* ---- HEADER: logo ROSY como máscara (cambia de color al hacer scroll, 1 solo elemento) ---- */
.brand__logo {
  display: block;
  height: 52px; width: auto;
  aspect-ratio: 820 / 298;
  background-color: var(--cream);
  -webkit-mask: url("/assets/witamy/logo-rosy-cream.png") no-repeat center / contain;
          mask: url("/assets/witamy/logo-rosy-cream.png") no-repeat center / contain;
  transition: background-color .45s var(--ease), opacity .5s var(--ease);
}
.nav.is-scrolled .brand__logo { background-color: var(--olive-deep); }
.loading .nav .brand__logo { opacity: 0; }
@media (max-width: 1120px) { .brand__logo { height: 44px; } }
@media (max-width: 480px)  { .brand__logo { height: 38px; } }

/* ---- PRECARGA / LOADER (logo que vuela al menú) ---- */
#loader {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  background-color: var(--olive-deep);
  transition: opacity .6s var(--ease), background-color .9s var(--ease), visibility .6s;
}
.js #loader { display: flex; }
#loader.fade { background-color: transparent; }
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo-wrap {
  width: clamp(213px, 52vw, 350px); /* +25% */
  display: flex; justify-content: center;
  opacity: 0; transform: translateY(22px) scale(.96);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  will-change: transform, opacity;
}
.loader-logo-wrap.in { opacity: 1; transform: none; }
.loader-img {
  display: block; width: 100%; aspect-ratio: 820 / 298;
  background-color: var(--cream);
  -webkit-mask: url("/assets/witamy/logo-rosy-cream.png") no-repeat center / contain;
          mask: url("/assets/witamy/logo-rosy-cream.png") no-repeat center / contain;
}
.loader-bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--terra);
  transition: width 1.2s var(--ease) .25s, opacity .4s var(--ease);
}
.loader-bar.fill { width: 100%; }

/* tagline del hero en 2 filas (no 3) */
.hero__tagline { max-width: none; }

/* ---- CONTACTO: imagen "rosy final" sin bordes redondeados, sin zoom ---- */
.contact .frame--plain { border-radius: 0; }
.contact__media .frame img { transform: none; }

/* optimización móvil: que el eyebrow del hero no se corte en pantallas angostas */
@media (max-width: 560px) {
  .hero__eyebrow { font-size: 10px; letter-spacing: .12em; }
  .hero__tagline { font-size: clamp(19px, 5.6vw, 26px); }
}

/* ---- STATS: foto de fondo (cifras) ---- */
.stats {
  background-color: var(--olive-deep);
  background-image:
    linear-gradient(180deg, rgba(44,42,28,.82) 0%, rgba(56,53,36,.88) 100%),
    url("/assets/witamy/cifras-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* ---- QUOTE: imagen "frase final" más clara/suave + texto en olivo (contraste) ---- */
.quote {
  background-color: var(--sand);
  background-image:
    linear-gradient(180deg, rgba(247,242,232,.46) 0%, rgba(247,242,232,.56) 100%),
    url("/assets/witamy/frase-final.jpg");
  background-size: cover;
  background-position: center;
  color: var(--olive-deep);
}
.quote::before { display: none; }
.quote__text { color: var(--olive-deep); }
.quote__sub {
  color: var(--olive-deep);
  text-transform: none;
  letter-spacing: normal;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  max-width: 56ch;
  margin: 22px auto 0;
}

/* ---- NAV: garantizar SIEMPRE una sola fila ---- */
.nav__inner { flex-wrap: nowrap; gap: 16px; }
.nav__links { flex-wrap: nowrap; gap: 22px; }
.nav__links a { white-space: nowrap; }
.brand { flex: none; }
.brand__name { white-space: nowrap; }
.nav__cta { white-space: nowrap; padding: 11px 18px; }
@media (min-width: 1121px) and (max-width: 1280px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 10.5px; letter-spacing: .13em; }
  .brand__name { font-size: 19px; }
}
/* Por debajo de 1120px usamos el menú hamburguesa (siempre 1 fila) */
@media (max-width: 1120px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ---- STATS: separar el número de "AÑOS" (evitar leer "ANOS") ---- */
.stat__label {
  margin-top: 32px;
  font-size: 14.5px;
  letter-spacing: .3em;
}

/* ---- ABOUT / SOBRE MÍ: que se identifique como la parte biográfica ---- */
.about__badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border: 1px solid var(--terra);
  border-radius: 999px;
  color: var(--terra-deep);
  background: rgba(190,141,111,.10);
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 11.5px; font-weight: 600;
}
.about__badge::before {
  content: ""; width: 16px; height: 1px; background: var(--terra-deep);
}

/* ---- "Ver experiencia completa" desplegable ---- */
.about__more { margin-top: 34px; text-align: center; }
.exp-toggle { cursor: pointer; }
.exp-toggle__ico svg { transition: transform .4s var(--ease); }
.exp-toggle.is-open .exp-toggle__ico svg { transform: rotate(180deg); }

.exp {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease), margin-top .45s var(--ease);
}
.exp.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 30px; }
.exp__inner { overflow: hidden; min-height: 0; }

.exp__head { margin-bottom: 22px; }
.exp__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; margin: 0 0 12px; }
.exp__lede { color: var(--muted); font-size: 15.5px; margin: 0; max-width: 56ch; }

.exp__figures {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px;
  margin: 0 0 8px; padding: 22px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.exp__figures li { display: flex; align-items: baseline; gap: 12px; }
.exp__fig { font-size: 30px; line-height: 1; color: var(--terra-deep); font-weight: 500; flex: none; }
.exp__figtxt { font-size: 13px; color: var(--muted); line-height: 1.4; }

.exp__acc { margin-top: 18px; display: grid; gap: 0; }
.acc { border-bottom: 1px solid var(--line-soft); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc__sign { position: relative; width: 16px; height: 16px; flex: none; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; background: var(--terra-deep);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.acc__sign::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc__sign::after  { top: 0; left: 7px; width: 2px; height: 16px; }
.acc[open] .acc__sign::after { transform: scaleY(0); opacity: 0; }
.acc summary:hover { color: var(--terra-deep); }
.acc__body { padding: 0 0 22px; color: var(--muted); }
.acc__body > p { margin: 0 0 14px; font-size: 14.5px; }

.exp__names { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.exp__names li {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink); background: var(--paper);
}
.exp__topics { display: grid; gap: 9px; }
.exp__topics li {
  position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink);
}
.exp__topics li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 1px; background: var(--terra);
}
.exp__cv { display: grid; gap: 16px; }
.exp__cv li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.exp__year {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--olive); font-weight: 600; padding-top: 2px;
}
.exp__cv strong { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.exp__cv p { margin: 0; font-size: 13.5px; color: var(--muted); }
.exp__note { margin: 16px 0 0; font-size: 13px; font-style: italic; color: var(--muted); }

@media (max-width: 560px) {
  .exp__figures { grid-template-columns: 1fr; }
  .exp__cv li { grid-template-columns: 1fr; gap: 2px; }
  .exp__year { padding-top: 0; }
  .about__more .btn { width: 100%; justify-content: center; }
}
