/* =====================================================
   FONTS — self-hosted (Fraunces, Inter, Archivo Black; latin + latin-ext)
   ===================================================== */
/* latin-ext */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/archivo-black-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/archivo-black-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(assets/fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================
   INFINITY 8 GROUP — DESIGN TOKENS
   ===================================================== */
:root{
  --ink:        #1B2420;
  --ink-soft:   #24322B;
  --paper:      #EFEBE5;
  --paper-2:    #E4DED2;
  --jungle:     #2B4632;
  --jungle-2:   #3A5A40;
  --jungle-light: #7FA383;
  --gold:       #AF8C54;
  --gold-light: #CBAD79;
  /* same gold, deepened for small text on paper/cream (AA ≥4.5:1) */
  --gold-ink:   #7A5C2A;
  --cream:      #F7F3E8;
  --text-on-dark: rgba(247,243,232,0.86);
  --text-on-dark-soft: rgba(247,243,232,0.62);
  --text-on-light: #23291F;
  --text-on-light-soft: rgba(35,41,31,0.72);
  /* one dark surface for every dark section */
  --surface-dark: linear-gradient(155deg, var(--jungle) 0%, var(--ink) 78%);
  /* one tone for photo scrims/overlays */
  --scrim: 14,19,16;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-shout: "Archivo Black", "Inter", sans-serif;

  --wrap: 1180px;
  --edge: clamp(24px, 5vw, 64px);
  --section-pad: clamp(56px, 8.5vw, 120px);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* =====================================================
   RESET
   ===================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
/* Reduced motion: decorative loops stop, nothing travels or zooms,
   but colour/opacity feedback stays (see INTERACTION & MOTION block at the end). */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; }
}
body{
  margin:0;
  background:var(--paper);
  color:var(--text-on-light);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family:inherit; }

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--edge);
}

/* subtle grain overlay for texture */
.grain{ display:none; }

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
/* Default: fully visible. This is the fallback for when JS never runs
   (disabled/blocked/errors) — content must never depend on script to be seen. */
.reveal{ opacity:1; transform:none; }

/* .js-ready is added to <html> by script.js as one of its first actions.
   Only once we know script is actually running do reveal elements start
   hidden and wait to be animated in by the IntersectionObserver below. */
html.js-ready .reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay:var(--reveal-delay, 0ms);
  will-change:opacity, transform;
}
html.js-ready .reveal.is-visible{ opacity:1; transform:translateY(0); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding:22px 0;
  /* padding (not transform) on purpose: a transformed header would trap the
     fixed full-screen mobile menu inside it. One change per scroll threshold. */
  transition:background-color 0.4s ease, padding 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.site-header.scrolled{
  background:rgba(27,36,32,0.92);
  backdrop-filter:blur(10px);
  padding:14px 0;
  box-shadow:0 1px 0 rgba(247,243,232,0.06);
}
.header-inner{
  width:100%;
  padding:0 var(--edge);
  display:flex; align-items:center; justify-content:space-between;
}
.logo{
  display:flex; align-items:center; gap:16px;
  color:var(--cream);
  margin-right:clamp(24px,2.6vw,44px);
}
.logo-mark{ flex:none; object-fit:contain; }
.logo-word{
  font-family:var(--font-display);
  font-size:22px;
  letter-spacing:0.16em;
  font-weight:500;
  white-space:nowrap;
}

.main-nav{ display:flex; align-items:center; gap:clamp(14px,1.35vw,22px); }
.nav-link{
  font-size:12px;
  text-transform:uppercase;
  color:var(--text-on-dark-soft);
  letter-spacing:0.06em;
  transition:color 0.25s ease;
  white-space:nowrap;
}
.nav-link:hover, .nav-link:focus-visible{ color:var(--cream); }

.nav-cta-group{ display:flex; align-items:center; gap:8px; margin-left:4px; flex:none; }

/* =====================================================
   NAV DROPDOWN — Proyectos
   ===================================================== */
.nav-dropdown{ position:relative; }
.nav-dropdown::before{
  content:'';
  position:absolute;
  left:50%; top:100%;
  transform:translateX(-50%);
  width:260px; height:22px;
}
.nav-link--dropdown{
  display:flex; align-items:center; gap:6px;
  background:none; border:none; cursor:pointer;
  font-family:var(--font-body);
}
.nav-caret{ transition:transform 0.3s cubic-bezier(.16,1,.3,1); opacity:0.6; }
.nav-dropdown-panel{
  position:absolute; top:100%; left:50%;
  transform:translate(-50%,8px) scale(0.98);
  transform-origin:top center;
  min-width:230px;
  background:var(--paper);
  border:none;
  border-radius:10px;
  padding:22px 24px;
  margin-top:18px;
  display:flex; flex-direction:column;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  box-shadow:0 24px 50px rgba(var(--scrim),0.28);
  z-index:50;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel{
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translate(-50%,0) scale(1);
  transition:opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret{ transform:rotate(180deg); }
.nav-dropdown-label{
  display:block;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--gold-ink);
  padding-bottom:14px;
  margin-bottom:6px;
  border-bottom:1px solid rgba(35,41,31,0.1);
}
.nav-dropdown-all{
  display:block;
  font-family:var(--font-body);
  font-size:13px;
  font-weight:600;
  color:var(--jungle);
  padding-bottom:14px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(35,41,31,0.1);
  transition:color 0.25s ease;
}
.nav-dropdown-all:hover, .nav-dropdown-all:focus-visible{ color:var(--gold); }
.nav-dropdown-panel a{
  padding:13px 0;
  font-family:var(--font-body);
  font-size:14.5px;
  font-weight:400;
  text-transform:none;
  letter-spacing:0.01em;
  color:var(--text-on-light);
  white-space:nowrap;
  border-bottom:1px solid rgba(35,41,31,0.08);
  transition:color 0.25s ease, transform 0.25s ease, padding-left 0.25s ease;
}
.nav-dropdown-panel a:last-child{ border-bottom:none; }
.nav-dropdown-panel a:hover, .nav-dropdown-panel a:focus-visible{ color:var(--jungle); padding-left:4px; }

.nav-toggle{
  display:none; flex-direction:column; gap:6px;
  background:none; border:none; cursor:pointer; padding:8px;
  min-width:44px; min-height:44px; align-items:center; justify-content:center;
}
.nav-toggle span{
  width:24px; height:1.5px; background:var(--cream); transition:transform 0.3s ease, opacity 0.3s ease;
}

/* =====================================================
   HERO
   ===================================================== */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; align-items:center;
  background:var(--ink);
  overflow:hidden;
  padding-bottom:60px;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-slides{ position:absolute; inset:-24px; overflow:hidden; transition:transform 0.7s cubic-bezier(.16,1,.3,1); will-change:transform; }
.hero-slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center 40%;
  opacity:0;
  transform:scale(1);
  transition:opacity 2s ease;
}
.hero-slide.is-active{
  opacity:1;
  animation:heroKenBurns 1.8s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes heroKenBurns{
  from{ transform:scale(1.08); }
  to{ transform:scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .hero-slide.is-active{ animation:none; transform:scale(1); }
  .hero-slides{ transition:none; }
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(var(--scrim),0.5) 0%, rgba(var(--scrim),0.28) 30%, rgba(var(--scrim),0.58) 76%, rgba(var(--scrim),0.88) 100%),
    linear-gradient(100deg, rgba(var(--scrim),0.55) 0%, rgba(var(--scrim),0.3) 38%, rgba(var(--scrim),0) 62%);
}
/* mobile: the copy spans the full width, so the whole frame needs the extra depth */
@media (max-width: 720px){
  .hero-scrim{
    background:linear-gradient(180deg, rgba(var(--scrim),0.55) 0%, rgba(var(--scrim),0.6) 45%, rgba(var(--scrim),0.9) 100%);
  }
}
.contour-field{ position:absolute; inset:0; width:100%; height:100%; }
.contour{ fill:none; }
.contour.c1{ fill:rgba(27,36,32,0.42); }
.contour.c2{ fill:rgba(23,31,27,0.62); }
.contour.c3{ fill:rgba(19,26,22,0.8); }
.contour.c4{ fill:#12181A; }

.hero-content{ position:relative; z-index:2; padding-top:clamp(90px,12vh,120px); }
.hero-content--fluid{ width:100%; padding-left:var(--edge); padding-right:var(--edge); }
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--gold-light);
  margin-bottom:14px;
}
.hero-script{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:300;
  font-size:clamp(1.6rem, 3vw, 2.4rem);
  color:rgba(203,173,121,0.85);
  line-height:1.15;
  margin-bottom:8px;
}
.hero-title{
  font-family:var(--font-shout);
  font-weight:400;
  font-size:clamp(2.4rem, 6.6vw, 5.4rem);
  line-height:0.98;
  color:var(--cream);
  max-width:16ch;
  letter-spacing:-0.01em;
  text-transform:uppercase;
}
.hero-sub{
  margin-top:26px;
  max-width:46ch;
  font-size:clamp(1rem,1.2vw,1.1rem);
  color:var(--text-on-dark);
  font-weight:300;
}
.hero-sub strong{ color:var(--gold-light); font-weight:600; }
.hero-actions{ margin-top:36px; display:flex; gap:14px; flex-wrap:wrap; }

.hero-badge{
  position:absolute; top:clamp(90px,13vh,120px); right:var(--edge); z-index:5;
  display:flex; align-items:center; gap:10px;
  background:transparent;
  border:1px solid rgba(247,243,232,0.4);
  padding:11px 22px;
  border-radius:3px;
  font-family:var(--font-body);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--cream);
  cursor:pointer;
  transition:background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.hero-badge:hover{
  background:rgba(247,243,232,0.1);
  border-color:var(--gold);
  color:var(--gold-light);
  transform:translateY(-1px);
}
.hero-badge-dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--gold);
  /* static: it marks a status, it is not live data */
}
@keyframes badgePulse{
  0%{ box-shadow:0 0 0 0 rgba(175,140,84,0.5); }
  70%{ box-shadow:0 0 0 7px rgba(175,140,84,0); }
  100%{ box-shadow:0 0 0 0 rgba(175,140,84,0); }
}

.hero-scroll{
  position:absolute; bottom:22px; left:var(--edge); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:var(--text-on-dark-soft);
}
.hero-scroll span{ font-family:var(--font-mono); font-size:11px; letter-spacing:0.12em; text-transform:uppercase; }
.scroll-line{
  width:1px; height:46px; background:linear-gradient(180deg, var(--gold), transparent);
  animation:scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse{
  0%,100%{ opacity:0.35; }
  50%{ opacity:1; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 30px;
  font-size:13.5px;
  font-weight:500;
  letter-spacing:0.02em;
  border-radius:999px;
  border:1px solid transparent;
  transition:transform 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor:pointer;
}
.btn--light{ background:var(--cream); color:var(--ink); }
.btn--light:hover, .btn--light:focus-visible{ background:var(--gold-light); transform:translateY(-2px); }
.btn--ghost{ border-color:rgba(247,243,232,0.35); color:var(--cream); }
.btn--ghost:hover, .btn--ghost:focus-visible{ border-color:var(--gold); color:var(--gold-light); transform:translateY(-2px); }
.btn--dark{ background:var(--ink); color:var(--cream); }
.btn--dark:hover, .btn--dark:focus-visible{ background:var(--jungle-2); transform:translateY(-2px); }

/* rectangular MOJO-style buttons */
.btn--solid-rect{
  background:var(--gold);
  color:var(--ink);
  border-radius:3px;
  padding:10px 18px;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  white-space:nowrap;
}
.btn--solid-rect:hover, .btn--solid-rect:focus-visible{ background:var(--gold-light); transform:translateY(-2px); }
.btn--outline-rect{
  border:1px solid rgba(247,243,232,0.4);
  color:var(--cream);
  border-radius:3px;
  padding:10px 18px;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  background:transparent;
  white-space:nowrap;
}
.btn--outline-rect:hover, .btn--outline-rect:focus-visible{ border-color:var(--gold); color:var(--gold-light); transform:translateY(-2px); }
.btn--outline-rect.on-light{ border-color:rgba(35,41,31,0.35); color:var(--text-on-light); }
.btn--outline-rect.on-light:hover, .btn--outline-rect.on-light:focus-visible{ border-color:var(--gold); color:var(--jungle); background:rgba(35,41,31,0.04); }
.btn--lg{ padding:16px 28px; font-size:12.5px; }

.text-link{
  display:inline-block; margin-top:22px;
  font-size:13.5px; font-weight:500;
  border-bottom:1px solid currentColor;
  padding-bottom:2px;
  transition:color 0.25s ease, opacity 0.25s ease;
}
.text-link:hover, .text-link:focus-visible{ opacity:0.65; }

/* =====================================================
   GOLD RIBBON
   ===================================================== */
.gold-ribbon{
  background:var(--gold);
  overflow:hidden;
  white-space:nowrap;
  padding:14px 0;
}
.gold-ribbon-track{
  display:inline-flex;
  align-items:center;
  gap:14px;
  animation:ribbonScroll 34s linear infinite;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--ink);
}
.gold-ribbon-track span.dot{ color:rgba(27,36,32,0.5); font-size:10px; }
@keyframes ribbonScroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .gold-ribbon-track{ animation:none; }
}

/* =====================================================
   ABOUT STRIP
   ===================================================== */
.about-strip{ background:var(--paper); padding:var(--section-pad) 0; }
.about-strip-inner{
  max-width:none;
  display:grid;
  grid-template-columns:0.95fr 1.05fr;
  gap:clamp(40px,6vw,72px);
  align-items:center;
}

.about-image{
  border-radius:10px;
  overflow:hidden;
  aspect-ratio:4/5;
  box-shadow:0 24px 50px rgba(var(--scrim),0.16);
}
.about-image img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1);
  transition:transform 0.35s ease;
}

/* a sentence, not a label: set it as a quiet lead line rather than 60 chars of caps */
.about-kicker{
  font-family:var(--font-body);
  font-size:14px; font-weight:500; letter-spacing:0.01em;
  color:var(--gold-ink); margin-bottom:18px;
}
.about-lead{
  font-family:var(--font-display);
  font-size:clamp(1.35rem,2.4vw,2rem);
  line-height:1.42;
  font-weight:400;
  color:var(--text-on-light);
}

.about-hook{
  font-family:var(--font-display);
  font-size:clamp(1.3rem,2vw,1.6rem);
  line-height:1.4;
  font-weight:500;
  color:var(--text-on-light);
  max-width:34ch;
}

.about-bullets{
  list-style:none;
  margin-top:clamp(28px,3.5vw,36px);
  display:flex;
  flex-direction:column;
  gap:18px;
}
.about-bullets li{
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.about-bullet-icon{
  flex:none;
  width:26px; height:26px;
  color:var(--gold);
  margin-top:1px;
}
.about-bullet-icon svg{ width:100%; height:100%; }
.about-bullet-text{
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.55;
  font-weight:400;
  color:var(--text-on-light-soft);
}
.about-bullet-text strong{
  font-weight:700;
  color:var(--gold-ink);
}

.about-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(24px,3vw,40px);
  margin-top:clamp(40px,5vw,56px);
  padding-top:clamp(32px,4vw,44px);
  border-top:1px solid rgba(35,41,31,0.12);
}
.about-stat{ display:flex; flex-direction:column; gap:6px; }
.about-stat-num{
  font-family:var(--font-display);
  font-weight:600;
  font-variant-numeric:lining-nums tabular-nums;
  font-size:clamp(2.2rem,3.6vw,3rem);
  color:var(--jungle);
  line-height:1;
}
.about-stat-label{
  font-size:14px;
  color:var(--text-on-light-soft);
  max-width:16ch;
  line-height:1.35;
}

/* =====================================================
   TEAM GRID
   ===================================================== */
.team-grid-wrap{ margin-top:clamp(72px,9vw,110px); }
.team-kicker{
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--jungle); margin-bottom:clamp(24px,3vw,32px);
}
.team-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(20px,2.4vw,30px);
  max-width:680px;
}
.team-card{ display:flex; flex-direction:column; }
.team-photo{
  border-radius:5px;
  overflow:hidden;
  aspect-ratio:3/4;
  margin-bottom:14px;
  box-shadow:0 14px 28px rgba(var(--scrim),0.14);
}
.team-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-photo--placeholder{
  display:flex; align-items:center; justify-content:center;
  background:var(--paper-2);
  border:1px dashed rgba(35,41,31,0.22);
  box-shadow:none;
}
.team-photo--placeholder span{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--text-on-light-soft);
  text-align:center;
  padding:0 10px;
}
.team-name{
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.95rem;
  color:var(--text-on-light);
  margin-bottom:2px;
}
.team-role{
  font-size:0.78rem;
  color:var(--jungle);
  font-weight:500;
  margin-bottom:8px;
  line-height:1.3;
}
.team-bio{
  font-size:0.78rem;
  line-height:1.5;
  color:var(--text-on-light-soft);
  font-weight:300;
}
.team-card--empty .team-photo--placeholder{ margin-bottom:0; }

/* =====================================================
   SECTIONS — generic
   ===================================================== */
.section{ padding:var(--section-pad) 0; position:relative; }
.section--dark{
  background:var(--surface-dark);
  color:var(--text-on-dark);
}
.section--dark .section-desc{ color:var(--text-on-dark-soft); }

.section-head{ max-width:680px; margin-bottom:clamp(48px,7vw,84px); }
.section-num{
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--gold-ink);
  margin-bottom:18px;
}
.section--dark .section-num{ color:var(--gold-light); }
.section-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.1;
  margin-bottom:20px;
}
.section-desc{
  font-size:1.05rem;
  color:var(--text-on-light-soft);
  max-width:56ch;
  font-weight:300;
}

.por-que-lombok-placeholder{
  text-align:center;
  padding-top:var(--section-pad);
  padding-bottom:var(--section-pad);
}
.por-que-lombok-placeholder .section-num,
.por-que-lombok-placeholder .section-desc{ margin-left:auto; margin-right:auto; }

/* =====================================================
   PORTFOLIO GRID (Proyectos propios)
   ===================================================== */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(28px,3vw,36px);
}
.portfolio-card{
  display:flex;
  flex-direction:column;
  background:var(--paper);
  border-radius:10px;
  overflow:hidden;
  text-decoration:none;
  scroll-margin-top:110px;
  box-shadow:0 20px 44px rgba(var(--scrim),0.22);
  transition:transform 0.35s ease, box-shadow 0.35s ease;
}
a.portfolio-card:hover,
a.portfolio-card:focus-visible{
  transform:translateY(-4px);
  box-shadow:0 28px 56px rgba(var(--scrim),0.3);
}
a.portfolio-card:hover .portfolio-card-cta,
a.portfolio-card:focus-visible .portfolio-card-cta{ color:var(--jungle); gap:10px; }
.portfolio-card:target{ animation:projectHighlight 2.4s ease-out; }
@keyframes projectHighlight{
  0%{ box-shadow:0 0 0 3px rgba(175,140,84,0.7), 0 20px 44px rgba(var(--scrim),0.22); }
  100%{ box-shadow:0 0 0 0 rgba(175,140,84,0), 0 20px 44px rgba(var(--scrim),0.22); }
}

.portfolio-card-image{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--paper-2);
}
.portfolio-card-image img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1);
  transition:transform 0.35s ease;
}
a.portfolio-card:hover .portfolio-card-image img,
a.portfolio-card:focus-visible .portfolio-card-image img{ transform:scale(1.045); }
.portfolio-card-image-placeholder{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  border:1px dashed rgba(35,41,31,0.2);
}
.portfolio-card-image-placeholder span{
  font-family:var(--font-mono);
  font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--text-on-light-soft);
}
.portfolio-badge{
  position:absolute; top:16px; left:16px;
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-body);
  font-size:11px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase;
  padding:7px 14px; border-radius:999px;
}
.portfolio-badge--open{ background:var(--gold); color:var(--ink); }
.portfolio-badge--progress,
.portfolio-badge--closed{ background:rgba(27,36,32,0.85); color:var(--cream); backdrop-filter:blur(4px); }
.badge-dot{
  flex:none;
  width:6px; height:6px; border-radius:50%;
  /* sale status, not live data: static, in the badge's own ink */
  background:currentColor;
}
/* traffic-light variants: a lit lamp — highlight, dark rim and a soft glow, still static */
.badge-dot--green,
.badge-dot--red{ width:7px; height:7px; }
.badge-dot--green{
  background:radial-gradient(circle at 35% 35%, #B9F5C8 0%, #34C759 45%, #1E8E3E 100%);
  box-shadow:0 0 0 1px rgba(20,60,30,0.35), 0 0 6px 1px rgba(52,199,89,0.65);
}
.badge-dot--red{
  background:radial-gradient(circle at 35% 35%, #FFC2BE 0%, #FF3B30 45%, #B3261E 100%);
  box-shadow:0 0 0 1px rgba(80,10,10,0.4), 0 0 6px 1px rgba(255,59,48,0.7);
}

.portfolio-card-body{ padding:clamp(22px,2.6vw,30px); display:flex; flex-direction:column; flex:1; }
.portfolio-card-name{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.4rem;
  color:var(--text-on-light);
  margin-bottom:6px;
}
.portfolio-card-meta{
  font-size:0.85rem;
  color:var(--text-on-light-soft);
  margin-bottom:14px;
}
.portfolio-card-price{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.15rem;
  color:var(--jungle);
  margin-bottom:14px;
}
.portfolio-card-specs{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.01em;
  color:var(--text-on-light-soft);
  display:flex; flex-wrap:wrap; gap:6px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid rgba(35,41,31,0.1);
}
.portfolio-card-specs span:nth-child(even){ color:rgba(35,41,31,0.3); }
.portfolio-card-desc{
  font-size:0.88rem;
  line-height:1.55;
  color:var(--text-on-light-soft);
  font-weight:300;
  margin-bottom:18px;
}
.portfolio-card-cta{
  margin-top:auto;
  display:inline-flex; align-items:center; gap:6px;
  font-size:0.85rem; font-weight:600;
  color:var(--text-on-light);
  transition:color 0.25s ease, gap 0.25s ease;
}

.portfolio-card--empty{
  box-shadow:none;
  background:transparent;
  border:1px dashed rgba(247,243,232,0.18);
  border-radius:10px;
}
.portfolio-card--empty .portfolio-card-image{ aspect-ratio:auto; min-height:180px; background:transparent; }
.portfolio-card--empty .portfolio-card-image-placeholder{ border:none; flex-direction:column; gap:10px; }
.portfolio-card--empty .portfolio-card-image-placeholder::before{
  content:'+';
  font-family:var(--font-display);
  font-size:1.8rem;
  color:rgba(247,243,232,0.35);
  line-height:1;
}
.portfolio-card--empty .portfolio-card-image-placeholder span{ color:var(--text-on-dark-soft); }

/* =====================================================
   PROMOTOR DELEGADO
   ===================================================== */
.pd-intro{ max-width:760px; margin-bottom:clamp(48px,6vw,72px); }
.pd-intro p{ font-weight:300; font-size:1.05rem; color:var(--text-on-light-soft); margin-bottom:16px; }
.pd-note{ color:var(--text-on-light) !important; font-weight:400 !important; }
.pd-note strong{ color:var(--gold-ink); }

/* =====================================================
   DESARROLLA TU PROYECTO — sticky column + compact timeline
   ===================================================== */
.pd-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:clamp(40px,5vw,72px);
  align-items:start;
}
.pd-sticky-col{ position:sticky; top:110px; }
.pd-sticky-col .pd-intro{ margin-top:clamp(28px,3.5vw,36px); }

/* ---- Phases: one tall cinematic panel per phase, a scroll-synced gold line ---- */
.phase-rail{
  --rail-gutter:48px;
  --line-x:15px;
  position:relative;
  padding-left:var(--rail-gutter);
}
.phase-line{
  position:absolute; left:var(--line-x); top:0; bottom:0;
  width:2px;
  background:rgba(35,41,31,0.12);
  border-radius:2px;
  overflow:hidden;
}
/* Fill is scaled, not resized: JS writes --progress (0–1) straight from scroll position */
.phase-line-fill{
  position:absolute; inset:0;
  background:linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  transform-origin:top center;
  transform:scaleY(var(--progress, 0));
}
.phase-list{ display:flex; flex-direction:column; gap:clamp(20px,2.4vw,28px); }

.phase{
  position:relative;
  height:min(78vh, 760px);
  min-height:460px;
  border-radius:10px;
  overflow:hidden;
  isolation:isolate;
  background:var(--ink);
  color:var(--cream);
  box-shadow:0 24px 50px rgba(var(--scrim),0.18);
}
.phase-media{ position:absolute; inset:0; z-index:-2; overflow:hidden; }
.phase-media img{
  width:100%; height:100%;
  object-fit:cover;
  transform-origin:50% 60%;
  animation:phaseKenBurns 18s ease-in-out infinite alternate;
  animation-play-state:paused;
}
/* only the panels near the viewport spend frames on the zoom */
.phase.is-near .phase-media img{ animation-play-state:running; }
@keyframes phaseKenBurns{
  from{ transform:scale(1); }
  to{ transform:scale(1.08); }
}
.phase::after{
  content:''; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(var(--scrim),0.55) 0%, rgba(var(--scrim),0.08) 30%, rgba(var(--scrim),0.2) 55%, rgba(var(--scrim),0.86) 100%);
}

.phase-content{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  padding:clamp(24px,3vw,40px);
}
.phase-num{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(4rem,7.4vw,6.6rem);
  line-height:0.9;
  letter-spacing:-0.02em;
  font-variant-numeric:lining-nums;
  /* off: outline only */
  color:transparent;
  -webkit-text-stroke:1.5px rgba(247,243,232,0.55);
  /* active state is a colour change (ease, 400ms); the entrance keeps the long ease-out */
  transition:color 0.4s ease, -webkit-text-stroke-color 0.4s ease,
             opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.phase.is-active .phase-num{
  color:var(--gold-light);
  -webkit-text-stroke-color:var(--gold-light);
}
.phase-title{
  margin-top:auto;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.6rem,2.6vw,2.3rem);
  line-height:1.1;
  letter-spacing:-0.01em;
  color:var(--cream);
  max-width:18ch;
  text-wrap:balance;
  transition:opacity 0.7s var(--ease-out) 0.08s, transform 0.7s var(--ease-out) 0.08s;
}
.phase-desc{
  margin-top:12px;
  font-size:1rem;
  line-height:1.55;
  font-weight:300;
  color:var(--text-on-dark);
  max-width:42ch;
  transition:opacity 0.7s var(--ease-out) 0.16s, transform 0.7s var(--ease-out) 0.16s;
}
/* Entrance: number, title, copy rise in once the panel reaches the viewport centre */
html.js-ready .phase:not(.is-in) :is(.phase-num, .phase-title, .phase-desc){
  opacity:0;
  transform:translateY(16px);
}

/* Current-phase counter — rides in the sticky column on desktop */
.phase-indicator{
  margin-top:clamp(32px,4vw,48px);
  display:inline-flex; align-items:baseline; gap:8px;
  font-family:var(--font-body);
  font-size:12px;
  letter-spacing:0.14em;
  color:var(--text-on-light-soft);
  font-variant-numeric:tabular-nums;
}
.phase-indicator-current{
  font-family:var(--font-display);
  font-size:1.6rem;
  letter-spacing:0;
  color:var(--gold-ink);
  min-width:2ch;
}
.phase-indicator-current.is-ticking{ animation:phaseTick 0.28s var(--ease-out); }
@keyframes phaseTick{
  from{ opacity:0.2; transform:translateY(4px); }
  to{ opacity:1; transform:none; }
}
.phase-indicator-sep{ opacity:0.5; }

/* narrow sticky column: the two actions stack as one block of equal width */
.pd-cta{ margin-top:clamp(32px,4vw,44px); display:grid; grid-template-columns:max-content; gap:12px; }

@media (max-width: 900px){
  .pd-grid{ grid-template-columns:1fr; }
  .pd-sticky-col{ position:static; max-width:62ch; }
  /* Compact phases: shorter panels, tighter gutter, same live line */
  .phase-rail{ --rail-gutter:26px; --line-x:6px; }
  .phase{ height:68svh; min-height:400px; max-height:600px; }
  .phase-num{ font-size:clamp(3.4rem,16vw,4.6rem); -webkit-text-stroke-width:1.25px; }
  .phase-content{ padding:22px; }
  .phase-desc{ font-size:0.95rem; }
  /* Counter leaves the (no longer sticky) column and floats while the phases scroll by */
  .phase-indicator{
    position:fixed; z-index:400;
    /* top-right, under the header: over the photo, clear of the copy and the WhatsApp button */
    right:var(--edge); top:calc(var(--pd-header-h, 90px) + 14px);
    margin:0;
    padding:9px 16px 9px 14px;
    border-radius:999px;
    background:rgba(27,36,32,0.88);
    backdrop-filter:blur(8px);
    color:var(--text-on-dark-soft);
    box-shadow:0 10px 24px rgba(var(--scrim),0.25);
    opacity:0; transform:translateY(-8px);
    pointer-events:none;
    transition:opacity 0.18s ease, transform 0.18s ease;
  }
  .phase-indicator.is-visible{ opacity:1; transform:none; transition:opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out); }
  .phase-indicator-current{ color:var(--gold-light); font-size:1.25rem; }
}

/* =====================================================
   LAND PORTFOLIO
   ===================================================== */
/* intro: the method sentence beside the evidence (drone survey of a plot) */
.land-intro-row{
  display:grid; grid-template-columns:1.1fr 0.9fr;
  gap:clamp(32px,5vw,64px); align-items:center;
  margin-bottom:clamp(48px,6vw,80px);
}
#terrenos .section-head{ margin-bottom:clamp(32px,4vw,52px); }
.land-intro{ font-weight:300; color:var(--text-on-dark); font-size:17.6px; line-height:1.65; max-width:46ch; }
.land-intro-media{ margin:0; aspect-ratio:4/3; border-radius:10px; overflow:hidden; box-shadow:0 24px 50px rgba(var(--scrim),0.35); }
.land-intro-media img{ width:100%; height:100%; object-fit:cover; display:block; }

/* land types: one tall feature + two stacked, each with its own photograph */
.land-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  grid-template-rows:auto auto;
  gap:clamp(20px,2.6vw,28px);
  margin-bottom:clamp(40px,5vw,60px);
}
.land-card{
  display:grid; grid-template-columns:minmax(0,0.9fr) minmax(0,1fr);
  grid-template-rows:1fr 1fr;
  column-gap:clamp(16px,2vw,24px); row-gap:0;
  border:1px solid rgba(247,243,232,0.12);
  border-radius:10px;
  padding:14px;
  background:rgba(247,243,232,0.03);
  transition:border-color 0.2s ease;
}
.land-card--feature{ grid-row:1 / 3; grid-template-columns:1fr; grid-template-rows:none; align-content:start; }
.land-card:hover{ border-color:rgba(203,173,121,0.5); }
.land-media{ grid-row:1 / 3; align-self:center; aspect-ratio:4/3; border-radius:3px; overflow:hidden; background:var(--ink-soft); }
.land-card--feature .land-media{ grid-row:auto; aspect-ratio:16/11; }
.land-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.land-card h3{ font-family:var(--font-display); font-size:1.3rem; font-weight:600; margin:0 0 8px; align-self:end; }
.land-card--feature h3{ font-size:1.6rem; margin:18px 10px 8px; }
.land-card p{ color:var(--text-on-dark-soft); font-weight:300; font-size:16px; line-height:1.55; align-self:start; padding-right:8px; }
.land-card--feature p{ margin:0 10px 10px; max-width:42ch; }
@media (max-width: 900px){
  .land-intro-row{ grid-template-columns:1fr; }
  .land-intro-media{ aspect-ratio:16/9; }
  .land-grid{ grid-template-columns:1fr; }
  .land-card--feature{ grid-row:auto; }
}
@media (max-width: 560px){
  .land-card{ grid-template-columns:1fr; grid-template-rows:none; }
  .land-media{ grid-row:auto; margin-bottom:14px; }
  .land-card h3, .land-card p{ margin-left:6px; margin-right:6px; }
}

/* =====================================================
   WHY LOMBOK
   ===================================================== */
.why-grid{
  display:grid; grid-template-columns:0.9fr 1.1fr;
  gap:clamp(40px,6vw,80px);
  margin-bottom:clamp(72px,9vw,110px);
}
.why-list{ display:flex; flex-direction:column; gap:0; }
.why-list li{
  display:grid; grid-template-columns:44px 1fr; gap:20px;
  padding:22px 0; border-bottom:1px solid rgba(26,33,31,0.12);
}
.why-list li:first-child{ border-top:1px solid rgba(26,33,31,0.12); }
.why-num{ font-family:var(--font-mono); font-size:13px; color:var(--gold-ink); }
.why-list h3{ font-family:var(--font-display); font-size:1.15rem; font-weight:500; margin-bottom:6px; }
.why-list p{ color:var(--text-on-light-soft); font-weight:300; font-size:0.95rem; }

.why-photo{
  margin:clamp(32px,4vw,44px) 0 0;
  border-radius:6px;
  overflow:hidden;
  position:relative;
}
.why-photo img{ width:100%; height:auto; display:block; aspect-ratio:4/3; object-fit:cover; }
.why-photo figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding:14px 16px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:0.04em;
  color:var(--cream);
  background:linear-gradient(0deg, rgba(var(--scrim),0.75), rgba(var(--scrim),0));
}

.how-we-work{
  border-top:1px solid rgba(26,33,31,0.14);
  padding-top:clamp(48px,6vw,70px);
}
.how-we-work h3{
  font-family:var(--font-display); font-weight:500;
  font-size:clamp(1.5rem,2.4vw,2rem); margin-bottom:clamp(32px,4vw,44px);
}
.how-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(24px,3vw,32px);
}
.how-grid strong{ display:block; font-family:var(--font-display); font-size:1.05rem; font-weight:500; margin-bottom:10px; }
.how-grid p{ color:var(--text-on-light-soft); font-weight:300; font-size:0.92rem; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid{
  display:grid; grid-template-columns:1fr 1.1fr;
  gap:clamp(40px,6vw,90px);
}
.contact-details{ margin-top:clamp(36px,4vw,50px); display:flex; flex-direction:column; gap:22px; }
.contact-details li{ display:flex; flex-direction:column; gap:4px; font-size:1rem; }
.contact-ig-link{ display:inline-flex; align-items:center; gap:8px; }
/* contact links are the conversion path on mobile: give them a full touch target */
.contact-details a{ display:inline-flex; align-items:center; min-height:44px; margin-block:-9px; align-self:flex-start; }
.contact-details span{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--gold-light);
}
.contact-details a{ transition:color 0.25s ease; }
.contact-details a:hover, .contact-details a:focus-visible{ color:var(--gold-light); }

.contact-form{ display:flex; flex-direction:column; gap:18px; }
.form-row{ display:flex; flex-direction:column; gap:8px; }
.form-row label{ font-size:12.5px; letter-spacing:0.04em; color:var(--text-on-dark-soft); }
.form-row input, .form-row select, .form-row textarea{
  background:rgba(247,243,232,0.06);
  border:1px solid rgba(247,243,232,0.18);
  border-radius:3px;
  padding:13px 14px;
  color:var(--cream);
  font-family:var(--font-body);
  font-size:0.95rem;
  transition:border-color 0.25s ease, background 0.25s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline:none; border-color:var(--gold); background:rgba(247,243,232,0.09);
}
.form-row select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23AF8C54'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.contact-form .btn{ margin-top:6px; align-self:flex-start; }
.form-note{ font-size:12.5px; color:var(--text-on-dark-soft); }

/* focus visibility for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--gold); outline-offset:3px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer{ background:var(--ink); padding:clamp(44px,6vw,64px) 0; color:var(--text-on-dark-soft); }
.footer-inner{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; }
.logo--footer{ color:var(--cream); margin-right:0; }
.footer-wordmark{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:8px; }
.footer-word{
  font-family:var(--font-display); font-size:20px; letter-spacing:0.18em;
  font-weight:500; color:var(--cream);
}
.footer-divider{
  display:flex; align-items:center; gap:14px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.22em;
  color:var(--gold-light);
}
.footer-divider i{ width:26px; height:1px; background:var(--gold); display:block; font-style:normal; }
.footer-legal, .footer-copy{ font-size:12.5px; margin-top:6px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
/* Header: full nav only where it fits beside the logo with its edge padding */
@media (max-width: 1439px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; position:relative; z-index:401; } /* stays tappable above the open menu */

  .main-nav.open{
    display:flex; flex-direction:column;
    align-items:flex-start;
    position:fixed; inset:0; top:0;
    background:var(--ink);
    padding:110px var(--edge) 40px;
    gap:28px;
    z-index:400;
  }
  .main-nav.open .nav-link{ font-size:18px; text-transform:none; letter-spacing:0.01em; }
  .main-nav.open .nav-cta-group{ flex-direction:column; align-items:flex-start; margin-left:0; gap:14px; margin-top:8px; }

  .main-nav.open .nav-dropdown{ width:100%; }
  .main-nav.open .nav-link--dropdown{ font-size:18px; text-transform:none; letter-spacing:0.01em; pointer-events:none; }
  .main-nav.open .nav-caret{ display:none; }
  .main-nav.open .nav-dropdown-label{ display:none; }
  .main-nav.open .nav-dropdown-panel{
    position:static; opacity:1; visibility:visible; pointer-events:auto;
    transform:none; background:none; border:none; box-shadow:none;
    padding:14px 0 0 18px; margin:0; gap:14px;
  }
  .main-nav.open .nav-dropdown-panel a{ font-size:16px; padding:0; color:var(--text-on-dark-soft); border-bottom:none; }
  .main-nav.open .nav-dropdown-panel a::before{ content:'— '; color:var(--gold); }
}

@media (max-width: 1180px){
  .about-strip-inner{ grid-template-columns:1fr; }
  /* single column: the photo becomes a landscape plate on the text's own edge */
  .about-image{ aspect-ratio:3/2; }

  .team-grid{ grid-template-columns:repeat(2,1fr); }
  .team-card:nth-child(3){ grid-column:1 / -1; max-width:calc(50% - 14px); }

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

  .why-grid{ grid-template-columns:1fr; }
  .how-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .about-stats{ grid-template-columns:1fr 1fr; }
  .about-stats .about-stat:last-child{ grid-column:1 / -1; }

  .team-grid{ grid-template-columns:1fr; }
  .team-card:nth-child(3){ max-width:none; }
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
@media (max-width: 560px){
  .how-grid{ grid-template-columns:1fr; }
  .hero-actions{ flex-direction:column; align-items:flex-start; }
  .btn{ width:100%; }
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:600;
  width:56px; height:56px; border-radius:50%;
  background:#25D366;
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px rgba(var(--scrim),0.32);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover, .whatsapp-float:focus-visible{ transform:translateY(-3px) scale(1.04); box-shadow:0 12px 26px rgba(var(--scrim),0.38); }

@media (max-width: 560px){
  .whatsapp-float{ width:50px; height:50px; right:16px; bottom:16px; }
}

/* =====================================================
   PROJECT DETAIL PAGE (placeholder)
   ===================================================== */
.detail-hero{
  position:relative;
  min-height:56vh;
  display:flex; align-items:flex-end;
  overflow:hidden;
  background:var(--ink);
}
.detail-hero-photo{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
}
.detail-hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(var(--scrim),0.35) 0%, rgba(var(--scrim),0.55) 55%, rgba(var(--scrim),0.92) 100%);
}
.detail-hero--placeholder{ background:var(--surface-dark); }
.detail-hero-content{
  position:relative; z-index:2;
  padding:140px 0 48px;
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
}
.detail-hero-content--fluid{
  width:100%;
  padding-left:var(--edge); padding-right:var(--edge);
}
.detail-back{
  font-size:14px;
  color:var(--text-on-dark-soft);
  display:inline-flex; align-items:center; min-height:44px;
  margin:-10px 0 -2px;
  transition:color 0.25s ease;
}
.detail-back:hover, .detail-back:focus-visible{ color:var(--gold-light); }
.detail-hero-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(2.2rem,4.6vw,3.6rem);
  color:var(--cream);
  line-height:1.05;
}
.detail-hero-meta{
  font-size:0.95rem;
  color:var(--text-on-dark-soft);
}
.detail-placeholder .btn{ margin-top:8px; }

/* =====================================================
   PROJECT DETAIL BODY — About / Highlights
   ===================================================== */
.detail-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:clamp(40px,5vw,72px);
  align-items:start;
}
.detail-about-text{
  margin-top:20px;
  font-size:1.02rem;
  line-height:1.7;
  color:var(--text-on-light-soft);
  font-weight:300;
}
.detail-availability{
  margin-top:clamp(32px,4vw,44px);
  background:var(--paper-2);
  border-radius:10px;
  padding:clamp(24px,3vw,30px);
}
.detail-availability-label{
  font-size:0.8rem;
  color:var(--text-on-light-soft);
  margin-bottom:14px;
}
.detail-availability-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.tag{
  display:inline-flex;
  font-size:0.78rem; font-weight:500;
  padding:6px 13px;
  border-radius:999px;
  background:rgba(35,41,31,0.08);
  color:var(--text-on-light-soft);
}
.tag--gold{ background:rgba(175,140,84,0.16); color:var(--jungle); font-weight:600; }
.detail-availability-desc{ font-size:0.95rem; color:var(--text-on-light); margin-bottom:10px; }
.detail-availability-price{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.8rem;
  color:var(--gold-ink);
  margin-bottom:8px;
}
.detail-availability-delivery{ font-size:0.82rem; color:var(--text-on-light-soft); }
.detail-availability-unit{ margin-top:14px; padding-top:14px; border-top:1px solid rgba(35,41,31,0.1); }
.detail-availability-unit:first-of-type{ margin-top:0; padding-top:0; border-top:none; }

.detail-highlights{ position:sticky; top:110px; }
.highlight-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:20px;
  margin-bottom:24px;
}
.highlight-card{
  background:var(--paper-2);
  border:1px solid rgba(35,41,31,0.08);
  border-radius:10px;
  padding:18px;
  transition:border-color 0.2s ease;
}
.highlight-card:hover{ border-color:rgba(175,140,84,0.35); }
.highlight-card span{ font-size:0.92rem; color:var(--text-on-light); font-weight:500; }
.detail-invest-btn{ width:100%; text-align:center; justify-content:center; }
.detail-cta-row{ display:flex; flex-direction:column; gap:12px; }
.detail-cta-row .btn{ width:100%; text-align:center; justify-content:center; }

@media (max-width: 900px){
  .detail-grid{ grid-template-columns:1fr; }
  .detail-highlights{ position:static; }
}
@media (max-width: 480px){
  .highlight-grid{ grid-template-columns:1fr; }
}

/* =====================================================
   PROJECT DETAIL — AMENITIES (COMODIDADES)
   ===================================================== */
.detail-body{ padding:var(--section-pad) 0; }
.detail-amenities{ padding:var(--section-pad) 0; }
.amenities-head{
  text-align:left;
  max-width:680px;
  margin:0 0 clamp(40px,6vw,64px);
}
.amenities-head .section-num{ margin-left:auto; margin-right:auto; }
.amenities-head .section-title{ margin-bottom:0; }
.amenities-accent{
  font-weight:800;
  color:var(--gold-ink);
}

.amenities-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:clamp(20px,2.4vw,32px);
}
.amenity-card{
  grid-column:span 2;
  text-align:left;
  background:var(--paper-2);
  border:1px solid rgba(35,41,31,0.08);
  border-radius:10px;
  padding:clamp(30px,3.2vw,38px) clamp(24px,2.6vw,28px);
  transition:border-color 0.2s ease;
}
.amenity-card:hover{ border-color:rgba(175,140,84,0.35); }
/* the private infinity pool is the headline amenity: it gets the tall dark cell */
.amenity-card:nth-child(1){ grid-column:1 / 3; grid-row:1 / 3; }
.amenity-card:nth-child(2){ grid-column:3 / 5; grid-row:1; }
.amenity-card:nth-child(3){ grid-column:5 / 7; grid-row:1; }
.amenity-card:nth-child(4){ grid-column:3 / 5; grid-row:2; }
.amenity-card:nth-child(5){ grid-column:5 / 7; grid-row:2; }
/* pool cell carries the project's own terrace-and-pool render (Infinity Villas only) */
.amenity-card:nth-child(1){
  background:var(--surface-dark);
  border-color:transparent;
  display:flex; flex-direction:column; justify-content:flex-end;
  min-height:clamp(320px,30vw,420px);
}
.amenity-card:nth-child(1) h3{ color:var(--cream); font-size:1.6rem; line-height:1.15; }
.amenity-card:nth-child(1) p{ color:var(--text-on-dark); max-width:32ch; }
.amenity-card:nth-child(1) .amenity-icon{ background:rgba(203,173,121,0.14); color:var(--gold-light); }

.amenity-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px; height:52px;
  margin:0 0 22px;
  border-radius:50%;
  background:rgba(175,140,84,0.12);
  color:var(--gold);
}
.amenity-icon svg{ width:26px; height:26px; }
.amenity-card h3{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.1rem;
  color:var(--text-on-light);
  margin-bottom:10px;
}
.amenity-card p{
  font-size:0.88rem;
  line-height:1.6;
  color:var(--text-on-light-soft);
  font-weight:300;
}

@media (max-width: 900px){
  .amenities-grid{ grid-template-columns:repeat(2,1fr); }
  .amenity-card,
  .amenity-card:nth-child(1),
  .amenity-card:nth-child(2),
  .amenity-card:nth-child(3),
  .amenity-card:nth-child(4),
  .amenity-card:nth-child(5){ grid-column:span 1; grid-row:auto; }
  .amenity-card:nth-child(1){ grid-column:1 / -1; min-height:260px; }
}
@media (max-width: 560px){
  .amenities-grid{ grid-template-columns:1fr; }
}

/* =====================================================
   PROJECT DETAIL — ROI (stats row + chart + positioning)
   ===================================================== */
.detail-roi{ background:var(--paper-2); padding:var(--section-pad) 0; }

.roi-stats-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-bottom:clamp(64px,8vw,100px);
}
.roi-stat{
  text-align:center;
  padding:0 20px;
  border-left:1px solid rgba(35,41,31,0.12);
}
.roi-stat:first-child{ border-left:none; }
.roi-stat-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px; height:52px;
  margin:0 auto 18px;
  border-radius:50%;
  background:var(--jungle);
  color:var(--gold-light);
}
.roi-stat-icon svg{ width:22px; height:22px; }
.roi-stat-figure{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.7rem,2.6vw,2.3rem);
  font-variant-numeric:tabular-nums; /* steady width while the counter runs */
  color:var(--ink);
  margin-bottom:8px;
}
.roi-stat-label{
  font-size:0.86rem;
  color:var(--text-on-light-soft);
}

.roi-chart-block{ width:100%; }
.roi-chart-head{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  max-width:62ch;
  align-items:start;
  margin-bottom:clamp(40px,5vw,56px);
}
.roi-chart-head-left .section-num{ margin-bottom:16px; }
.roi-chart-head-left .section-title{ margin-bottom:0; }
.roi-chart-head-right{ display:flex; }
.roi-chart-params{
  font-size:1.05rem;
  line-height:1.6;
  color:var(--text-on-light-soft);
  font-weight:300;
  max-width:480px;
}
.roi-chart-highlights{
  list-style:none;
  text-align:left;
  max-width:720px;
  margin:0 0 clamp(40px,5vw,56px);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.roi-chart-highlights li{
  font-size:0.98rem;
  line-height:1.6;
  color:var(--text-on-light-soft);
  padding-left:22px;
  position:relative;
}
.roi-chart-highlights li::before{
  content:"";
  position:absolute;
  left:0; top:9px;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--gold);
}
.roi-chart-highlights strong{ color:var(--jungle); font-weight:700; }

.roi-chart-card{
  background:var(--cream);
  border:1px solid rgba(35,41,31,0.08);
  border-radius:10px;
  padding:clamp(28px,4vw,48px) clamp(20px,3vw,40px) clamp(16px,2vw,20px);
  box-shadow:0 20px 44px rgba(var(--scrim),0.08);
  width:100%;
  box-sizing:border-box;
  /* visible: bar tooltips rise above the card instead of being cut off */
  overflow:visible;
}
.roi-chart{
  display:flex;
  align-items:flex-end;
  gap:clamp(3px,0.7vw,14px);
  height:clamp(220px,26vw,320px);
  width:100%;
}
.roi-bar-col{
  flex:1 1 0;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  height:100%;
  position:relative;
}
.roi-bar-figure{
  font-size:clamp(11px,0.85vw,12px);
  font-weight:600;
  color:var(--text-on-light);
  margin-bottom:6px;
  white-space:nowrap;
  /* figures may run a few px into the column gap (10-14px); never cut a number */
  overflow:visible;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.roi-bar-track{
  width:100%;
  flex:1;
  display:flex;
  align-items:flex-end;
}
.roi-bar{
  width:100%;
  /* bars hold their final height and grow with scaleY: compositor-only, no layout */
  height:var(--h);
  transform:scaleY(0);
  transform-origin:bottom center;
  border-radius:4px 4px 0 0;
  background:linear-gradient(180deg, var(--jungle-2) 0%, var(--jungle) 100%);
  transition:transform 0.9s var(--ease-out);
  transition-delay:calc(var(--i, 0) * 40ms);
}
.roi-bar-col.is-highlight .roi-bar{
  background:linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
}
.roi-bar-col.is-highlight .roi-bar-figure{ color:var(--gold-ink); font-weight:700; }
.roi-chart.in-view .roi-bar{ transform:scaleY(1); }
.roi-bar-year{
  font-size:11px;
  color:var(--text-on-light-soft);
  margin-top:8px;
}
.roi-bar-tooltip{
  position:absolute;
  bottom:calc(100% + 4px);
  left:50%;
  transform:translateX(-50%) translateY(4px);
  background:var(--ink);
  color:var(--cream);
  font-size:11px;
  line-height:1.4;
  text-align:center;
  padding:7px 10px;
  border-radius:3px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transform-origin:bottom center;
  transition:opacity 0.12s ease, transform 0.12s ease;
  z-index:5;
}
.roi-bar-tooltip::after{
  content:"";
  position:absolute;
  top:100%; left:50%;
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:var(--ink);
}
.roi-bar-col:hover .roi-bar-tooltip{
  opacity:1;
  transform:translateX(-50%) translateY(0);
  transition:opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}
.roi-chart-axis-label{
  text-align:center;
  font-size:0.8rem;
  color:var(--text-on-light-soft);
  margin-top:14px;
}
.roi-chart-note{
  font-size:0.8rem;
  color:var(--text-on-light-soft);
  font-style:italic;
  margin-top:20px;
}

.roi-positioning{
  text-align:center;
  max-width:900px;
  margin:clamp(80px,10vw,120px) auto 0;
}
.roi-positioning-text{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(2.2rem,5.2vw,3.6rem);
  line-height:1.2;
  color:var(--ink);
  margin-bottom:26px;
}
.roi-positioning-text strong{ font-weight:800; color:var(--jungle); }
.roi-positioning-sub{
  font-size:1.02rem;
  color:var(--text-on-light-soft);
  margin-bottom:12px;
  line-height:1.6;
  max-width:620px;
  margin-left:auto;
  margin-right:auto;
}
.roi-positioning-sub2{
  font-size:0.98rem;
  color:var(--text-on-light);
  font-weight:500;
  margin-bottom:30px;
}

@media (max-width: 900px){
  .roi-chart-head{ grid-template-columns:1fr; align-items:start; gap:20px; }
}
@media (max-width: 780px){
  .roi-stats-row{ grid-template-columns:repeat(2,1fr); gap:32px 0; }
  .roi-stat{ border-left:none; }
  .roi-stat:nth-child(odd){ border-right:1px solid rgba(35,41,31,0.12); }
}
/* 15 figures stop fitting side by side well before phone width: turn them upright */
@media (max-width: 1100px){
  .roi-bar-figure{ writing-mode:vertical-rl; text-orientation:mixed; margin-bottom:8px; }
}
@media (max-width: 560px){
  .roi-chart{ height:200px; }
}

/* =====================================================
   PROJECT DETAIL — TOTAL RETURN (Rentabilidad Total)
   ===================================================== */
.detail-total-return{ padding:var(--section-pad) 0; }
.detail-total-return-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:clamp(40px,5vw,72px);
  align-items:stretch;
}
.detail-total-return-media{
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 24px 56px rgba(0,0,0,0.3);
  height:100%;
  min-height:480px;
}
.detail-total-return-media img{ display:block; width:100%; height:100%; object-fit:cover; }
.text-gold-bold{ color:var(--gold-light); font-weight:800; }
.detail-total-return-subtitle{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.2rem;
  color:var(--cream);
  margin-top:clamp(28px,3.4vw,38px);
  margin-bottom:10px;
}
.detail-total-return-text{
  font-size:0.98rem;
  line-height:1.65;
  color:var(--text-on-dark-soft);
  font-weight:300;
  margin-bottom:clamp(28px,3.4vw,34px);
}
.return-cards{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.return-card{
  display:flex;
  align-items:center;
  gap:16px;
  background:rgba(247,243,232,0.06);
  border:1px solid rgba(247,243,232,0.14);
  border-radius:10px;
  padding:16px 20px;
  transition:border-color 0.2s ease, background-color 0.2s ease;
}
.return-card:hover{
  border-color:rgba(175,140,84,0.4);
  background:rgba(247,243,232,0.1);
}
.return-card-icon{
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius:50%;
  background:rgba(175,140,84,0.16);
  color:var(--gold-light);
}
.return-card-icon svg{ width:20px; height:20px; }
.return-card-figure{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.25rem;
  color:var(--cream);
  margin-bottom:2px;
}
.return-card-label{
  font-size:0.84rem;
  color:var(--text-on-dark-soft);
}

@media (max-width: 900px){
  .detail-total-return-grid{ grid-template-columns:1fr; }
  .detail-total-return-media{ order:-1; aspect-ratio:5/4; height:auto; min-height:0; max-height:none; }
}

/* =====================================================
   PROJECT DETAIL — GALLERY GRID
   ===================================================== */
.detail-gallery{ padding:var(--section-pad) 0; }
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,2vw,20px);
  margin-top:clamp(28px,3.5vw,40px);
}
/* lead image takes a 2x2 frame; aspect follows the grid area */
.gallery-grid:has(.gallery-item:nth-child(14)) .gallery-item:first-child{
  grid-column:span 2; grid-row:span 2; aspect-ratio:auto;
}
/* with exactly 14 images the last one closes as a 2-wide plate so every row is full */
.gallery-grid:has(> .gallery-item:nth-child(14):last-child) .gallery-item:last-child{
  grid-column:span 2; aspect-ratio:auto; position:relative;
}
/* on 3 columns it shares its row, so it takes that row's height instead of its own */
@media (min-width: 901px){
  .gallery-grid:has(> .gallery-item:nth-child(14):last-child) .gallery-item:last-child img{ position:absolute; inset:0; }
}
.gallery-item{
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:10px;
  background:var(--paper-2);
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover; display:block;
}

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns:1fr; }
  .gallery-grid:has(.gallery-item:nth-child(14)) .gallery-item:first-child,
  .gallery-grid:has(> .gallery-item:nth-child(14):last-child) .gallery-item:last-child{ grid-column:auto; grid-row:auto; aspect-ratio:4/3; }
}

/* =====================================================
   PROJECT DETAIL — LOCATION
   ===================================================== */
.detail-location{ padding:var(--section-pad) 0; }
.location-grid{
  display:grid;
  grid-template-columns:0.6fr 1.4fr;
  gap:clamp(40px,5vw,64px);
  align-items:center;
}
.location-list{
  list-style:none;
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 28px;
  padding-top:24px;
  border-top:1px solid rgba(247,243,232,0.14);
}
.location-list li{
  font-size:14px;
  line-height:1.4;
  color:var(--text-on-dark-soft);
}
/* minutes are the fact: set them as the figure, place name as its caption */
.location-list li strong{
  display:block;
  font-family:var(--font-display);
  font-size:1.6rem;
  font-weight:600;
  line-height:1.1;
  color:var(--gold-light);
  margin-bottom:4px;
  font-variant-numeric:lining-nums;
}
.location-map{
  border-radius:10px;
  overflow:hidden;
  aspect-ratio:4/3;
  box-shadow:0 24px 56px rgba(0,0,0,0.35);
}
.location-map iframe{ display:block; }

@media (max-width: 900px){
  .location-grid{ grid-template-columns:1fr; }
  .location-map{ aspect-ratio:4/3; }
}

/* =====================================================
   PROJECT DETAIL — ROI disclaimer
   ===================================================== */
.detail-roi-disclaimer{
  margin-top:14px;
  font-size:0.76rem;
  line-height:1.5;
  color:var(--text-on-light-soft);
}

/* =====================================================
   PROJECT DETAIL — Interest form
   ===================================================== */
.detail-interest{ padding:var(--section-pad) 0; }
.interest-grid{
  display:grid;
  grid-template-columns:0.8fr 1.2fr;
  gap:clamp(40px,5vw,72px);
  align-items:start;
}
.interest-text{
  margin-top:18px;
  font-size:1.05rem;
  color:var(--text-on-dark);
  font-weight:300;
  max-width:36ch;
}
.interest-fineprint{
  margin-top:18px;
  font-size:0.78rem;
  line-height:1.55;
  color:var(--text-on-dark-soft);
  max-width:38ch;
}

.villa-form{ display:flex; flex-direction:column; gap:16px; }
.villa-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.villa-form-row--full{ grid-template-columns:1fr; }
.villa-form input, .villa-form textarea{
  width:100%;
  background:rgba(247,243,232,0.06);
  border:1px solid rgba(247,243,232,0.22);
  border-radius:3px;
  padding:14px 16px;
  color:var(--cream);
  font-family:var(--font-body);
  font-size:0.95rem;
  transition:border-color 0.25s ease, background 0.25s ease;
}
.villa-form textarea{ resize:vertical; }
.villa-form input::placeholder, .villa-form textarea::placeholder{ color:var(--text-on-dark-soft); }
.villa-form input:focus, .villa-form textarea:focus{
  outline:none; border-color:var(--gold); background:rgba(247,243,232,0.09);
}
.villa-checkbox{
  display:flex; align-items:flex-start; gap:12px;
  font-size:0.82rem; line-height:1.5;
  color:var(--text-on-dark-soft);
  cursor:pointer;
}
.villa-checkbox input{ flex:none; margin-top:2px; width:18px; height:18px; accent-color:var(--gold); }
.villa-form-submit{ align-self:flex-start; margin-top:4px; min-height:44px; padding-inline:24px; }
.villa-form-note{ font-size:0.78rem; color:var(--text-on-dark-soft); }

@media (max-width: 900px){
  .interest-grid{ grid-template-columns:1fr; }
}
@media (max-width: 560px){
  .villa-form-row{ grid-template-columns:1fr; }
}

/* =====================================================
   INVEST MODAL
   ===================================================== */
.modal-overlay{
  position:fixed; inset:0; z-index:1000;
  background:rgba(var(--scrim),0.72);
  backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  opacity:0; visibility:hidden;
  transition:opacity 0.18s ease, visibility 0.18s;
}
.modal-overlay.is-open{ opacity:1; visibility:visible; transition:opacity 0.3s var(--ease-out), visibility 0s; }
.modal-box{
  position:relative;
  width:100%; max-width:600px;
  max-height:88vh; overflow-y:auto;
  background:var(--surface-dark);
  border-radius:12px;
  padding:clamp(28px,4vw,44px);
  box-shadow:0 30px 70px rgba(0,0,0,0.45);
  transform:translateY(12px) scale(0.98);
  transition:transform 0.3s var(--ease-out);
}
.modal-overlay.is-open .modal-box{ transform:translateY(0) scale(1); }
.modal-close{
  position:absolute; top:18px; right:18px;
  width:34px; height:34px; border-radius:50%;
  background:rgba(247,243,232,0.08);
  color:var(--text-on-dark);
  display:flex; align-items:center; justify-content:center;
  border:none; cursor:pointer;
  transition:background 0.2s ease, color 0.2s ease;
}
.modal-close:hover, .modal-close:focus-visible{ background:rgba(247,243,232,0.16); color:var(--gold-light); }
.modal-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.5rem,2.6vw,1.9rem);
  color:var(--cream);
  margin-bottom:10px;
  padding-right:30px;
}
.modal-subtext{
  font-size:0.95rem;
  color:var(--text-on-dark-soft);
  margin-bottom:26px;
}
body.modal-open{ overflow:hidden; }

@media (max-width: 560px){
  .modal-box{ padding:26px 20px; }
}

/* =====================================================
   DESARROLLA TU PROYECTO — banner header
   ===================================================== */
.pd-section{ padding-top:0; }
.pd-banner{
  position:relative;
  /* the fixed header sits over the top 90px: reserve it, then give the title its own room */
  height:clamp(300px,34vw,430px);
  padding-top:90px;
  overflow:hidden;
  margin-bottom:clamp(48px,6vw,72px);
}
.pd-banner-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 68%;
}
.pd-banner-scrim{
  position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(var(--scrim),0.82) 0%, rgba(var(--scrim),0.5) 55%, rgba(var(--scrim),0.72) 100%);
}
.pd-banner-content{
  position:relative; z-index:2;
  height:100%;
  display:flex; flex-direction:column; justify-content:center;
}
.pd-banner-eyebrow{ color:var(--gold-light) !important; }
.pd-banner-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2rem,4vw,3rem);
  color:var(--cream);
  line-height:1.1;
}

/* =====================================================
   DESARROLLA TU PROYECTO — highlight
   ===================================================== */
.pd-highlight{ color:var(--gold-ink); }

/* =====================================================
   ¿POR QUÉ LOMBOK? — video background section
   ===================================================== */
.why-video-section{
  position:relative;
  overflow:hidden;
  padding:var(--section-pad) 0;
  background:var(--ink);
}
.why-video-bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
}
.why-video-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(var(--scrim),0.55) 0%, rgba(var(--scrim),0.5) 40%, rgba(var(--scrim),0.78) 100%),
    linear-gradient(100deg, rgba(var(--scrim),0.4) 0%, rgba(var(--scrim),0.15) 50%);
}
.why-video-content{ position:relative; z-index:2; text-align:center; }
.why-video-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.2rem,4.4vw,3.4rem);
  color:var(--cream);
  margin-bottom:18px;
}
.why-video-subtitle{
  font-size:1.05rem;
  color:var(--text-on-dark);
  font-weight:300;
  max-width:56ch;
  margin:0 auto clamp(44px,6vw,64px);
}

/* four reasons as an editorial 2x2 on the film: hairline-ruled, no boxes, the video stays the material */
.why-cards-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(32px,5vw,72px);
  row-gap:clamp(28px,3.5vw,44px);
  max-width:960px;
  margin:0 auto;
  text-align:left;
}
.why-video-card{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:18px;
  align-content:start;
  padding-top:clamp(20px,2.4vw,28px);
  border-top:1px solid rgba(247,243,232,0.22);
  transition:border-color 0.2s ease;
}
.why-video-card:hover{ border-top-color:rgba(203,173,121,0.7); }
.why-video-icon{
  grid-row:1 / 3;
  display:inline-flex;
  width:26px; height:26px;
  color:var(--gold-light);
  margin-top:2px;
}
.why-video-card h3{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.3rem;
  line-height:1.25;
  color:var(--cream);
  margin-bottom:8px;
}
.why-video-card p{
  font-size:16px;
  line-height:1.6;
  color:var(--text-on-dark);
  font-weight:300;
  max-width:44ch;
}

@media (max-width: 980px){
}
@media (max-width: 560px){
  .why-cards-grid{ grid-template-columns:1fr; }
  .why-video-card h3{ font-size:1.2rem; }
}

/* =====================================================
   HERO BADGE — mobile fix (avoid overlap with eyebrow/script text)
   ===================================================== */
@media (max-width: 640px){
  .hero-badge{
    top:78px;
    right:var(--edge);
    padding:7px 12px;
    font-size:11px;
    letter-spacing:0.04em;
    gap:6px;
    max-width:184px;
    white-space:normal;
    line-height:1.35;
    text-align:left;
    border-radius:4px;
    align-items:flex-start;
  }
  .hero-badge-dot{ flex:none; margin-top:2px; }
}

/* =====================================================
   NUESTRO MODELO — Mojo-style (within Proyectos propios)
   ===================================================== */
.model-block{
  margin-top:clamp(72px,9vw,104px);
  padding-top:clamp(56px,7vw,80px);
  border-top:1px solid rgba(247,243,232,0.12);
}
.model-header{
  max-width:680px;
  margin-bottom:130px;
}
.model-eyebrow{
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--gold-light);
  margin-bottom:18px;
}
.model-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.7rem,3vw,2.3rem);
  line-height:1.25;
  color:var(--cream);
}
.model-title em{ font-style:italic; font-weight:400; color:var(--jungle-light); }
.model-header-right{ margin-top:22px; }
.model-subtitle{
  max-width:620px;
  font-size:0.98rem;
  line-height:1.6;
  color:var(--text-on-dark-soft);
  font-weight:300;
}

.model-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.model-col{
  position:relative;
  padding:100px 52px 4px 52px;
}
.model-col:first-child{ padding-left:0; }
.model-col:not(:first-child){
  border-left:1px solid rgba(247,243,232,0.14);
}
.model-col-num{
  position:absolute;
  top:-14px; left:52px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:4.4rem;
  line-height:1;
  color:rgba(247,243,232,0.07);
  z-index:0;
  user-select:none;
}
.model-col:first-child .model-col-num{ left:0; }
.model-col-icon{
  position:absolute;
  top:26px; left:56px;
  z-index:1;
  display:inline-flex;
  width:26px; height:26px;
  color:var(--gold);
}
.model-col:first-child .model-col-icon{ left:4px; }
.model-col-icon svg{ width:100%; height:100%; }
.model-col h4{
  position:relative; z-index:1;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.02rem;
  color:var(--cream);
  margin-bottom:10px;
}
.model-col p{
  position:relative; z-index:1;
  font-size:0.85rem;
  line-height:1.55;
  color:var(--text-on-dark-soft);
  font-weight:300;
}

@media (max-width: 980px){
  .model-header{ max-width:none; }
  .model-row{ grid-template-columns:repeat(2,1fr); row-gap:56px; }
  .model-col:nth-child(2){ border-left:1px solid rgba(247,243,232,0.14); }
  .model-col:nth-child(3){ padding-left:0; border-left:none; }
  .model-col:nth-child(3) .model-col-num,
  .model-col:nth-child(3) .model-col-icon{ left:0; }
}
@media (max-width: 560px){
  .model-row{ grid-template-columns:1fr; row-gap:44px; }
  .model-col{ padding-left:0; border-left:none !important; }
  .model-col-num, .model-col-icon{ left:0 !important; }
}

/* =====================================================
   PROJECT MANAGEMENT — full photo plate + phase explorer
   The photo is shown whole (no crop, no pinning); the four
   phases sit underneath as tabs, auto-advancing gently while
   the section is on screen until the visitor takes over.
   ===================================================== */
.pm-cinematic{ padding:0; }

.pm-cinematic-head{
  padding:var(--section-pad) var(--edge) clamp(36px,4.5vw,56px);
  max-width:calc(var(--wrap));
}
.pm-cinematic-head > *{ max-width:62ch; }
.pm-cinematic-head .section-num{ color:var(--gold-light); }

.pm-plate{
  margin:0;
  aspect-ratio:1774 / 887;
  border-radius:10px;
  overflow:hidden;
  background:var(--ink-soft);
  box-shadow:0 30px 70px rgba(var(--scrim),0.45);
}
.pm-plate img{ width:100%; height:100%; object-fit:cover; display:block; }

/* tabs: one row of four, a gold rule marks the active phase */
.pm-tabs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-top:clamp(20px,2.4vw,28px);
  border-top:1px solid rgba(247,243,232,0.14);
}
.pm-tab{
  position:relative;
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  padding:20px 20px 4px 0;
  background:none; border:0;
  color:var(--text-on-dark-soft);
  font-family:var(--font-body);
  text-align:left;
  cursor:pointer;
  transition:color 0.2s ease;
  -webkit-tap-highlight-color:transparent;
}
.pm-tab::before{
  content:''; position:absolute; left:0; right:20px; top:-1px; height:2px;
  background:rgba(247,243,232,0);
  transition:background-color 0.2s ease;
}
.pm-tab-num{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.6rem;
  line-height:1;
  color:rgba(203,173,121,0.45);
  font-variant-numeric:lining-nums;
  transition:color 0.2s ease;
}
.pm-tab-title{ font-size:14px; font-weight:500; line-height:1.4; max-width:22ch; }
/* auto-advance timer: fills along the active tab's rule */
.pm-tab-progress{
  position:absolute; left:0; right:20px; top:-1px; height:2px;
  background:var(--gold-light);
  transform:scaleX(0); transform-origin:left center;
}
.pm-tab:hover, .pm-tab:focus-visible{ color:var(--cream); }
.pm-tab:hover::before{ background:rgba(247,243,232,0.35); }
.pm-tab[aria-selected="true"]{ color:var(--cream); }
.pm-tab[aria-selected="true"]::before{ background:rgba(203,173,121,0.35); }
.pm-tab[aria-selected="true"] .pm-tab-num{ color:var(--gold-light); }
.pm-explorer.is-auto .pm-tab[aria-selected="true"] .pm-tab-progress{
  animation:pmTabTimer var(--pm-interval, 6s) linear forwards;
}
.pm-explorer:not(.is-auto) .pm-tab[aria-selected="true"] .pm-tab-progress{ transform:scaleX(1); }
@keyframes pmTabTimer{ to{ transform:scaleX(1); } }

/* panel for the active phase */
.pm-panels{ margin-top:clamp(20px,2.4vw,28px); min-height:7.5em; }
.pm-panel{
  display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:start;
  max-width:68ch;
}
.pm-panel[hidden]{ display:none; }
.pm-panel.is-entering{ animation:pmPanelIn 0.26s var(--ease-out); }
@keyframes pmPanelIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.pm-panel-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:50%;
  border:1px solid rgba(175,140,84,0.45);
  background:rgba(175,140,84,0.08);
  color:var(--gold-light);
}
.pm-panel-icon svg{ width:22px; height:22px; }
.pm-panel-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.25rem,2vw,1.5rem);
  line-height:1.2;
  color:var(--cream);
  margin-bottom:8px;
}
.pm-panel p{ font-size:16px; line-height:1.6; color:var(--text-on-dark-soft); font-weight:300; }

/* no script: show every phase, no tab chrome needed */
html:not(.js-ready) .pm-panel[hidden]{ display:grid; margin-top:24px; }

/* phones and small tablets: the four phases as one readable list */
@media (max-width: 720px){
  .pm-tabs{ display:none; }
  .pm-panels{ min-height:0; }
  .pm-panel[hidden]{ display:grid; }
  .pm-panel{ padding:22px 0; border-top:1px solid rgba(247,243,232,0.12); }
  .pm-panel:first-child{ border-top:0; padding-top:0; }
  .pm-panel.is-entering{ animation:none; }
}
@media (prefers-reduced-motion: reduce){
  .pm-explorer.is-auto .pm-tab[aria-selected="true"] .pm-tab-progress{ animation:none; transform:scaleX(1); }
  .pm-panel.is-entering{ animation:none; }
}

/* ---- CTA row (unchanged content, now sitting on the full-bleed photo) ---- */
.pm-cta-wrap{
  position:relative; z-index:1;
  padding:clamp(24px,4vw,40px) var(--edge) var(--section-pad);
}
.pm-cta-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.pm-cta-card{
  border:1px solid rgba(247,243,232,0.16);
  border-radius:10px;
  padding:clamp(26px,3vw,32px);
  display:flex; flex-direction:column;
  background:rgba(var(--scrim),0.28);
  transition:transform 0.3s ease, border-color 0.3s ease;
}
.pm-cta-card:hover{ border-color:rgba(175,140,84,0.4); }
.pm-cta-card h3{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.1rem;
  color:var(--cream);
  margin-bottom:10px;
}
.pm-cta-card p{
  font-size:0.88rem;
  line-height:1.55;
  color:var(--text-on-dark-soft);
  font-weight:300;
  margin-bottom:22px;
  flex:1;
}
.pm-cta-card .btn{ align-self:flex-start; min-height:44px; }
/* the WhatsApp card has no copy: let the button anchor bottom-left like its neighbours */
.pm-cta-card--whatsapp{ align-items:flex-start !important; justify-content:flex-end !important; }
.pm-cta-card--whatsapp{
  align-items:center; justify-content:center;
  background:rgba(247,243,232,0.1);
}

@media (max-width: 980px){
  .pm-cta-grid{ grid-template-columns:1fr; }
}

/* =====================================================
   QUICK LINKS — full-screen scrolling blocks (Apple-style)
   ===================================================== */
.ql-section{ position:relative; }
.ql-block{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.ql-block:not(:last-child)::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:3px;
  background:rgba(247,243,232,0.4);
  z-index:3;
}
.ql-bg-wrap{
  position:absolute;
  inset:-24px;
  overflow:hidden;
}
.ql-bg{
  display:block;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  transform:translate(0,0);
  transition:transform 0.7s cubic-bezier(.16,1,.3,1);
  will-change:transform;
}
/* weighted to the lower-left, where the copy now sits; the photo stays open top-right */
.ql-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(var(--scrim),0.35) 0%, rgba(var(--scrim),0.12) 38%, rgba(var(--scrim),0.82) 100%),
    linear-gradient(90deg, rgba(var(--scrim),0.5) 0%, rgba(var(--scrim),0) 62%);
}
.ql-content{
  position:relative; z-index:2;
  align-self:flex-end;
  width:100%; max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--edge) clamp(72px,11vh,120px);
  text-align:left;
}
.ql-content > *{ max-width:34rem; }
.ql-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.4rem,5vw,3.6rem);
  color:var(--cream);
  line-height:1.1;
  margin-bottom:18px;
}
.ql-text{
  font-size:1.1rem;
  line-height:1.6;
  color:var(--text-on-dark);
  font-weight:300;
  margin-bottom:32px;
}
.ql-highlight{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:600;
  font-size:1.55em;
  line-height:1;
  color:var(--gold-light);
  display:inline-block;
  vertical-align:-0.1em;
}

.ql-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  flex-wrap:wrap;
}
.btn-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 30px;
  border-radius:999px;
  font-family:var(--font-body);
  font-size:0.95rem;
  font-weight:500;
  cursor:pointer;
  transition:transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space:nowrap;
}
.btn-pill--solid{
  background:var(--gold);
  color:var(--ink);
  border:1px solid var(--gold);
}
.btn-pill--solid:hover, .btn-pill--solid:focus-visible{ background:var(--gold-light); transform:translateY(-2px); }
.btn-pill--outline{
  background:transparent;
  color:var(--cream);
  border:1px solid rgba(247,243,232,0.6);
}
.btn-pill--outline:hover, .btn-pill--outline:focus-visible{ border-color:var(--gold); color:var(--gold-light); transform:translateY(-2px); }

@media (max-width: 640px){
  .ql-block{ min-height:88vh; }
  .btn-pill{ padding:13px 24px; font-size:0.9rem; }
}

/* =====================================================
   PROYECTOS / MODELO — cross-page teaser link
   ===================================================== */
.proyectos-model-teaser{
  margin-top:clamp(56px,7vw,80px);
  padding-top:clamp(32px,4vw,40px);
  border-top:1px solid rgba(247,243,232,0.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.proyectos-model-teaser p{
  font-size:0.98rem;
  color:var(--text-on-dark-soft);
  font-weight:300;
  margin:0;
}
.model-block--standalone{
  margin-top:0;
  padding-top:0;
  border-top:none;
}

/* =====================================================
   FOOTER — recenter wordmark (letter-spacing optical fix)
   ===================================================== */
.footer-word{ margin-left:0.09em; }

/* =====================================================
   INTERACTION & MOTION — site-wide consistency
   One focus ring, one press, one error style, one
   reduced-motion behaviour, mobile-tuned reveals.
   ===================================================== */
:root{
  --error: #E7A98F;        /* warm terracotta, legible on every dark form surface */
}
::selection{ background:rgba(175,140,84,0.35); color:inherit; }

/* Focus ring: gold-ink on light surfaces, gold-light on dark ones */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible{
  outline:2px solid var(--gold-ink); outline-offset:3px;
}
:is(.site-header, .main-nav, .hero, .detail-hero, .section--dark, .ql-section,
    .why-video-section, .pd-banner, .pm-cinematic, .modal-box, .site-footer, .whatsapp-float) :focus-visible,
.whatsapp-float:focus-visible{
  outline-color:var(--gold-light);
}
.nav-dropdown-panel :focus-visible{ outline-color:var(--gold-ink); }
/* Form fields: the gold border is the focus signal, plus a soft ring for keyboard users */
.form-row :is(input,select,textarea):focus-visible,
.villa-form :is(input,textarea):focus-visible{
  outline:none; border-color:var(--gold-light);
  box-shadow:0 0 0 3px rgba(203,173,121,0.22);
}
.villa-checkbox input:focus-visible{ outline:2px solid var(--gold-light); outline-offset:2px; }

/* Hover affordances the original pass missed */
.nav-toggle span{ transition:transform 0.22s var(--ease-out), opacity 0.18s ease, background-color 0.2s ease; }
.nav-toggle:hover span, .nav-toggle:focus-visible span{ background:var(--gold-light); }
.hero-badge:focus-visible{ border-color:var(--gold); color:var(--gold-light); }

/* Press feedback: every button settles under the finger */
.btn:active, .btn-pill:active, .modal-close:active, .villa-form-submit:active{
  transform:scale(0.97); transition-duration:0.1s;
}

/* Form validation */
.field-wrap{ display:flex; flex-direction:column; min-width:0; }
.field-error{
  display:block;
  margin-top:8px;
  padding-left:4px;
  font-size:0.8rem;
  line-height:1.4;
  color:var(--error);
}
.villa-form .field-error{ padding-left:0; }
.villa-form .villa-checkbox + .field-error{ margin-top:-4px; padding-left:30px; }
.form-row .field-error{ padding-left:0; }
.form-row :is(input,select,textarea).is-invalid,
.villa-form :is(input,textarea).is-invalid{
  border-color:var(--error);
  background:rgba(231,169,143,0.06);
}
.villa-checkbox input.is-invalid{ outline:1px solid var(--error); outline-offset:2px; }

/* Mobile: reveals travel less and cascade faster so they feel native, not scaled */
@media (max-width: 720px){
  html.js-ready .reveal{
    transform:translateY(12px);
    transition-duration:0.45s;
    transition-delay:calc(var(--reveal-delay, 0ms) * 0.6);
  }
  /* quick-link blocks: copy sits on busy photos — deepen the scrim behind it */
  .ql-scrim{
    background:linear-gradient(180deg, rgba(var(--scrim),0.5) 0%, rgba(var(--scrim),0.55) 40%, rgba(var(--scrim),0.82) 100%);
  }
}

/* Reveal hint stays only while elements are actually waiting */
html.js-ready .reveal.is-visible{ will-change:auto; }

/* Reduced motion: no travel, no zoom, no auto-play — state changes still read */
@media (prefers-reduced-motion: reduce){
  html.js-ready .reveal{ transform:none; transition:opacity 0.3s linear; transition-delay:0ms; }
  .btn:hover, .btn:focus-visible, .btn:active,
  .btn-pill:hover, .btn-pill:focus-visible, .btn-pill:active,
  a.portfolio-card:hover, a.portfolio-card:focus-visible,
  .whatsapp-float:hover, .hero-badge:hover,
  .about-image:hover img, .gallery-item:hover img,
  a.portfolio-card:hover .portfolio-card-image img,
  a.portfolio-card:focus-visible .portfolio-card-image img{ transform:none !important; }
  .ql-bg, .hero-slides{ transform:none !important; transition:none; }
  .roi-bar{ transition:none; }
  .modal-box{ transform:none; transition:none; }
  .nav-dropdown-panel{ transition:opacity 0.2s linear, visibility 0.2s; }
  .hero-slide{ transition:none; }
  /* Phases: still image, content already in place, line fully drawn */
  .phase-media img{ animation:none; transform:none; }
  html.js-ready .phase:not(.is-in) :is(.phase-num, .phase-title, .phase-desc){ opacity:1; transform:none; }
  .phase-num{ color:var(--gold-light); -webkit-text-stroke-color:var(--gold-light); transition:none; }
  .phase-line-fill{ transform:none; }
  .phase-indicator, .phase-indicator-current.is-ticking{ animation:none; transition:none; }
}

/* Mobile hero: "DESARROLLAMOS." is the longest word — size the shout to fit it, never clip */
@media (max-width: 560px){
  .hero-title{ font-size:8.2vw; line-height:1.02; }
}

/* Touch: :hover sticks after a tap, so hover travel is for real pointers only */
@media (hover: none){
  .btn:hover, .btn-pill:hover, .whatsapp-float:hover, .hero-badge:hover,
  a.portfolio-card:hover, a.portfolio-card:hover .portfolio-card-image img,
  .gallery-item:hover img{ transform:none; }
}

/* Project heroes: the sale-status badge sits in the text stack, on the edge line */
.detail-hero .portfolio-badge{ position:static; align-self:flex-start; }
.amenities-grid--villas .amenity-card:nth-child(1){
  background:
    linear-gradient(180deg, rgba(var(--scrim),0.2) 0%, rgba(var(--scrim),0.55) 42%, rgba(var(--scrim),0.92) 100%),
    url('assets/gallery/g08-terraza.webp') center / cover;
}

/* =====================================================
   GALLERY — hover zoom (fine pointers) + lightbox
   ===================================================== */
.gallery-item{ cursor:zoom-in; }
.gallery-item:focus-visible{ outline:2px solid var(--gold-ink); outline-offset:3px; }
.gallery-item img{ transition:transform 0.6s var(--ease-out); }
@media (hover: hover) and (pointer: fine){
  .gallery-item:hover img{ transform:scale(1.04); }
}

.lightbox{
  position:fixed; inset:0; z-index:1100;
  display:grid;
  grid-template-columns:auto 1fr auto;
  grid-template-rows:1fr auto;
  align-items:center;
  background:rgba(var(--scrim),0.97);
  opacity:0; visibility:hidden;
  transition:opacity 0.18s ease, visibility 0.18s;
}
.lightbox.is-open{ opacity:1; visibility:visible; transition:opacity 0.3s var(--ease-out), visibility 0s; }
.lightbox-stage{
  grid-column:2; grid-row:1;
  height:100%;
  display:flex; align-items:center; justify-content:center;
  padding:clamp(56px,7vh,80px) 0 12px;
  touch-action:pan-y;
  overflow:hidden;
}
.lightbox-img{
  max-width:100%; max-height:100%;
  object-fit:contain;
  border-radius:3px;
  box-shadow:0 30px 70px rgba(0,0,0,0.45);
  transform:scale(0.97);
  transition:opacity 0.2s ease, transform 0.3s var(--ease-out);
  user-select:none; -webkit-user-drag:none;
}
.lightbox.is-open .lightbox-img{ transform:none; }
/* swap: old image dims out, new one settles in */
.lightbox-img.is-swapping{ opacity:0; transform:scale(0.985); transition-duration:0.12s; }
.lightbox-caption{
  grid-column:1 / -1; grid-row:2;
  display:flex; justify-content:center; gap:18px; align-items:baseline;
  padding:14px var(--edge) calc(20px + env(safe-area-inset-bottom, 0px));
  color:var(--text-on-dark-soft);
  font-size:14px; line-height:1.4; text-align:center;
}
.lightbox-count{ font-variant-numeric:tabular-nums; font-size:12.5px; color:var(--gold-light); white-space:nowrap; }
.lightbox-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:50%;
  background:rgba(247,243,232,0.08);
  border:1px solid rgba(247,243,232,0.16);
  color:var(--cream);
  cursor:pointer;
  transition:background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.lightbox-btn svg{ width:20px; height:20px; }
.lightbox-btn:hover, .lightbox-btn:focus-visible{ background:rgba(247,243,232,0.16); border-color:var(--gold); }
.lightbox-btn:active{ transform:scale(0.95); transition-duration:0.1s; }
.lightbox-btn:focus-visible{ outline:2px solid var(--gold-light); outline-offset:3px; }
.lightbox-prev{ grid-column:1; grid-row:1; margin:0 clamp(12px,2.5vw,32px); }
.lightbox-next{ grid-column:3; grid-row:1; margin:0 clamp(12px,2.5vw,32px); }
.lightbox-close{ position:absolute; top:calc(16px + env(safe-area-inset-top, 0px)); right:var(--edge); z-index:2; }
.lightbox[data-single] .lightbox-prev, .lightbox[data-single] .lightbox-next{ visibility:hidden; }
@media (max-width: 720px){
  /* phone: the photo takes the full width; arrows sit under it, swipe does the rest */
  .lightbox{ grid-template-columns:1fr 1fr; grid-template-rows:1fr auto auto; }
  .lightbox-stage{ grid-column:1 / -1; padding:64px 0 8px; }
  .lightbox-prev, .lightbox-next{ grid-row:2; margin:6px 0 0; }
  .lightbox-prev{ grid-column:1; justify-self:end; margin-right:10px; }
  .lightbox-next{ grid-column:2; justify-self:start; margin-left:10px; }
  .lightbox-caption{ grid-row:3; flex-direction:column; gap:4px; }
}
@media (prefers-reduced-motion: reduce){
  .gallery-item img, .gallery-item:hover img{ transform:none !important; transition:none; }
  .lightbox-img, .lightbox.is-open .lightbox-img, .lightbox-img.is-swapping{ transform:none; transition:opacity 0.15s linear; }
}

/* A gallery with a single image (renders still coming) shows it as one wide plate */
.gallery-grid:has(> .gallery-item:only-child) .gallery-item{ grid-column:1 / -1; aspect-ratio:21 / 9; }
@media (max-width: 560px){
  .gallery-grid:has(> .gallery-item:only-child) .gallery-item{ aspect-ratio:4 / 3; }
}
.detail-hero-meta{ text-wrap:balance; }

/* Edge bars: tooltips open inward so they never leave the card on narrow screens */
.roi-bar-col:first-child .roi-bar-tooltip{ left:0; transform:translateY(4px); }
.roi-bar-col:first-child:hover .roi-bar-tooltip{ transform:none; }
.roi-bar-col:last-child .roi-bar-tooltip{ left:auto; right:0; transform:translateY(4px); }
.roi-bar-col:last-child:hover .roi-bar-tooltip{ transform:none; }

/* Back link on every inner page: small, on the content's own left edge, colour from its ground */
.page-back{
  display:inline-flex; align-items:center; gap:6px;
  min-height:44px; margin:-10px 0 14px;
  font-size:14px; font-weight:400;
  color:var(--text-on-light-soft);
  transition:color 0.2s ease;
}
.page-back:hover, .page-back:focus-visible{ color:var(--gold-ink); }
:is(.section--dark, .pd-banner, .why-video-section, .pm-cinematic, .hero) .page-back{ color:var(--text-on-dark-soft); }
:is(.section--dark, .pd-banner, .why-video-section, .pm-cinematic, .hero) .page-back:hover,
:is(.section--dark, .pd-banner, .why-video-section, .pm-cinematic, .hero) .page-back:focus-visible{ color:var(--gold-light); }
/* centred hero (¿Por qué Lombok?) keeps the link on the text's left edge */
.why-video-content .page-back{ display:flex; width:max-content; }

/* Inner pages: the first block starts below the fixed header (90px), then its own breathing room.
   Photo heroes (home, project heroes, Desarrolla banner) manage this themselves. */
main > section:first-child:not(.hero):not(.detail-hero):not(.pd-section):not(.pm-cinematic){
  padding-top:calc(90px + clamp(28px,4vw,48px));
}
main > section.pm-cinematic:first-child .pm-cinematic-head{ padding-top:calc(90px + clamp(28px,4vw,48px)); }
.why-video-content .eyebrow{ text-align:center; margin:0 auto 14px; }
.why-cta{ display:flex; justify-content:center; flex-wrap:wrap; gap:14px; margin-top:clamp(44px,5vw,64px); }

/* =====================================================
   NOSOTROS — refinement (Taste pass)
   ===================================================== */
/* caption sits under the photo, not over it */
.why-photo{ border-radius:10px; overflow:visible; }
.why-photo img{ border-radius:10px; }
.why-photo figcaption{
  position:static; background:none; padding:12px 0 0;
  font-family:var(--font-body); font-size:12.5px; letter-spacing:0;
  color:var(--text-on-light-soft);
}

/* how we work: 2x2 ruled pairs, readable body */
.how-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:clamp(32px,5vw,72px); row-gap:clamp(28px,3.5vw,40px); max-width:960px; }
.how-grid > div{ padding-top:18px; border-top:1px solid rgba(35,41,31,0.14); }
.how-grid strong{ font-size:1.3rem; font-weight:600; }
.how-grid p{ font-size:16px; line-height:1.6; max-width:46ch; }

/* team: two real people at a size you can read; the empty placeholder slot is not shown */
.team-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); max-width:920px; gap:clamp(28px,4vw,56px); }
.team-card{ display:grid; grid-template-columns:minmax(0,0.85fr) minmax(0,1fr); column-gap:clamp(18px,2vw,28px); align-items:start; }
.team-photo{ grid-row:1 / 5; border-radius:10px; margin-bottom:0; }
.team-photo--placeholder span{ font-size:12.5px; }
.team-name{ font-size:1.3rem; margin-bottom:4px; }
.team-role{ font-size:14px; margin-bottom:12px; }
.team-bio{ font-size:15px; line-height:1.6; }
@media (max-width: 900px){
  .team-grid{ grid-template-columns:1fr; max-width:560px; }
}
@media (max-width: 560px){
  .how-grid{ grid-template-columns:1fr; }
  .team-card{ grid-template-columns:1fr; }
  .team-photo{ grid-row:auto; max-width:300px; margin-bottom:16px; }
}
.team-card.team-card--empty{ display:none; }
@media (max-width: 560px){ .team-photo.team-photo--placeholder{ max-width:220px; aspect-ratio:4/3; } }

/* Nosotros opens on "Cómo trabajamos": no rule above it, page title size */
.how-we-work--lead{ border-top:0; padding-top:0; }
.how-we-work--lead .page-back{ display:flex; width:max-content; margin-bottom:22px; }
.how-we-work--lead .section-title{ margin-bottom:clamp(32px,4vw,44px); }

/* Garyel, parent partner: copy + logo plate, then the shared stat row and a quiet outbound link */
.garyel{
  margin-top:clamp(72px,9vw,110px);
  padding-top:clamp(48px,6vw,70px);
  border-top:1px solid rgba(26,33,31,0.14);
}
.garyel-grid{
  display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,0.7fr);
  gap:clamp(40px,6vw,80px); align-items:center;
  max-width:1040px;
}
.garyel-copy .section-desc + .section-desc{ margin-top:16px; }
.garyel-logo{ margin:0; width:100%; max-width:340px; justify-self:end; }
.garyel-logo img{ display:block; width:100%; height:auto; border-radius:10px; }
.garyel-stats{ max-width:1040px; }
.garyel-link{
  display:inline-flex; align-items:center; gap:10px;
  margin-top:clamp(28px,3.5vw,36px);
  color:var(--jungle);
}
.garyel-link-mark{ width:28px; height:auto; flex:none; }
@media (max-width: 900px){
  .garyel-grid{ grid-template-columns:1fr; }
  .garyel-logo{ justify-self:start; max-width:280px; }
}

/* =====================================================
   CONTACTO — refinement (Taste pass)
   ===================================================== */
/* details read as a ruled ledger, matching the editorial lists elsewhere */
.contact-details{ gap:0; }
.contact-details li{ padding-block:18px; border-top:1px solid rgba(247,243,232,0.12); gap:6px; }
.contact-details li:last-child{ border-bottom:1px solid rgba(247,243,232,0.12); }

/* form: pair the short fields so the conversion object reads at a glance */
@media (min-width: 600px){
  .contact-form{ display:grid; grid-template-columns:1fr 1fr; column-gap:20px; row-gap:20px; align-content:start; }
  .contact-form .form-row:nth-last-of-type(1){ grid-column:1 / -1; }
  .contact-form .btn, .contact-form .form-note{ grid-column:1 / -1; }
  .contact-form .btn{ margin-top:4px; justify-self:start; }
}
.form-row input, .form-row select{ min-height:48px; }
.form-row textarea{ min-height:140px; resize:vertical; }
.contact-form .form-note{ margin-top:-6px; }
@media (max-width: 599px){
  .contact-form .btn{ align-self:stretch; justify-content:center; }
}

/* CONTACTO — motion pass (Emil): fields are touched many times, so feedback is quick and colour-only */
.form-row input, .form-row select, .form-row textarea{
  transition:border-color 160ms ease, background-color 160ms ease;
}
.form-row label{ transition:color 160ms ease; }
.form-row:focus-within label{ color:var(--gold-light); }
@media (hover:hover) and (pointer:fine){
  .form-row :is(input,select,textarea):not(:focus):not(.is-invalid):hover{ border-color:rgba(247,243,232,0.32); }
}
/* the note swaps text on submit: a short fade confirms the form heard the click */
.contact-form .form-note.is-updated{ animation:formNoteIn 220ms var(--ease-out); }
@keyframes formNoteIn{ from{ opacity:0; transform:translateY(4px); } }
@media (prefers-reduced-motion: reduce){
  .contact-form .form-note.is-updated{ animation:none; }
}

/* =====================================================
   ESTIMATES — quiet footnote under ROI figures + notice page
   ===================================================== */
.estimate-note{
  font-size:0.76rem;
  line-height:1.5;
  color:var(--text-on-light-soft);
  text-align:center;
}
.estimate-note--start{ text-align:left; }
.estimate-note--on-dark{ color:var(--text-on-dark-soft); }
.roi-stats-row > .estimate-note{ grid-column:1 / -1; margin-top:clamp(28px,3.5vw,40px); }
@media (max-width: 780px){ .roi-stats-row > .estimate-note{ margin-top:0; } } /* row gap already spaces it */
.roi-chart-note + .estimate-note{ margin-top:6px; }
.return-cards + .estimate-note{ margin-top:18px; }

.footer-links{ font-size:12.5px; margin-top:2px; }
.footer-links a{ color:inherit; text-decoration:underline; text-decoration-color:rgba(247,243,232,0.25); text-underline-offset:3px; transition:color 0.2s ease; }
.footer-links a:hover, .footer-links a:focus-visible{ color:var(--gold-light); }

.notice-page .page-back{ display:flex; width:max-content; margin-bottom:22px; }
.notice-page .section-desc{ max-width:62ch; margin-bottom:16px; }
.notice-page .notice-date{ font-size:0.88rem; color:var(--text-on-light-soft); margin-top:8px; }

/* =====================================================
   LEAD FORMS — spam trap, send states, privacy link
   ===================================================== */
.hp-field{ position:absolute !important; left:-9999px; width:1px; height:1px; opacity:0; pointer-events:none; }
:is(.form-note, .villa-form-note) a,
.villa-checkbox a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
:is(.form-note, .villa-form-note)[data-state="ok"]{ color:var(--gold-light); }
:is(.form-note, .villa-form-note)[data-state="error"]{ color:var(--error); }
form [type="submit"]:disabled{ opacity:0.6; cursor:progress; }
.legal-page .notice-date{ margin:-8px 0 clamp(28px,4vw,40px); }
.legal-h{ font-family:var(--font-display); font-weight:600; font-size:1.2rem; margin:32px 0 10px; }
.legal-page .section-desc a, .notice-page .section-desc a{ color:var(--gold-ink); text-decoration:underline; text-underline-offset:2px; }
.footer-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 10px; }
.footer-links span{ opacity:0.4; }

/* Map placeholder: Google Maps loads only after the visitor asks for it */
.location-map{ background:var(--surface-dark); }
.map-consent{
  height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; padding:24px; text-align:center;
  color:var(--text-on-dark-soft);
  background:
    radial-gradient(circle at 50% 42%, rgba(175,140,84,0.16), transparent 60%),
    repeating-linear-gradient(0deg, rgba(247,243,232,0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(247,243,232,0.04) 0 1px, transparent 1px 48px);
}
.map-consent-pin{ width:34px; height:34px; color:var(--gold-light); }
.map-consent-text{ font-size:0.78rem; line-height:1.5; max-width:34ch; }
.map-consent-text a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
.map-consent-text a:hover, .map-consent-text a:focus-visible{ color:var(--gold-light); }

/* Mobile menu: the two bars turn into an X while the menu is open */
.nav-toggle[aria-expanded="true"] span:first-child{ transform:translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child{ transform:translateY(-3.75px) rotate(-45deg); }
