/* ============================================================
   La Hacendera Fotográfica — landing page
   Sistema de diseño: Ayuntamiento de Rioseco de Soria × Nomad Studio Art
   ============================================================ */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('./assets/fonts/baloo2-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/lora-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/lora-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./assets/fonts/worksans.woff2') format('woff2');
}

:root {
  --sage-900: #2f3b22;
  --sage-700: #5c7440;
  --sage-500: #8ea86a;
  --sage-400: #a5bd85;
  --sage-300: #c3d3a9;
  --sage-150: #e2ead2;

  --terracotta-600: #a83f2f;
  --terracotta-500: #bf4b38;
  --terracotta-300: #e2a698;
  --terracotta-100: #f6e2dd;

  --ink-900: #1c1c17;
  --ink-500: #6b6858;
  --paper-000: #fbfaf5;
  --paper-100: #f4f1e6;
  --gold-500: #b9902f;

  --bg: var(--paper-000);
  --bg-raised: #ffffff;
  --bg-sunken: var(--paper-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --accent: var(--sage-700);
  --accent-strong: var(--sage-900);
  --accent-soft: var(--sage-150);
  --accent-line: var(--sage-300);
  --highlight: var(--terracotta-500);
  --highlight-soft: var(--terracotta-100);
  --border: #ddd6c2;

  --font-display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Work Sans', system-ui, sans-serif;

  --wrap: 74rem;
  --header-h: 70px;
  --wrap-pad: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a12;
    --bg-raised: #1f2318;
    --bg-sunken: #12140e;
    --text: #f1efe4;
    --text-muted: #b9b6a6;
    --accent: var(--sage-400);
    --accent-strong: #cfdcb5;
    --accent-soft: #29331f;
    --accent-line: #3d4a2b;
    --highlight: #e07257;
    --highlight-soft: #3a241d;
    --border: #33372a;
  }
}
:root[data-theme="dark"] {
  --bg: #171a12; --bg-raised: #1f2318; --bg-sunken: #12140e;
  --text: #f1efe4; --text-muted: #b9b6a6;
  --accent: var(--sage-400); --accent-strong: #cfdcb5;
  --accent-soft: #29331f; --accent-line: #3d4a2b;
  --highlight: #e07257; --highlight-soft: #3a241d; --border: #33372a;
}
:root[data-theme="light"] {
  --bg: var(--paper-000); --bg-raised: #ffffff; --bg-sunken: var(--paper-100);
  --text: var(--ink-900); --text-muted: var(--ink-500);
  --accent: var(--sage-700); --accent-strong: var(--sage-900);
  --accent-soft: var(--sage-150); --accent-line: var(--sage-300);
  --highlight: var(--terracotta-500); --highlight-soft: var(--terracotta-100);
  --border: #ddd6c2;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--wrap-pad); }
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: #fff;
  background: var(--accent); padding: 0.32rem 0.75rem; border-radius: 2px;
}
.eyebrow.on-dark { background: var(--highlight); }

.h-display {
  font-family: var(--font-display); font-weight: 800; color: var(--text);
  margin: 0.6rem 0 0; text-wrap: balance; line-height: 1.08;
}
.h-serif-italic {
  font-family: var(--font-serif); font-weight: 700; font-style: italic;
  color: var(--accent-strong); margin: 0;
}
.dek {
  font-family: var(--font-serif); font-style: italic; color: var(--text-muted);
  max-width: 40rem; margin: 0.6rem 0 0; font-size: 1.15rem;
}
.meta {
  font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-muted);
  margin-top: 1.5rem; line-height: 1.9;
}
.meta strong { color: var(--text); }

.circle-deco {
  position: absolute; border-radius: 50%; background: var(--sage-300);
  z-index: 0; pointer-events: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 245, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .site-header { background: rgba(23,26,18,0.92); }
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(23,26,18,0.92); }
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem; gap: 1rem;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.38rem;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand em { color: var(--highlight); font-style: normal; }
.nav-links {
  display: flex; gap: 0.9rem; font-family: var(--font-sans);
  font-weight: 600; font-size: 0.72rem; list-style: none; margin: 0; padding: 0;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.02em;
}
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color .15s; }
.nav-links a:hover { color: var(--highlight); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 1060px) { .nav-links { display: none; } }

/* ---------- mobile menu toggle + dropdown ---------- */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 2.4rem; height: 2.4rem; border: none; background: transparent;
  cursor: pointer; padding: 0; flex-shrink: 0; touch-action: manipulation;
}
.menu-toggle span {
  display: block; width: 1.5rem; height: 2px; background: var(--text);
  transition: transform .2s, opacity .2s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none; max-height: 0; overflow: hidden;
  visibility: hidden; pointer-events: none;
  background: var(--bg); border-bottom: 1px solid var(--border);
  transition: max-height .25s ease, visibility .25s;
}
.mobile-nav ul {
  list-style: none; margin: 0; padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.25rem;
  display: flex; flex-direction: column;
}
.mobile-nav a {
  display: block; padding: 0.75rem 0; font-family: var(--font-sans);
  font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border);
  touch-action: manipulation;
}
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav a:hover { color: var(--highlight); }
.mobile-nav a.mobile-nav-cta {
  margin-top: 0.75rem; text-align: center; background: var(--highlight); color: #fff;
  border-radius: 2px; font-weight: 700;
}
.mobile-nav a.mobile-nav-cta:hover { color: #fff; background: var(--terracotta-600); }
@media (max-width: 1060px) {
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  .mobile-nav.is-open { max-height: 30rem; visibility: visible; pointer-events: auto; }
}
@media (max-width: 640px) {
  .nav-right .btn-primary { display: none; }
}

.btn {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.8rem;
  padding: 0.65rem 1.3rem; border-radius: 2px; border: none; cursor: pointer;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.btn-primary { background: var(--highlight); color: #fff; }
.btn-primary:hover { background: var(--terracotta-600); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-strong); border: 1.5px solid var(--accent-line); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  min-height: min(88vh, 780px);
  background: var(--bg);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  position: relative; z-index: 1;
}
.hero-copy .h-display { font-size: clamp(2.6rem, 5.2vw, 4.1rem); }
.hero-copy .dek { font-size: 1.3rem; color: var(--highlight); font-weight: 600; margin-top: 0.9rem; }
.hero-footer {
  margin-top: 3rem; display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.hero-footer img.crest { height: 5.98rem; }
.hero-footer img.ns-word-img { height: 3.6rem; width: auto; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.35) saturate(1.4) hue-rotate(45deg) brightness(0.98);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 22rem; order: -1; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-footer { justify-content: center; }
}
@media (min-width: 861px) {
  .hero {
    height: calc(100vh - var(--header-h));
    grid-template-rows: minmax(0, 1fr);
  }
  #que-es {
    height: calc(100vh - var(--header-h));
    grid-template-rows: minmax(0, 1fr);
  }
  #que-es .split-media { min-height: 0; }
}

/* ---------- statement ---------- */
.statement {
  padding: clamp(4rem, 10vw, 7rem) 0; text-align: center;
}
.statement h2 {
  font-family: var(--font-display); font-weight: 800; color: var(--accent-strong);
  font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0; text-wrap: balance;
}
.statement p {
  font-family: var(--font-serif); font-style: italic; color: var(--text-muted);
  font-size: 1.2rem; max-width: 42rem; margin: 1.2rem auto 0;
}
.statement p.statement-answer {
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  color: var(--highlight); font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  max-width: 40rem; margin: 1.5rem auto 0; line-height: 1.55;
}

/* ---------- split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  gap: 0;
}
.split .split-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}
.split .split-media { position: relative; overflow: hidden; min-height: 26rem; }
.split .split-media img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse { grid-template-columns: 1fr 1fr; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-media { order: 1; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .split-copy, .split.reverse .split-copy { order: 2 !important; }
  .split .split-media, .split.reverse .split-media { order: 1 !important; min-height: 20rem; }
}

.split-copy h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0.3rem 0 0; line-height: 1.08; }
.split-copy .lede { margin-top: 1.1rem; max-width: 34rem; }
.split-copy .highlight-p {
  font-family: var(--font-serif); font-style: italic; color: var(--highlight);
  font-size: 1.15rem; max-width: 34rem; margin-top: 1.3rem;
}

/* ---------- pasado media (photo + circular inset) ---------- */
.media-inset { position: relative; }
.media-inset .inset-circle {
  position: absolute; bottom: -40px; right: 1.4rem;
  width: 8.5rem; height: 8.5rem; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--bg); box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.media-inset .inset-circle img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- steps (qué vamos a hacer) ---------- */
.steps-section { background: var(--bg-sunken); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
.step-card { position: relative; padding-left: 0; }
.step-num {
  background: var(--highlight); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 1.5rem; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.step-card h3 {
  font-family: var(--font-sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--accent-strong);
}
.step-card p { font-family: var(--font-serif); color: var(--text-muted); margin: 0; }
@media (max-width: 720px) {
  .steps-row { grid-template-columns: 1fr; gap: 2rem; }
  .step-card { text-align: center; }
  .step-num { margin-left: auto; margin-right: auto; }
}

/* ---------- presente / pasado feature blocks ---------- */
.feature {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.feature-grid {
  display: grid; grid-template-columns: 0.95fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.feature-grid.media-left { grid-template-columns: 1.1fr 0.95fr; }
.feature-grid.media-left .feature-media { order: 1; }
.feature-grid.media-left .feature-copy { order: 2; }
.phase-eyebrow {
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  color: var(--highlight); font-size: 1.2rem; margin: 0;
}
.feature-copy h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.5rem; margin: 0.4rem 0 1.2rem; color: var(--text);
}
.feature-copy ul { margin: 0; padding-left: 1.2rem; font-family: var(--font-serif); }
.feature-copy ul li { margin-bottom: 0.6rem; }
.feature-copy .note { font-family: var(--font-serif); color: var(--text-muted); font-size: 0.95rem; margin: 1rem 0; }
.feature-copy .note a { color: var(--highlight); font-weight: 700; text-decoration: none; }
.feature-copy > .btn { margin-bottom: 1.3rem; }
.video-embed-full {
  position: relative; width: 100%; padding-top: 56.25%; margin-top: 3rem;
  border-radius: 4px; overflow: hidden; background: #000;
}
.video-embed-full iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.feature-media { position: relative; border-radius: 4px; overflow: visible; aspect-ratio: 4 / 5; max-height: 32rem; }
.feature-media > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
@media (max-width: 860px) {
  .feature-grid, .feature-grid.media-left { grid-template-columns: 1fr; }
  .feature-grid.media-left .feature-media, .feature-grid.media-left .feature-copy { order: initial; }
  .feature-media {
    max-height: 26rem;
    margin-left: calc(-1 * var(--wrap-pad) + 0.75rem);
    margin-right: calc(-1 * var(--wrap-pad) + 0.75rem);
    width: auto;
  }
}

/* ---------- futuro overview ---------- */
.futuro-overview { background: var(--bg); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.workshop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem;
}
.workshop-card { padding: 0; }
.workshop-card .num { font-family: var(--font-sans); font-weight: 700; color: var(--highlight); font-size: 0.85rem; }
.workshop-card h4 {
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem; margin: 0.3rem 0 0.4rem;
}
.workshop-card p { font-family: var(--font-serif); color: var(--text-muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) { .workshop-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .workshop-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .futuro-overview { padding-bottom: calc(clamp(3.5rem, 8vw, 6rem) / 2); }
  .detail-section:first-of-type { padding-top: calc(clamp(1.25rem, 2.5vw, 2rem) / 2); }
}

/* ---------- futuro detail rows ---------- */
.detail-section { padding: clamp(1.25rem, 2.5vw, 2rem) 0; }
.detail-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.5rem; align-items: start;
}
.detail-row .divider { width: 1px; background: var(--text); opacity: 0.35; align-self: stretch; }
.detail-col h4 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.15rem; margin: 0 0 0.4rem; color: var(--highlight);
}
.detail-col .dek { font-size: 1.02rem; margin: 0 0 0.7rem; }
.detail-col .when {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-strong);
  margin: 0 0 1rem;
}
.detail-col .facts { font-family: var(--font-serif); margin: 0 0 1rem; color: var(--text); }
.detail-col .facts span { display: block; }
.detail-col p.body { font-family: var(--font-serif); color: var(--text); margin: 0 0 0.7rem; }
@media (max-width: 780px) {
  .detail-row { grid-template-columns: 1fr; }
  .detail-row .divider { display: none; }
}

/* ---------- quienes somos ---------- */
.about { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.about-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about-copy .ns-logo-img {
  width: min(320px, 60%); height: auto; margin: 0 0 1.2rem;
}
.about-copy p.lede { max-width: 34rem; }
.about-copy .stat {
  font-family: var(--font-serif); font-style: italic; color: var(--highlight);
  font-size: 1.15rem; margin-top: 1.4rem; max-width: 34rem;
}
.about-media { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 28rem; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-copy .ns-logo-img { margin-left: auto; margin-right: auto; }
  .about-media {
    aspect-ratio: 1 / 1; max-height: none;
    margin-left: calc(-1 * var(--wrap-pad) + 0.75rem);
    margin-right: calc(-1 * var(--wrap-pad) + 0.75rem);
    width: auto;
  }
}

/* ---------- datos importantes (dark) ---------- */
.schedule-section {
  background: var(--sage-900); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.schedule-section h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 1.5rem;
}
.schedule-notes { display: flex; flex-direction: column; gap: 0.9rem; max-width: 46rem; }
.schedule-notes p { margin: 0; font-family: var(--font-serif); opacity: 0.92; }
.schedule-notes strong { color: var(--sage-300); }
.schedule-notes a { color: var(--terracotta-300); text-decoration: none; font-weight: 700; }

/* ---------- programa completo ---------- */
.full-program { background: var(--bg-sunken); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.full-program h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 2.2rem;
}
.program-columns { column-count: 2; column-gap: clamp(2rem, 5vw, 4rem); }
.program-block { break-inside: avoid; margin-bottom: 2rem; }
.program-block h3 {
  font-family: var(--font-sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.85rem; color: var(--accent-strong);
  margin: 0 0 0.7rem;
}
.program-item {
  font-family: var(--font-serif); color: var(--text); font-size: 0.98rem;
  margin: 0 0 0.6rem; line-height: 1.5;
}
.program-item .pdate {
  font-family: var(--font-sans); font-weight: 700; color: var(--highlight); font-size: 0.9rem;
}
@media (max-width: 720px) { .program-columns { column-count: 1; } }

/* ---------- footer ---------- */
.site-footer { padding: clamp(3.5rem, 8vw, 6rem) 0 3rem; background: #ffffff; }
.site-footer h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0; line-height: 1.12;
}
.site-footer .dek { margin-top: 0.5rem; }
.contact-lines {
  margin-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem;
  font-family: var(--font-sans);
}
.contact-lines a { color: var(--highlight); text-decoration: none; font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines p.phone-line { margin: 0; font-size: 1rem; }
.wa-icon {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; margin-left: 0.3rem; transition: opacity .15s;
}
.wa-icon:hover { opacity: 0.7; }
.footer-partners {
  margin-top: 3rem; display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.footer-partners img.crest { height: 4rem; }
.footer-partners .ns-word { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; text-align: center; line-height: 1; }
.footer-logos-strip { margin-top: 2.5rem; overflow-x: auto; }
.footer-logos-strip img { min-width: 40rem; width: 100%; height: auto; }
.footer-logos-rows { display: none; }
@media (max-width: 720px) {
  .footer-logos-strip { display: none; }
  .footer-logos-rows {
    display: flex; flex-direction: column; gap: 1.6rem;
    margin-top: 2.5rem; align-items: center;
  }
  .footer-logos-rows img { width: 100%; height: auto; max-width: 26rem; }
  .footer-logos-rows img.row2 { width: 75%; max-width: 19.5rem; }
}
.copyright {
  margin-top: 3rem; font-family: var(--font-sans); font-size: 0.75rem; color: var(--text-muted);
}
