/* ═══════════════════════════════════════════════════
   LAS GÜERAS DE LA SELVA — Main Stylesheet
   Rebuilt for full-bleed image system
═══════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── TOKENS ── */
:root {
  --black:      #0A0A09;
  --olive:      #5C5A3E;
  --olive-dark: #3A3828;
  --taupe:      #8C8060;
  --gold:       #C9A96E;
  --gold-light: #E8D5B0;
  --cream:      #F5F0E8;
  --text:       #1A1A18;
  --text-soft:  rgba(26,26,24,0.6);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--black); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ── */
.display { font-family: var(--font-display); font-size: clamp(36px,5vw,64px); font-weight: 300; font-style: italic; line-height: 1.05; letter-spacing: -0.02em; }
.headline { font-family: var(--font-display); font-size: clamp(28px,3.5vw,44px); font-weight: 300; font-style: italic; line-height: 1.1; letter-spacing: -0.01em; }
.subhead { font-family: var(--font-display); font-size: clamp(22px,2.5vw,32px); font-weight: 300; font-style: italic; line-height: 1.15; }
.body-lg { font-size: clamp(17px,1.4vw,20px); line-height: 1.75; color: rgba(26,26,24,0.75); }
.body { font-size: 15px; line-height: 1.8; color: rgba(26,26,24,0.65); }
.body-sm { font-size: 13px; line-height: 1.7; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 72px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 72px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--black); }
.section-cream { background: var(--cream); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.rule { height: 0.5px; background: rgba(26,26,24,0.1); margin: 0; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 84px;
  background: rgba(10,10,9,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(201,169,110,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 72px; width: auto; }
.nav-logo-text { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.55); transition: color 0.2s; }
.nav-logo:hover .nav-logo-text { color: var(--gold); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.55); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-lang { display: flex; border: 0.5px solid rgba(201,169,110,0.25); border-radius: 2px; overflow: hidden; }
.nav-lang button { font-size: 9px; letter-spacing: 0.12em; padding: 5px 8px; color: rgba(245,240,232,0.4); transition: background 0.2s, color 0.2s; }
.nav-lang button:hover, .nav-lang button.active { background: var(--gold); color: var(--black); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 1px; background: rgba(245,240,232,0.6); transition: all 0.3s; }
.nav-mobile { display: none; position: fixed; top: 84px; left: 0; right: 0; z-index: 99; background: rgba(10,10,9,0.98); backdrop-filter: blur(12px); flex-direction: column; padding: 24px 32px 32px; gap: 20px; border-bottom: 0.5px solid rgba(201,169,110,0.1); }
.nav-mobile a { font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,232,0.55); }
.nav-mobile.open { display: flex; }

/* ── ══════════════════════════════════════════
   FULL BLEED HERO SYSTEM (fh-*)
   Works with any image size — CSS does the work
══════════════════════════════════════════ ── */
.fh-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  margin-top: 84px; /* nav height */
}

.fh-text {
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px 64px;
}

.fh-img {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

/* THE KEY: image always fills container perfectly */
.fh-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gradient blending left edge */
.fh-img::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(to right, rgba(10,10,9,0.95) 0%, rgba(10,10,9,0.5) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Placeholder when no image */
.fh-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A1A14 0%, #2A2820 40%, #3A3828 100%);
}

.fh-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 60% 40%, rgba(201,169,110,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 18px 28px at 20% 30%, rgba(201,169,110,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 24px 18px at 70% 65%, rgba(201,169,110,0.06) 0%, transparent 70%);
}

/* FULL-BLEED VARIANT: photo full width, text overlaid at the bottom
   with a gradient, at every breakpoint (not just mobile) */
.fh-section.fh-full {
  display: flex;
  align-items: flex-end;
  position: relative;
}
.fh-section.fh-full .fh-img {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: 0;
}
.fh-section.fh-full .fh-img::before { display: none; }
.fh-section.fh-full .fh-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10,10,9,0.97) 0%,
    rgba(10,10,9,0.85) 35%,
    rgba(10,10,9,0.4) 65%,
    rgba(10,10,9,0.1) 100%
  );
}
.fh-section.fh-full .fh-text {
  position: relative;
  z-index: 2;
  background: transparent;
  width: 100%;
  padding: 0 72px 64px;
}

/* MOBILE: photo top, text overlaid with gradient */
@media (max-width: 768px) {
  .fh-section {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 100svh;
  }

  .fh-img {
    position: absolute;
    inset: 0;
    min-height: 100svh;
    z-index: 0;
  }

  .fh-img::before { display: none; }

  .fh-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(10,10,9,0.97) 0%,
      rgba(10,10,9,0.85) 35%,
      rgba(10,10,9,0.4) 65%,
      rgba(10,10,9,0.1) 100%
    );
    z-index: 1;
  }

  .fh-text {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 120px 28px 56px;
    justify-content: flex-end;
    min-height: 100svh;
  }

  .fh-section.fh-full .fh-text { padding: 0 28px 56px; }
}

/* ── PAGE HERO TEXT ELEMENTS ── */
.page-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero-eyebrow::before { content: ''; width: 24px; height: 0.5px; background: var(--gold); }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.page-hero-title em { color: var(--gold); font-style: italic; }
.page-hero-sub {
  font-size: 15px;
  color: rgba(245,240,232,0.5);
  line-height: 1.75;
  max-width: 440px;
}

/* ── HOMEPAGE HERO ── */
.hero { position: relative; margin-top: 84px; min-height: 100vh; background: var(--black); display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; filter: brightness(0.95); }
.hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(10,10,9,0.97) 0%, rgba(10,10,9,0.88) 28%, rgba(10,10,9,0.4) 58%, rgba(10,10,9,0.08) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 72px; }
.hero-text { max-width: 720px; padding-bottom: 96px; }
.hero-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); opacity: 0.7; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; width: 24px; height: 0.5px; background: var(--gold); }
.hero-title { font-family: var(--font-display); font-size: clamp(36px,5.5vw,72px); font-weight: 300; font-style: italic; color: var(--cream); line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 32px; }
.hero-title em { color: var(--gold); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── MANIFESTO ── */
.manifesto { padding: 56px 0; text-align: center; position: relative; background: var(--olive-dark); overflow: hidden; }
.manifesto::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,169,110,0.05) 0%, transparent 70%); }
.manifesto-es { font-family: var(--font-display); font-size: clamp(20px,2.5vw,32px); font-style: italic; font-weight: 300; color: rgba(245,240,232,0.75); letter-spacing: 0.01em; position: relative; }

/* ── ══════════════════════════════════════════
   THE LIVING FIELD — Framework section
══════════════════════════════════════════ ── */
.lf-section { background: var(--black); padding: 96px 0; }
.lf-intro { text-align: center; margin-bottom: 64px; }
.lf-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(201,169,110,0.1);
  border: 0.5px solid rgba(201,169,110,0.1);
}
.lf-pillar {
  background: var(--black);
  padding: 40px 32px 48px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.lf-pillar:hover { background: rgba(201,169,110,0.04); }
.lf-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}
.lf-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 4px;
}
.lf-name-es {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
}
.lf-rule { width: 24px; height: 0.5px; background: var(--gold); margin-bottom: 20px; opacity: 0.6; }
.lf-desc { font-size: 13px; color: rgba(245,240,232,0.4); line-height: 1.85; flex: 1; }
@media (max-width: 900px) { .lf-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lf-pillars { grid-template-columns: 1fr; } .lf-pillar { padding: 32px 24px; } }

/* ── SECTION EYEBROW ── */
.section-eyebrow { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--taupe); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::after { content: ''; width: 20px; height: 0.5px; background: currentColor; }
.section-eyebrow.light { color: rgba(201,169,110,0.5); }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--black); background: var(--gold); padding: 14px 32px; border-radius: 2px; transition: background 0.2s, transform 0.15s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: rgba(245,240,232,0.7); border: 0.5px solid rgba(245,240,232,0.3); padding: 14px 32px; border-radius: 2px; transition: border-color 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-text { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); transition: gap 0.2s; }
.btn-text:hover { gap: 14px; }
.btn-text::after { content: '→'; }

/* ── DOOR CARDS ── */
.door-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.door { display: flex; flex-direction: column; gap: 12px; padding: 40px 36px 36px; text-decoration: none; transition: background 0.25s, border-color 0.25s; }
.door:hover { background: rgba(201,169,110,0.06); }
.door-num { font-family: var(--font-display); font-size: 48px; font-weight: 300; color: var(--gold); line-height: 1; }
.door-title { font-family: var(--font-display); font-size: 22px; font-weight: 300; font-style: italic; line-height: 1.2; }
.door-body { font-size: 13px; line-height: 1.75; flex: 1; }
.door-cta { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.door:hover .door-cta { gap: 12px; }
.door-cta::after { content: '→'; }

/* ── PULL QUOTE ── */
.pull-quote { border-left: 2px solid var(--gold); padding: 8px 0 8px 28px; margin: 40px 0; }
.pull-quote p { font-family: var(--font-display); font-size: clamp(20px,2.5vw,28px); font-weight: 300; font-style: italic; color: var(--text); line-height: 1.4; }
.pull-quote p.on-dark { color: rgba(245,240,232,0.65); }

/* ── STEP LIST ── */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 32px; padding: 32px 0; border-bottom: 0.5px solid rgba(26,26,24,0.08); }
.step-num { font-family: var(--font-display); font-size: 13px; font-weight: 300; color: var(--gold); letter-spacing: 0.1em; flex-shrink: 0; padding-top: 3px; width: 28px; }
.step-text { font-size: 15px; color: rgba(26,26,24,0.7); line-height: 1.8; }
.step-list.on-dark .step-text { color: rgba(245,240,232,0.7); }
.step-list.on-dark .step-text strong { color: var(--cream); }

/* ── CONTENT LIST ── */
.content-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.content-list li { font-size: 14px; color: rgba(26,26,24,0.65); padding: 12px 0 12px 20px; border-bottom: 0.5px solid rgba(26,26,24,0.07); position: relative; line-height: 1.6; }
.content-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 14px; }
.content-list.on-dark li { color: rgba(245,240,232,0.45); border-color: rgba(245,240,232,0.06); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; }
.form-input, .form-select, .form-textarea { width: 100%; background: rgba(255,255,255,0.05); border: 0.5px solid rgba(245,240,232,0.15); border-radius: 2px; padding: 14px 18px; font-family: var(--font-body); font-size: 14px; color: var(--cream); transition: border-color 0.2s; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(245,240,232,0.2); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: rgba(201,169,110,0.5); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; }
.form-select option { background: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; background: var(--gold); color: var(--black); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 16px; border-radius: 2px; margin-top: 8px; transition: background 0.2s; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 500; }
.form-submit:hover { background: var(--gold-light); }
.form-confirm { display: none; text-align: center; padding: 24px; font-size: 14px; color: rgba(245,240,232,0.5); line-height: 1.7; }
.price-note-box { border: 0.5px solid rgba(201,169,110,0.3); border-radius: 4px; padding: 28px; margin: 32px 0; background: rgba(201,169,110,0.04); text-align: center; }
.price-main { font-family: var(--font-display); font-size: 48px; font-weight: 300; color: var(--cream); margin-bottom: 8px; }
.price-sub { font-size: 13px; color: rgba(245,240,232,0.4); line-height: 1.65; }

/* ── PRICE TABLE ── */
.price-table-wrap { overflow-x: auto; margin: 32px 0; border: 0.5px solid rgba(26,26,24,0.12); border-radius: 4px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { padding: 18px 22px; text-align: left; }
.price-table thead th { background: var(--black); color: var(--gold); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.price-table tbody tr { border-top: 0.5px solid rgba(26,26,24,0.08); }
.price-table tbody tr:nth-child(even) { background: rgba(26,26,24,0.025); }
.price-table tbody td:first-child { color: var(--text); font-weight: 500; font-size: 14px; }
.price-table tbody td { color: rgba(26,26,24,0.65); font-size: 14px; }
.price-table tbody td:nth-child(2), .price-table tbody td:nth-child(3) { font-family: var(--font-display); font-size: 18px; font-style: italic; color: var(--text); }

/* ── FOOTER ── */
.footer { background: var(--black); border-top: 0.5px solid rgba(201,169,110,0.12); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding: 64px 72px 48px; }
.footer-logo-img { height: 96px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-family: var(--font-display); font-size: 17px; font-style: italic; color: var(--cream); line-height: 1.65; max-width: 280px; }
.footer-heading { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(245,240,232,0.2); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: rgba(245,240,232,0.4); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 72px 28px; border-top: 0.5px solid rgba(245,240,232,0.05); flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 11px; color: rgba(245,240,232,0.2); letter-spacing: 0.05em; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-size: 11px; letter-spacing: 0.1em; color: rgba(245,240,232,0.3); transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 32px; }
  .section { padding: 72px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .door-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 48px 32px 32px; }
  .footer-bottom { padding: 16px 32px 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-inner { padding: 0 24px; }
  .hero-text { max-width: 100%; padding-bottom: 56px; }
  .lf-pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 20px; }
  .lf-pillars { grid-template-columns: 1fr; }
  .door-grid { grid-template-columns: 1fr; }
}

/* ── AS FEATURED IN / IMAGE LIGHTBOX ── */
.featured-magazine-link { display: inline-block; margin: 24px 0 16px; }
.featured-magazine-img {
  max-width: 360px;
  width: 100%;
  border-radius: 4px;
  display: block;
  cursor: zoom-in;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transition: opacity 0.2s;
}
.featured-magazine-img:hover { opacity: 0.85; }
.featured-magazine-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
}
.featured-magazine-cta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.featured-magazine-cta:hover { text-decoration: underline; }

.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  background: rgba(10,10,9,0.95);
  cursor: zoom-out;
}
.img-lightbox.open { display: flex; }
.img-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.img-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 201;
}
