@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================
   La Casona'l Campo — Llanera (Asturias) — styles
   Quintana asturiana: piedra, madera, oro y teja.
   Paleta inspirada en el logotipo (oro sobre carbón)
   y en la sillería, el corredor de madera y la teja.
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  /* Paleta (configurable por Tweaks) */
  --bg: #f7f1e6;           /* hueso cálido / piedra clara */
  --bg-soft: #ece2d0;      /* arenisca */
  --ink: #2a241d;          /* carbón cálido (del logo) */
  --ink-soft: #6d6354;
  --line: #e1d6c1;
  --accent: #c8941f;       /* oro / ocre del logotipo */
  --accent-ink: #241d12;
  --accent-2: #9c4a2c;     /* teja / madera de corredor */

  /* Tipografía */
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Escalas */
  --max: 1280px;
  --max-narrow: 880px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-py: clamp(72px, 10vw, 140px);
  --radius: 2px;
  --radius-lg: 6px;

  /* Sombras suaves */
  --shadow-sm: 0 1px 2px rgba(40, 30, 20, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(40, 30, 20, 0.18);

  /* Densidad (Tweaks) */
  --density: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a { color: inherit; text-decoration: none; }
.parrafada a, .lead a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.parrafada a:hover, .lead a:hover { text-decoration-thickness: 2px; }
.footer a { color: inherit; text-decoration: none; }
.parrafada { max-width: 48ch; color: var(--ink-soft); font-size: 1.02rem; }
.parrafada p { margin: 0 0 1em; color: inherit; font-size: inherit; }
.parrafada > *:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Skip link */
.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

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

/* ---------- Tipografía editorial ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1rem; }

p { text-wrap: pretty; margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--ink-soft); line-height: 1.55; }
.lead p { margin: 0 0 1em; }
.lead > *:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--max-narrow); margin: 0 auto; }
.section { padding-block: var(--section-py); }
.section--soft { background: var(--bg-soft); }

.section-head { text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 14px; }

/* ---------- Topbar (redes) ---------- */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px var(--gutter);
  max-width: var(--max); margin: 0 auto;
  gap: 16px; flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 22px; opacity: 0.85; }
.topbar-info a { display: inline-flex; gap: 8px; align-items: center; transition: opacity .2s; }
.topbar-info a:hover { opacity: 0.7; color: var(--accent); }
.topbar-info svg { width: 14px; height: 14px; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.topbar-social a:hover { background: var(--accent); color: var(--accent-ink); }
.topbar-social svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .topbar-info { display: none; }
  .topbar-inner { justify-content: center; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--gutter);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--accent);
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-ink);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 4px;
}
.nav-list a,
.nav-list .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color .2s;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-list a::after,
.nav-list .nav-toggle::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after,
.nav-list .nav-toggle:hover::after,
.nav-list .has-submenu.open .nav-toggle::after { transform: scaleX(1); }
.nav-caret { transition: transform .25s; }
.has-submenu.open .nav-caret { transform: rotate(180deg); }

/* Submenu desplegable */
.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0; padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 60;
}
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.submenu a::after { display: none; }
.submenu a:hover,
.submenu a:focus-visible {
  background: var(--bg-soft);
  color: var(--accent-2);
  outline: none;
}

.nav-cta {
  margin-left: 12px;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.lang-switch {
  display: flex; gap: 4px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.lang-switch button {
  padding: 4px 6px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .2s;
}
.lang-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.lang-switch button:hover { color: var(--accent-2); }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
}
.hamburger:hover { background: var(--bg-soft); }
.hamburger-icon {
  position: relative;
  width: 22px; height: 14px;
}
.hamburger-icon::before,
.hamburger-icon::after,
.hamburger-icon span {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: var(--ink);
  transition: transform .3s, opacity .2s, top .3s;
}
.hamburger-icon::before { top: 0; }
.hamburger-icon span { top: 50%; transform: translateY(-50%); }
.hamburger-icon::after { top: 100%; transform: translateY(-100%); }

.header.menu-open .hamburger-icon::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.header.menu-open .hamburger-icon::after  { top: 50%; transform: translateY(-50%) rotate(-45deg); }
.header.menu-open .hamburger-icon span    { opacity: 0; }

@media (max-width: 960px) {
  .hamburger { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(86%, 380px);
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.7,0,.2,1);
    border-left: 1px solid var(--line);
    overflow-y: auto;


    
    overflow-x: hidden;
    height: 100%;
    height: 100dvh;

  }
  .header.menu-open .nav { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a,
  .nav-list .nav-toggle {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    width: 100%;
    justify-content: space-between;
  }
  .nav-list a::after,
  .nav-list .nav-toggle::after { display: none; }

  .submenu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px 14px;
    margin: 0 0 8px;
    display: none;
  }
  .has-submenu.open .submenu { display: block; }
  .submenu a {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
  }
  .nav-cta {
    margin: 24px 0 0;
    text-align: center;
    padding: 14px 22px;
  }
  .lang-switch { margin: 18px 0 0; padding: 0; border: 0; justify-content: flex-start; }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(40, 30, 20, 0.45);
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
    z-index: 49;
  }
  .header.menu-open ~ .nav-backdrop,
  body.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---------- HERO ---------- */
.hero { position: relative; }
.hero-slider {
  position: relative;
  height: clamp(540px, 80vh, 820px);
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Encuadre independiente por eje: combina .is-top/.is-bottom (eje Y) con
     .is-left/.is-right (eje X). Por defecto: centrado en ambos ejes. */
  --obj-x: center;
  --obj-y: center;
  object-position: var(--obj-x) var(--obj-y);
  transform: scale(1);
  transition: transform 8s linear;
}
/* Modificadores de encuadre (combinables, uno por eje) */
.hero-slide-img.is-top    { --obj-y: top; }
.hero-slide-img.is-bottom { --obj-y: bottom; }
.hero-slide-img.is-left   { --obj-x: left; }
.hero-slide-img.is-right  { --obj-x: right; }
.hero-slider.kenburns .hero-slide.is-active .hero-slide-img { transform: scale(1.08); }

.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
}
/* Slide con texto oscuro: invierte el degradado para reforzar la legibilidad sobre fotos claras */
.hero-slide.is-light::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.55) 100%);
}

.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(60px, 10vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
  z-index: 2;
  color: #fff;
}
.hero-content[data-layout="center"]   { align-items: center; text-align: center; }
.hero-content[data-layout="asymmetric"] { align-items: flex-start; }
.hero-content[data-layout="split"]    { justify-content: center; align-items: flex-start; }

/* Texto alineado a la derecha del hero (en lugar de a la izquierda) */
.hero-content.align-right { align-items: flex-end; text-align: right; }
.hero-content.align-right .hero-eyebrow::before { display: none; }
.hero-content.align-right .hero-eyebrow::after {
  content: ""; display: inline-block;
  width: 32px; height: 1px; background: var(--accent);
  vertical-align: middle; margin-left: 14px;
}

/* Texto oscuro para diapositivas con fotos claras */
.hero-content.is-dark { color: var(--ink); }
.hero-content.is-dark h1 { color: var(--ink); }
.hero-content.is-dark .hero-eyebrow { opacity: 1; color: var(--ink); }
.hero-content.is-dark .hero-eyebrow::before { background: var(--accent-2); }
.hero-content.is-dark .hero-sub { opacity: 0.9; color: var(--ink); }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
  opacity: 0.95;
}
.hero-eyebrow::before {
  content: ""; display: inline-block;
  width: 32px; height: 1px; background: var(--accent);
  vertical-align: middle; margin-right: 14px;
}
.hero .hero-h1 {
  color: #fff;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.hero-content[data-layout="center"] .hero-h1 { max-width: 22ch; }
.hero-content.is-dark .hero-h1 { color: var(--ink); }

/* Texto solo accesible para lectores de pantalla */
.offscreen {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.hero-sub {
  max-width: 52ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  opacity: 0.92;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent-2); }
.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* Slider controls */
.hero-controls {
  position: absolute; bottom: 28px; right: var(--gutter);
  display: flex; align-items: center; gap: 14px;
  z-index: 3;
}
.hero-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}
.hero-arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hero-arrow svg { width: 18px; height: 18px; }

.hero-dots { display: flex; gap: 6px; align-items: center; }
.hero-dot {
  width: 28px; height: 2px;
  background: rgba(255,255,255,0.4);
  transition: background .3s, width .3s;
}
.hero-dot.is-active { background: #fff; width: 44px; }

@media (max-width: 600px) {
  .hero-controls { left: var(--gutter); right: var(--gutter); justify-content: space-between; }
}

/* ---------- Intro / texto principal ---------- */
.intro { text-align: center; }
.intro .lead { text-align: left; }
/* Modificador: alinea todo el contenido del intro a la izquierda */
.intro.is-left { text-align: left; }
.intro.is-left .intro-rule { margin-left: 0; margin-right: auto; }
.intro .eyebrow { margin-bottom: 18px; }
.intro p { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); }
.intro p strong { color: var(--ink); font-weight: 600; }
.intro-rule {
  width: 1px; height: 56px;
  background: var(--accent);
  margin: 36px auto 0;
}

/* ---------- Destacados con icono ---------- */
/* Auto-fit: la rejilla se adapta al número de destacados que añadas desde el CMS */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.feature {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
  transition: background .25s;
}
.feature:hover { background: var(--bg-soft); }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--accent-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  margin-bottom: 4px;
}
.feature-icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Texto + Foto alternadas ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.split-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Encuadre independiente por eje: cada clase utilitaria solo toca su eje,
     así .img-top + .img-left se combinan correctamente como "left top". */
  --obj-x: center;
  --obj-y: center;
  object-position: var(--obj-x) var(--obj-y);
}
/* Modificadores de proporción y encuadre para .split-media
   ─────────────────────────────────────────────────────────
   · sin clase             → 4/5 vertical, foto centrada (por defecto)
   · .is-4-3               → 4/3 horizontal, foto centrada
   · .is-4-3.is-start      → 4/3 horizontal, foto anclada al inicio (arriba en
                             retratos / izquierda en horizontales)
   Clases finas sobre la <img> (combinables entre sí, una por eje):
   · .img-top    → eje Y arriba       · .img-bottom → eje Y abajo
   · .img-left   → eje X izquierda    · .img-right  → eje X derecha
   Ejemplo: <img class="img-top img-right"> alinea arriba-derecha. */
.split-media.is-4-3 { aspect-ratio: 4 / 3; }
.split-media.is-4-3.is-start img { --obj-x: left; --obj-y: top; }
.split-media img.img-top    { --obj-y: top; }
.split-media img.img-bottom { --obj-y: bottom; }
.split-media img.img-left   { --obj-x: left; }
.split-media img.img-right  { --obj-x: right; }
.split-media-tag {
  position: absolute; top: 20px; left: 20px;
  background: var(--bg);
  padding: 7px 13px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
}
.split-body .eyebrow { margin-bottom: 16px; }
.split-body h2 { margin-bottom: 24px; max-width: 16ch; }
.split-body p { color: var(--ink-soft); font-size: 1.02rem; }
.split-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0 24px;
}
.split-list li {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.94rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.split-list li::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  flex: none;
}
.split-cta { margin-top: 32px; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .25s, transform .25s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card .feature-icon { margin-bottom: 6px; }
.contact-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
}
.contact-card p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
.contact-card a { transition: color .2s; }
.contact-card a:hover { color: var(--accent-2); }

@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.map-wrap {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  height: clamp(360px, 50vw, 520px);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.02); }

.map-card {
  position: absolute; top: 22px; left: 22px;
  background: var(--bg);
  padding: 22px 24px;
  border-radius: var(--radius);
  max-width: 280px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.map-card .eyebrow { margin-bottom: 8px; font-size: 0.7rem; }
.map-card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.map-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 14px; }
.map-card a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.map-card a:hover { color: var(--ink); }

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(40,30,20,0.25));
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 16, 12, 0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.lightbox-figure {
  margin: 0;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
}
.lightbox-caption {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  max-width: 64ch;
  text-wrap: balance;
}
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox-btn svg { width: 20px; height: 20px; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- Reseñas ---------- */
.reviews-head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.reviews-head h2 { max-width: 18ch; margin: 0; }
.reviews-rating {
  display: flex; align-items: center; gap: 14px;
}
.reviews-rating-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.reviews-rating-stars { color: var(--accent); display: flex; gap: 2px; }
.reviews-rating-stars svg { width: 16px; height: 16px; }
.reviews-rating-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s;
}
.review:hover { border-color: var(--accent); }
.review-stars { color: var(--accent); display: flex; gap: 2px; }
.review-stars svg { width: 14px; height: 14px; }
.review-quote {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.review-author {
  display: flex; gap: 12px; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-2);
}
.review-meta { font-size: 0.85rem; }
.review-meta strong { display: block; font-weight: 600; }
.review-meta span { color: var(--ink-soft); font-size: 0.78rem; }

@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Social CTA ---------- */
.social-cta {
  text-align: center;
}
.social-handles {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.social-handle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--bg);
  transition: all .2s;
}
.social-handle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.social-handle svg { width: 18px; height: 18px; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post {
  display: flex; flex-direction: column;
  gap: 16px;
}
.post-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.post-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.post:hover .post-media img { transform: scale(1.04); }
.post-meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.post-cat { color: var(--accent-2); font-weight: 600; }
.post h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.post p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.post-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-2);
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-link::after {
  content: "→";
  transition: transform .2s;
}
.post:hover .post-link::after { transform: translateX(4px); }

.blog-cta { text-align: center; margin-top: clamp(40px, 5vw, 64px); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Subvenciones ---------- */
.grants {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 60px);
}
.grants-head {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.grants-logos {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}
.grants-logos img {
  max-height: 56px;
  width: auto;
  filter: grayscale(0.15);
  transition: filter .25s;
}
.grants-logos img:hover { filter: grayscale(0); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
}
.footer a { transition: color .2s; }
.footer a:hover { color: var(--accent); }

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(60px, 8vw, 100px);
}
.footer-brand .brand-name { color: var(--bg); }
.footer-brand .brand-name span { color: rgba(247, 241, 230, 0.5); }
.footer-brand p {
  margin-top: 22px;
  color: rgba(247, 241, 230, 0.72);
  font-size: 0.95rem;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; font-size: 0.95rem; color: rgba(247, 241, 230, 0.85); }
.footer-col li a:hover { color: var(--accent); }
.footer-col p { color: rgba(247, 241, 230, 0.85); font-size: 0.95rem; margin: 0 0 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 230, 0.25);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(247, 241, 230, 0.12);
  padding-block: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.65);
}
.footer-bottom-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.footer-bottom-links a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Image placeholder (sin foto real) ---------- */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg,
      rgba(212,160,23,0.08) 0 14px,
      rgba(212,160,23,0.16) 14px 28px),
    var(--bg-soft);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
}
.ph span {
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

/* ---------- Density variants (Tweaks) ---------- */
body[data-density="cozy"] {
  --section-py: clamp(56px, 7vw, 100px);
  font-size: 16px;
}
body[data-density="airy"] {
  --section-py: clamp(96px, 12vw, 180px);
}

/* ---------- Hero estático (página interior) ----------
   Reutiliza la arquitectura del slider (.hero-slider + .hero-slide +
   .hero-slide-img + .hero-content) sin las transiciones de slides.
   Por eso necesitamos forzar que el .hero-slide ocupe toda la altura
   del .hero-slider y que el .hero-content quede superpuesto sobre la foto. */
.hero-static { position: relative; }
.hero-static .hero-slider {
  height: clamp(420px, 60vh, 620px);
  height:clamp(500px, 75vh, 800px);
  position: relative;
}
.hero-static .hero-slide {
  position: relative;
  opacity: 1;
  width: 100%;
  height: 100%;
}
.hero-static .hero-slide::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.50) 100%);
}
.hero-static .hero-slide.is-light::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.55) 100%);
}

/* ---------- Migas / Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 0.88rem;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.breadcrumbs li + li::before {
  content: "›";
  color: var(--ink-soft);
  opacity: 0.5;
}
.breadcrumbs a {
  color: var(--ink-soft);
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs li[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FAQ desplegables ---------- */
.faq-section {
  padding-block: var(--section-py);
  background: var(--bg-soft);
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.faq-section .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
  transition: background-color .25s;
}
.faq-question:hover { background: var(--bg-soft); }
.faq-question::after {
  content: '+';
  font-size: 26px;
  font-weight: 400;
  color: var(--accent-2);
  transition: transform .3s ease;
  flex: none;
  line-height: 1;
}
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer {
  box-sizing: border-box;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}
.faq-answer.active {
  padding: 0 24px 22px;
}
.faq-answer p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 0.6em;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul,
.faq-answer ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.faq-answer li + li { margin-top: 4px; }
.faq-answer ul.no li { text-decoration: line-through; opacity: 0.7; }

@media (max-width: 600px) {
  .faq-question { font-size: 0.95rem; padding: 16px 18px; }
  .faq-answer { padding: 0 18px; }
  .faq-answer.active { padding: 0 18px 18px; }
}

/* ---------- Mapa a ancho completo ---------- */
.map-section {
  padding: 0;
  margin: 0;
  background: var(--bg-soft);
}
.map-section iframe {
  display: block;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  border: 0;
  filter: saturate(0.9) contrast(1.02);
}

/* ---------- Cards clicables (destacados y reseñas) ----------
   Patrón "stretched link": el <a> interno se expande con ::after sobre toda la
   card. Mantenemos relative en el contenedor para que el ::after se anclé a él.
   Si quieres que una card NO sea enlace, simplemente usa <div> en su raíz; el
   selector :has(> a.card-link) activa los estilos solo cuando hay enlace. */
.feature,
.review {
  position: relative;
}
.feature:has(> a.card-link),
.review:has(> a.card-link) {
  cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature:has(> a.card-link):hover,
.review:has(> a.card-link):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.feature > a.card-link,
.review > a.card-link {
  position: absolute; inset: 0;
  z-index: 1;
  font-size: 0;
  overflow: hidden;
  text-indent: -9999px;
}
.feature > a.card-link::after,
.review > a.card-link::after {
  content: "";
  position: absolute; inset: 0;
}
/* Foco accesible: cuando el enlace recibe foco con teclado, marcamos la card */
.feature:has(> a.card-link:focus-visible),
.review:has(> a.card-link:focus-visible) {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* Flecha decorativa en la esquina inferior derecha de un destacado clicable.
   Usamos la técnica de mask-image para que el SVG herede el color via
   background-color y podamos animarlo con CSS. */
.feature:has(> a.card-link)::after {
  content: "";
  position: absolute;
  right: 18px; bottom: 18px;
  width: 28px; height: 28px;
  background-color: var(--accent-2);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='8 7 17 7 17 16'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='8 7 17 7 17 16'/></svg>") center / contain no-repeat;
  transition: background-color .25s, transform .25s;
  pointer-events: none;
}
.feature:has(> a.card-link):hover::after {
  background-color: var(--accent);
  transform: translate(3px, -3px);
}

/* ---------- Tweaks panel reset ---------- */
@media print {
  .topbar, .header, .nav-backdrop, .hero-controls,
  .footer-bottom-links, [data-tweaks-panel] { display: none !important; }
}

/* ============================================
   La Casona'l Campo — capa de marca y titulares
   (rebrand sobre la arquitectura original)
   ============================================ */

/* Titulares con serif cálido; el resto del UI sigue en sans */
h1, h2,
.hero .hero-h1,
.article-title,
.blog-page-head h1,
.legal-content h2, .legal-content h3,
.post h3,
.blog-title-link,
.blog-main h2,
.map-card h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.012em;
}
.hero .hero-h1 { font-weight: 600; }

/* Cita de reseña en serif itálica — carácter editorial */
.review-quote { font-family: var(--font-serif); font-style: italic; }

/* Eyebrow: pequeño guiño con punto dorado */
.hero-eyebrow { font-weight: 600; }

/* Wordmark de texto: sustituye al logotipo hasta tener el definitivo.
   Mantiene el contenedor .brand original, solo cambia el contenido. */
.brand-wordmark {
  display: flex; flex-direction: column; gap: 3px; line-height: 1;
}
.brand-wordmark .bw-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-wordmark .bw-name b { color: var(--accent); font-weight: 600; }
.brand-wordmark .bw-sub {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.footer-brand .brand-wordmark .bw-name { color: var(--bg); }
.footer-brand .brand-wordmark .bw-name b { color: var(--accent); }
.footer-brand .brand-wordmark .bw-sub { color: rgba(247, 241, 230, 0.55); }
