/* =============================================================
   ProFit Mind — styles.css
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components
   6. Sections
   7. Effects
   8. Responsive
   9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f3f2ec;
  --bg-2:      #e8e4d6;
  --paper:     #fffdf8;
  --ink:       #262620;
  --ink-soft:  #3d3d35;
  --ink-mute:  #77766c;
  --olive:     #5c6a45;
  --olive-dark:#3d4630;
  --olive-2:   #7c8a5e;
  --stone:     #8c8a7c;
  --stone-dark:#56554a;
  --line:      rgba(38,38,32,0.14);
  --line-soft: rgba(38,38,32,0.08);

  --ink-deep:  #1d2018;
  --ink-deep-2:#262a1f;
  --cream-dk:  #f1efe2;
  --cream-dk-mute: rgba(241,239,226,0.68);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 20px;
  --radius-sm: 10px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(10px); } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--olive); color: var(--cream-dk); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream-dk);
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--olive-dark); font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--olive);
}

.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }

/* Tinted section — soft beige break used for closing CTAs / trust strips.
   Kept deliberately light: the site avoids heavy dark blocks outside the hero photo and footer. */
.section-tint {
  background: var(--bg-2);
  color: var(--ink);
  border-block: 1px solid var(--line-soft);
}
.section-tint .stat-num { color: var(--olive-dark); }
.section-tint .stat-num .unit { color: var(--olive); }
.section-tint .stat-label { color: var(--ink-mute); }

/* Forest section — a deeper olive break, used sparingly so the site keeps
   rhythm instead of reading as one flat tone throughout */
.section-forest {
  background: var(--olive-dark);
  color: var(--cream-dk);
  border-block: 1px solid rgba(241,239,226,0.1);
}
.section-forest .stat-num { color: var(--cream-dk); }
.section-forest .stat-num .unit { color: var(--olive-2); }
.section-forest .stat-label { color: var(--cream-dk-mute); }

/* Photo-backed section — a full-bleed real photo behind a text block (steps,
   reasons) with a scrim for legibility. Used once per page, not everywhere,
   so it reads as a deliberate accent rather than a theme. */
.section-photo { position: relative; isolation: isolate; color: var(--cream-dk); }
.section-photo-media { position: absolute; inset: 0; z-index: -2; }
.section-photo-media img { width: 100%; height: 100%; object-fit: cover; }
.section-photo-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,32,24,.86) 0%, rgba(29,32,24,.78) 55%, rgba(29,32,24,.9) 100%);
}
.section-photo .eyebrow { color: var(--olive-2); }
.section-photo .eyebrow::before { background: var(--olive-2); }
.section-photo h2 { color: var(--cream-dk); }
.section-photo em { color: var(--olive-2); }
.section-photo .lede { color: var(--cream-dk-mute); }
.section-photo .step { border-top: 1px solid rgba(241,239,226,0.18); }
.section-photo .step-num { color: var(--olive-2); }
.section-photo .step-title { color: var(--cream-dk); }
.section-photo .step-desc { color: var(--cream-dk-mute); }
.section-photo .btn-ghost { color: var(--cream-dk); box-shadow: inset 0 0 0 1.5px rgba(241,239,226,0.28); }
.section-photo .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--olive-2); color: var(--olive-2); }

/* =============================================================
   4. Typography
   ============================================================= */
h1, .h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  max-width: 20ch;
}
h2, .h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  max-width: 18ch;
}
h3, .h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}
em, .accent-italic { font-style: italic; color: var(--olive-dark); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-mute);
  max-width: 46ch;
  line-height: 1.55;
}

.body-copy { max-width: 62ch; color: var(--ink-soft); }
.body-copy p + p { margin-top: 1rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(38,38,32,0.08), 0 1px 3px rgba(38,38,32,0.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s var(--ease-out), color .3s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(38,38,32,0.16), 0 8px 18px rgba(92,106,69,0.18); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--olive); color: var(--cream-dk); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--olive); color: var(--olive-dark); }
.btn-light { background: var(--cream-dk); color: var(--ink-deep); }
.btn-light:hover { background: #fff; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Cards */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line-soft);
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.card:hover { transition-duration: .15s; }
.card-img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft), filter .5s; }
.card:hover .card-img-wrap img {
  transform: scale(1.1);
  filter: saturate(1.12) brightness(1.03);
}
.card:hover {
  box-shadow:
    0 40px 80px -24px rgba(61,70,48,0.35),
    0 20px 40px -18px rgba(38,38,32,0.35),
    0 0 0 1px rgba(92,106,69,0.2);
}
.card-body { padding: 1.4rem 1.5rem 1.7rem; transform: translateZ(30px); }
.card-tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-dark); font-weight: 700; }
.card-title { font-family: var(--serif); font-size: 1.35rem; margin-top: .35rem; }
.card-desc { color: var(--ink-mute); font-size: .93rem; margin-top: .5rem; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .88rem; color: var(--olive-dark); }
.card-link svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .35s var(--ease-out);
  padding-block: 1.5rem;
}
.nav.is-scrolled {
  background: rgba(243,242,236,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .9rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand strong { font-style: normal; font-weight: 600; color: var(--olive-dark); }
.brand-logo, .brand-logo-light { height: 30px; width: auto; }
.brand-logo { display: block; }
.brand-logo-light { display: none; }
.nav-links { display: none; align-items: center; gap: 2.3rem; }
.nav-link {
  position: relative; padding: .25rem 0;
  font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--olive-dark); }
.nav-cta { display: none; }

/* Nav dropdown (Servicios) */
.nav-item-dropdown { position: relative; }
.nav-link-dropdown { display: inline-flex; align-items: center; gap: .35rem; }
.nav-dropdown-caret { width: 10px; height: 10px; transition: transform .35s var(--ease-out); }
.nav-item-dropdown.is-open .nav-dropdown-caret,
.nav-item-dropdown:hover .nav-dropdown-caret,
.nav-item-dropdown:focus-within .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 1rem); left: 50%;
  transform: translate(-50%, -6px);
  min-width: 216px; padding: .6rem;
  background: var(--paper); border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px -12px rgba(38,38,32,0.22), 0 1px 0 var(--line-soft);
  display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  z-index: 50;
}
.nav-item-dropdown.is-open .nav-dropdown-panel,
.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
}
.nav-dropdown-panel a {
  padding: .6rem .8rem; border-radius: 7px;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  text-transform: none; letter-spacing: normal;
}
.nav-dropdown-panel a:hover { background: var(--bg-2); color: var(--olive-dark); }
.nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line);
}
.nav-burger-bars { position: relative; width: 18px; height: 12px; }
.nav-burger-bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-burger-bars span:nth-child(1) { top: 0; }
.nav-burger-bars span:nth-child(2) { top: 5.5px; }
.nav-burger-bars span:nth-child(3) { top: 11px; }
.nav.is-open .nav-burger-bars span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.nav.is-open .nav-burger-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger-bars span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink-deep); color: var(--cream-dk);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav.is-open .nav-mobile { clip-path: inset(0); }
.nav-mobile-brand { position: absolute; top: 2.4rem; left: 0; right: 0; text-align: center; }
.nav-mobile-brand img { height: 38px; width: auto; margin-inline: auto; }
.nav-mobile-links { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-mobile-links a { font-family: var(--serif); font-size: 2.1rem; font-style: italic; }
.nav-mobile-foot { position: absolute; bottom: 2.4rem; left: 0; right: 0; text-align: center; color: var(--cream-dk-mute); font-size: .88rem; }

/* Marquee */
.marquee { display: flex; flex-wrap: nowrap; overflow: hidden; position: relative; border-block: 1px solid var(--line); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: inline-flex; gap: 0; white-space: nowrap; will-change: transform; padding-block: 1.4rem; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: var(--ink-mute); padding-inline: 1.1rem;
}
.marquee-track span.dot { font-style: normal; color: var(--olive); font-size: 1rem; }

/* Photo reel — continuous auto-scrolling strip of real photos (uses the same
   engine as .marquee: main.js clones [data-marquee] content and animates it) */
.photo-reel { display: flex; flex-wrap: nowrap; overflow: hidden; border-radius: var(--radius); }
.photo-reel-track { display: inline-flex; gap: 1rem; will-change: transform; }
.photo-reel-track img {
  flex: none; width: clamp(200px, 22vw, 280px); height: clamp(150px, 15vw, 210px);
  object-fit: cover; border-radius: var(--radius-sm);
}

/* Fade carousel — a set of stacked photos crossfading in place, dropped into
   a .narrative-figure or .card-img-wrap in lieu of a single static image */
.fade-carousel { position: relative; width: 100%; height: 100%; }
.fade-carousel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s var(--ease-soft);
}
.fade-carousel img.is-active { opacity: 1; }
.fade-carousel-dots {
  position: absolute; z-index: 2; left: 1.1rem; bottom: 1.1rem;
  display: flex; gap: .4rem;
}
.fade-carousel-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55);
  transition: width .35s var(--ease-out), background .35s var(--ease-out);
}
.fade-carousel-dots span.is-active { width: 16px; background: var(--cream-dk); }

/* Reveal */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* Stat / count-up */
.stat { text-align: left; }
.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--cream-dk); }
.stat-num .unit { font-size: .55em; color: var(--olive-2); font-style: italic; }
.stat-label { margin-top: .4rem; font-size: .88rem; color: var(--cream-dk-mute); max-width: 22ch; }

/* Cinematic stat grid (Ventajas) — cascading reveal like a title sequence */
.stat-cinema-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
.stat-cinema-grid .stat-cinema:nth-child(1) { transition-delay: 0s; }
.stat-cinema-grid .stat-cinema:nth-child(2) { transition-delay: .12s; }
.stat-cinema-grid .stat-cinema:nth-child(3) { transition-delay: .24s; }
.stat-cinema-grid .stat-cinema:nth-child(4) { transition-delay: .36s; }
.stat-cinema-num { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.6rem); color: var(--olive-dark); line-height: .95; }
.stat-cinema-num .unit { color: var(--olive); }
.stat-cinema-track { margin-top: .9rem; height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; max-width: 320px; }
.stat-cinema-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--olive), var(--olive-2)); }
.stat-cinema-label { margin-top: .8rem; color: var(--ink-mute); font-size: .95rem; max-width: 32ch; }

/* Numbered step */
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
}
.step:first-of-type { border-top: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--olive); }
.step-title { font-family: var(--serif); font-size: 1.35rem; }
.step-desc { color: var(--ink-mute); margin-top: .5rem; max-width: 52ch; }

/* Quote / testimonial */
.quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.35;
  max-width: 40ch;
}
.quote-cite { margin-top: 1.6rem; font-style: normal; font-family: var(--sans); font-size: .9rem; color: var(--ink-mute); }

/* Forms */
.form-grid { display: grid; gap: 1.2rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.3rem 1rem .55rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); color: inherit; font: inherit;
  transition: border-color .25s var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: .95rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.has-value label {
  top: .45rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-dark);
}
.field-select-wrap select { appearance: none; padding-top: 1.05rem; }
.field-select-wrap label { top: .45rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-dark); }
.field-check { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; }
.checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem .8rem; }

.cta-form { position: relative; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.cta-submit { position: relative; margin-top: .4rem; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 1.5px solid rgba(241,239,226,0.35); border-top-color: var(--cream-dk);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-success {
  position: absolute; left: 0; top: 0; right: 0;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .8s var(--ease-out) .2s, transform .8s var(--ease-soft) .2s;
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cta-success h3 { font-family: var(--serif); font-size: 1.5rem; }
.cta-success p { color: var(--ink-mute); margin-top: .5rem; }

/* Accordion (FAQ) */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.4rem; text-align: left; font-family: var(--serif); font-size: 1.15rem;
}
.faq-q-icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq-q-icon::before, .faq-q-icon::after {
  content: ""; position: absolute; background: var(--olive-dark); border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.faq-q-icon::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q-icon::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.is-open .faq-q-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-soft); }
.faq-a-inner { padding-bottom: 1.4rem; color: var(--ink-mute); max-width: 58ch; }
.faq-item.is-open .faq-a { max-height: 240px; }

/* Footer */
.footer { background: var(--ink-deep); color: var(--cream-dk-mute); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.2rem; }
.footer-top { display: grid; gap: 2.6rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(241,239,226,0.14); }
.footer-brand .brand { color: var(--cream-dk); }
.footer-tagline { margin-top: 1rem; max-width: 34ch; color: var(--cream-dk-mute); }
.footer-col-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-2); font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a:hover { color: var(--cream-dk); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.6rem; font-size: .82rem; }

/* =============================================================
   6. Sections
   ============================================================= */

/* Hero — full-bleed photo with centered copy */
.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: 0;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 68%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,16,.56) 0%, rgba(20,22,16,.34) 30%, rgba(20,22,16,.42) 58%, rgba(20,22,16,.72) 100%);
}
.hero-copy-center {
  position: relative; z-index: 2;
  max-width: 720px; margin-inline: auto;
  text-align: center; color: var(--cream-dk);
}
.hero-copy-center::before {
  content: ""; position: absolute; inset: -20% -14%; z-index: -1;
  background: radial-gradient(62% 68% at 50% 45%, rgba(12,14,9,.78), transparent 75%);
  filter: blur(10px); pointer-events: none;
}
.hero-copy-center .eyebrow { justify-content: center; color: var(--olive-2); text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero-copy-center .eyebrow::before { background: var(--olive-2); }
.hero-title-center { margin-top: 1.1rem; max-width: 17ch; margin-inline: auto; color: var(--cream-dk); text-shadow: 0 4px 24px rgba(0,0,0,.55); }
.hero-title-center em { color: var(--olive-2); }
.hero-sub-center { margin-top: 1.3rem; max-width: 50ch; margin-inline: auto; color: var(--cream-dk-mute); text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero-cta-center { justify-content: center; margin-top: 2.1rem; }
.btn-ghost-on-photo { color: var(--cream-dk); box-shadow: inset 0 0 0 1.5px rgba(241,239,226,.5); }
.btn-ghost-on-photo:hover { box-shadow: inset 0 0 0 1.5px var(--olive-2); color: var(--olive-2); }

/* Scroll cue — small label + bouncing circle, echoes a boutique-resort hero */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(1.6rem, 4vw, 3rem); z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  color: var(--cream-dk-mute);
}
.scroll-cue-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue-ring {
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(241,239,226,.5);
  display: grid; place-items: center;
  animation: scrollCueBob 2.4s var(--ease-soft) infinite;
}
.scroll-cue-ring svg { width: 13px; height: 13px; }
@keyframes scrollCueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-ring { animation: none; } }

/* Nav rendered light over the full-bleed hero photo, dark once scrolled/solid */
.has-photo-hero .nav:not(.is-scrolled) { color: var(--cream-dk); }
.has-photo-hero .nav:not(.is-scrolled) .brand strong { color: var(--olive-2); }
.has-photo-hero .nav:not(.is-scrolled) .brand-logo { display: none; }
.has-photo-hero .nav:not(.is-scrolled) .brand-logo-light { display: block; }
.has-photo-hero .nav:not(.is-scrolled) .nav-burger { box-shadow: inset 0 0 0 1.5px rgba(241,239,226,.4); }
.has-photo-hero .nav:not(.is-scrolled) .nav-burger-bars span { background: var(--cream-dk); }

/* Page header (non-home pages) */
.page-header { padding-top: clamp(7.5rem, 14vw, 10rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-header .lede { margin-top: 1.2rem; }

/* Manifesto / intro split */
.split-intro { display: grid; gap: 2rem; }
.split-intro-num { font-family: var(--serif); font-style: italic; font-size: 4rem; color: var(--olive); line-height: 1; }

/* Bento services grid (4 pillars, home) */
.bento { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }

/* Feature list (servicios detail sections) */
.feature-list { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.feature-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .5em; border-radius: 50%; background: var(--olive); }

/* Space options grid */
.space-grid { display: grid; gap: 1.4rem; }
.space-card { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--paper); box-shadow: 0 1px 0 var(--line-soft); }
.space-img { aspect-ratio: 5/4; overflow: hidden; }
.space-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.space-card:hover .space-img img { transform: scale(1.08); }
.space-body { padding: 1.5rem 1.6rem 1.8rem; }
.space-num { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1.1rem; }
.space-title { font-family: var(--serif); font-size: 1.4rem; margin-top: .3rem; }
.space-desc { color: var(--ink-mute); margin-top: .6rem; font-size: .95rem; }

/* CTA mesh section */
.cta-mesh { position: relative; overflow: hidden; isolation: isolate; }
.cta-mesh::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(124,138,94,.5), transparent 65%),
    conic-gradient(from var(--mesh-angle), rgba(124,138,94,.22), rgba(140,138,124,.1), rgba(92,106,69,.24), rgba(124,138,94,.22));
  filter: blur(90px) saturate(115%);
  opacity: .4;
  animation: meshShift 24s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 30%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 62%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 30%; }
}

/* Two column narrative (nosotros) */
.narrative-grid { display: grid; gap: 2.4rem; align-items: start; }
.narrative-figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.narrative-figure img { width: 100%; height: 100%; object-fit: cover; }
.pillars-grid { display: grid; gap: 1.6rem; margin-top: 2rem; }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1.3rem; }
.pillar-title { font-family: var(--serif); font-size: 1.2rem; margin-top: .5rem; }
.pillar-desc { color: var(--ink-mute); margin-top: .5rem; font-size: .93rem; }

/* Servicios page — denser pass: smaller type, tighter sections, more legible */
.page-servicios h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 22ch; }
.page-servicios .section { padding-block: clamp(2.6rem, 5vw, 4.5rem); }
.page-servicios .narrative-figure { aspect-ratio: 4 / 3.1; }
.page-servicios .body-copy { font-size: .94rem; max-width: 54ch; }
.page-servicios .feature-list li { font-size: .89rem; }

/* Compact card modifier — used on the Servicios overview grid */
.card-compact .card-img-wrap { aspect-ratio: 5 / 3.3; }
.card-compact .card-body { padding: 1rem 1.1rem 1.25rem; }
.card-compact .card-tag { font-size: .68rem; }
.card-compact .card-title { font-size: 1.12rem; margin-top: .25rem; }
.card-compact .card-desc { font-size: .84rem; margin-top: .35rem; }

/* Service tabs — click one of the 4 cards, only that category's detail shows */
.tab-trigger {
  display: block; width: 100%; text-align: left; padding: 0;
  transition: opacity .35s var(--ease-out), box-shadow .55s var(--ease-soft), transform .55s var(--ease-soft);
}
.tab-trigger:not(.is-active) { opacity: .72; }
.tab-trigger:not(.is-active):hover { opacity: 1; }
.tab-trigger.is-active { box-shadow: 0 0 0 2px var(--olive), 0 1px 0 var(--line-soft); }
.tab-panels { padding-block: clamp(2.6rem, 5vw, 4rem); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tabFadeIn .55s var(--ease-soft); }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tab-panel.is-active { animation: none; } }

/* Chip list — disciplines shown as small tags instead of a heavy image grid */
.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .5rem 1.05rem; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}

/* Contact layout */
.contact-grid { display: grid; gap: 2.6rem; align-items: start; }
.contact-info-item { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive-dark); font-weight: 700; }
.contact-info-value { font-family: var(--serif); font-size: 1.15rem; margin-top: .3rem; }

/* =============================================================
   7. Effects — layout helpers used across breakpoints
   ============================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: rgba(38,38,32,0.08); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--olive-2)); transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .split-intro { grid-template-columns: auto 1fr; gap: 3rem; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .bento-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-cinema-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.6rem; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .space-grid { grid-template-columns: repeat(3, 1fr); }
  .narrative-grid { grid-template-columns: .9fr 1.1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.2fr .8fr; }
  .bento-row { grid-template-columns: repeat(4, 1fr); }
}

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

/* =============================================================
   9. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-mesh::before { animation: none; }
}
