/* ========== TOKENS (overridden by theme classes) ========== */
:root {
  /* warm-earth default */
  --bg: #f4efe6;
  --bg-soft: #ebe2d0;
  --bg-deep: #2d3a2a;
  --ink: #1f2820;
  --ink-soft: #4a5548;
  --ink-muted: #7a8378;
  --accent: #6b8c5a;      /* moss */
  --accent-warm: #c16c3e; /* terracotta */
  --accent-sun: #d9a441;  /* ochre */
  --line: #d9cfbd;
  --paper: #fbf7ee;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 38px;

  --shadow-soft: 0 22px 60px rgba(38, 32, 20, 0.08);
  --shadow-card: 0 30px 80px rgba(34, 31, 24, 0.1);
  --shadow-deep: 0 38px 120px rgba(16, 18, 13, 0.26);
  --section-space: 140px;
  --container-max: 1280px;

  --anim-intensity: 1;
}

/* Direction: Editorial orgánico (big type, photo-first) */
.dir-editorial {
  --bg: #f6f2ea;
  --bg-soft: #ece4d3;
  --bg-deep: #1c241a;
  --ink: #14180f;
  --accent: #4f6b44;
  --accent-warm: #b35a2f;
  --paper: #fcf9f1;
}

/* Direction: Artesanal tejido (muted, warmer, stitched textures) */
.dir-tejido {
  --bg: #efe5d2;
  --bg-soft: #e2d2b4;
  --bg-deep: #3d2f22;
  --ink: #2a2218;
  --ink-soft: #5a4a38;
  --accent: #8a6b3d;
  --accent-warm: #b8502b;
  --accent-sun: #cc8a2e;
  --line: #c9b590;
  --paper: #f6ecd7;
}

/* Direction: Acuarela viva (watercolor, softer edges) */
.dir-acuarela {
  --bg: #f1ede3;
  --bg-soft: #e6dfcd;
  --accent: #6c9272;
  --accent-warm: #cc7a54;
  --accent-sun: #e0b059;
  --paper: #faf5e9;
}

/* Direction: Festivo (handmade collage · saturated jewel palette) */
.dir-festivo {
  --bg: #f6efe1;
  --bg-soft: #efe4cf;
  --bg-deep: #1f2d5c;       /* navy */
  --ink: #1f2d5c;           /* navy para títulos */
  --ink-soft: #3a4570;
  --ink-muted: #6e7594;
  --accent: #8a9144;        /* olive */
  --accent-warm: #d95d3b;   /* coral rojizo */
  --accent-sun: #e8a33d;    /* mostaza saturada */
  --line: #d9cfbd;
  --paper: #fdf8ec;
}
.dir-festivo h1, .dir-festivo h2, .dir-festivo h3, .dir-festivo h4 {
  color: var(--ink);
}
/* Bloques sólidos de color en Festivo */
.dir-festivo .pilar:nth-child(3n+1) {
  background: var(--accent-sun);
  color: var(--ink);
}
.dir-festivo .pilar:nth-child(3n+2) {
  background: var(--accent-warm);
  color: #fdf8ec;
}
.dir-festivo .pilar:nth-child(3n+2) h3,
.dir-festivo .pilar:nth-child(3n+2) .pilar-num,
.dir-festivo .pilar:nth-child(3n+2) .pilar-body { color: #fdf8ec; }
.dir-festivo .pilar:nth-child(3n) {
  background: var(--accent);
  color: #fdf8ec;
}
.dir-festivo .pilar:nth-child(3n) h3,
.dir-festivo .pilar:nth-child(3n) .pilar-num,
.dir-festivo .pilar:nth-child(3n) .pilar-body { color: #fdf8ec; }
.dir-festivo .dia-horarios {
  background: var(--accent-sun);
  border-left-color: var(--accent-warm);
  color: var(--ink);
}
.dir-festivo .dia-horarios-title { color: var(--accent-warm); }
.dir-festivo .dia-horarios li strong { color: var(--ink); }
.dir-festivo .testi:nth-child(2) {
  background: var(--accent-sun);
  color: var(--ink);
}
.dir-festivo .post:nth-child(2) .post-img-wrap::after {
  background: color-mix(in oklab, var(--accent-warm) 18%, transparent);
}
/* doodles más densos y opacos en festivo */
.dir-festivo .bg-doodles img {
  opacity: calc(var(--doodle-opacity, 1) * 1.8) !important;
}

/* Typography variants */
.type-editorial { --font-display: "Fraunces", serif; --font-body: "Inter Tight", sans-serif; }
.type-manuscrita { --font-display: "Caveat", cursive; --font-body: "Nunito", sans-serif; }
.type-calida { --font-display: "DM Serif Display", serif; --font-body: "Work Sans", sans-serif; }

/* ========== BASE ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(193,108,62,0.08), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 18%);
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  right: auto;
  width: min(calc(100% - 48px), calc(var(--container-max) + 48px));
  transform: translateX(-50%);
  z-index: 100;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18,23,15,0.34), rgba(18,23,15,0.22));
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px rgba(11, 13, 9, 0.12);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  padding: 12px 20px;
  border-color: rgba(83, 74, 57, 0.08);
  box-shadow: 0 18px 48px rgba(23, 20, 12, 0.12);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: height 0.4s, filter 0.4s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)) brightness(0) invert(1);
}
.nav.scrolled .nav-logo-img {
  height: 40px;
  filter: none;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo-mark::before, .nav-logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent-warm);
  border-radius: 50%;
  transform: translate(50%, -30%) scale(0.6);
  opacity: 0.7;
}
.nav-logo-mark::after {
  background: var(--accent-sun);
  transform: translate(-40%, 50%) scale(0.5);
  opacity: 0.8;
}
.nav-logo span small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(251,247,238,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a {
  color: var(--ink-soft);
  text-shadow: none;
}
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent-warm);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta {
  padding: 11px 18px;
  background: #fbf7ee;
  color: var(--ink);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(12,12,10,0.22);
}
.nav-cta:hover { background: var(--accent-warm); color: #fbf7ee; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(122, 55, 28, 0.26); }
.nav.scrolled .nav-cta {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.nav.scrolled .nav-cta:hover { background: var(--accent-warm); }
.nav-cta::after { display: none !important; }
.nav-toggle,
.nav-drawer { display: none; }

.nav-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(10px);
}
.nav.scrolled .nav-toggle {
  border-color: rgba(24,25,18,0.08);
  background: rgba(24,25,18,0.05);
}
.nav-toggle span {
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 96px 18px 24px;
  background:
    linear-gradient(180deg, rgba(11,14,9,0.26), rgba(11,14,9,0.6)),
    color-mix(in oklab, var(--bg-deep) 90%, transparent);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer-inner {
  width: min(100%, 540px);
  margin-left: auto;
  padding: 24px;
  border-radius: 28px;
  background: rgba(250,246,238,0.95);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(12,14,9,0.28);
  border: 1px solid rgba(69,59,39,0.08);
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
}
.nav-drawer-link {
  padding: 18px 4px;
  border-bottom: 1px solid rgba(53,46,34,0.08);
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: -0.02em;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1), opacity 0.45s cubic-bezier(.2,.7,.3,1);
  transition-delay: calc(var(--drawer-index, 0) * 0.04s);
}
.nav-drawer.open .nav-drawer-link {
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer-cta {
  margin-top: 22px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav {
    top: 14px;
    left: 50%;
    width: calc(100% - 32px);
    padding: 12px 14px 12px 18px;
  }
  .nav.scrolled { padding: 10px 14px 10px 18px; }
  .nav-links { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer { display: block; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  background: #1a2016;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%),
    radial-gradient(circle at 20% 20%, rgba(245,199,106,0.16), transparent 30%);
  z-index: 2;
  pointer-events: none;
}
.hero-photo {
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { background-position: center 38%; background-size: 108%; }
  to { background-position: center 42%; background-size: 114%; }
}
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(20,25,15,0.55) 0%, rgba(20,25,15,0.15) 30%, rgba(20,25,15,0.15) 55%, rgba(20,25,15,0.75) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.45) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grass {
  background: linear-gradient(180deg, transparent, rgba(20,28,12,0.85));
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  will-change: transform;
  pointer-events: none;
}
.hero-sun {
  top: 8%; right: 12%;
  width: 120px; height: 120px;
  background: radial-gradient(circle, #f7d97d 0%, #f0c14f 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  animation: sun-pulse calc(6s / var(--anim-intensity)) ease-in-out infinite;
  left: auto;
  pointer-events: none;
}
@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: clamp(108px, 12vh, 148px) 8vw 56px;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(280px, 344px);
  gap: 36px;
  align-items: end;
}
.hero-main {
  max-width: 920px;
  padding-bottom: 34px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6f2e4;
  font-weight: 500;
  margin-bottom: 22px;
  align-self: flex-start;
  padding: 8px 16px;
  background: rgba(20,25,15,0.35);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent-warm);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(48px, 8.2vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.034em;
  max-width: 13.5ch;
  font-weight: 320;
  color: #fbf7ee;
  text-shadow: 0 8px 44px rgba(0,0,0,0.34);
}
.hero-line {
  display: block;
  white-space: nowrap;
}
.hero-title em {
  font-style: italic;
  color: #f5c76a;
  font-weight: 400;
}
.hero-title .stroke {
  position: relative;
  display: inline-block;
}
.hero-title .stroke::after {
  content: "";
  position: absolute;
  bottom: 6%; left: -2%;
  width: 104%; height: 18%;
  background: var(--accent-sun);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
  transform-origin: left;
  animation: stroke-in 1.2s cubic-bezier(.2,.7,.3,1) .6s both;
}
@keyframes stroke-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(15px, 1.22vw, 18px);
  color: rgba(251,247,238,0.88);
  max-width: 36ch;
  line-height: 1.68;
  text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-warm); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fbf7ee;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fbf7ee; color: var(--ink); border-color: #fbf7ee; }
.hero .btn-primary { background: #fbf7ee; color: var(--ink); }
.hero .btn-primary:hover { background: var(--accent-warm); color: #fbf7ee; }
.btn svg { width: 16px; height: 16px; }

.hero-panel {
  justify-self: end;
  width: 100%;
  max-width: 344px;
  margin-bottom: 54px;
}
.hero-panel-card {
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18,23,15,0.52), rgba(18,23,15,0.34)),
    rgba(18,23,15,0.22);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-deep);
}
.hero-panel-links {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hero-panel-link {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fbf7ee;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero-panel-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
}

.hero-badge {
  position: absolute;
  bottom: 40px; right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(20,25,15,0.55);
  backdrop-filter: blur(14px);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  max-width: 340px;
  color: #fbf7ee;
  display: none;
}
.hero-badge-panel {
  position: static;
  bottom: auto;
  right: auto;
  display: flex;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  border-radius: 0;
}
.hero-badge-panel > div {
  font-size: 12px;
  line-height: 1.45;
}
.hero-badge strong { color: #f5c76a; }
.hero-badge-pin {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(245,199,106,0.18);
  border: 1px solid rgba(245,199,106,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c76a;
  flex-shrink: 0;
}
.hero-badge-pin svg { width: 14px; height: 14px; }
.hero-badge strong { font-weight: 600; }

.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251,247,238,0.7);
  animation: float calc(2.5s / var(--anim-intensity)) ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(251,247,238,0.7), transparent);
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 768px) {
  .hero-badge { bottom: 80px; right: 20px; left: 20px; max-width: none; }
  .hero-content { padding: 0 24px; }
}

/* ========== SECTIONS ========== */
section { position: relative; }
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 500;
  margin-bottom: 20px;
}
.section-label::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent-warm);
}

.section-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 24px;
  font-weight: 350;
}
.section-title em { color: var(--accent-warm); font-style: italic; }
.section-intro {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.75;
}

/* ========== PILARES ========== */
.pilares {
  padding: var(--section-space) 0 calc(var(--section-space) - 20px);
  background: var(--paper);
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 72px;
}
.pilar {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s cubic-bezier(.2,.7,.3,1);
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.pilar:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }

/* Bloques de color en los 3 pilares — ritmo visual */
.pilar-c0 { background: color-mix(in oklab, var(--accent) 22%, var(--paper)); }
.pilar-c1 { background: color-mix(in oklab, var(--accent-sun) 55%, var(--paper)); }
.pilar-c2 { background: color-mix(in oklab, var(--accent-warm) 28%, var(--paper)); }

.pilar-c0 .pilar-body,
.pilar-c1 .pilar-body,
.pilar-c2 .pilar-body {
  padding: 28px 24px 32px;
}
.pilar-c0 .pilar-num,
.pilar-c1 .pilar-num,
.pilar-c2 .pilar-num {
  color: var(--ink);
  opacity: 0.7;
}
.pilar-c0 .pilar-title,
.pilar-c1 .pilar-title,
.pilar-c2 .pilar-title {
  color: var(--ink);
}
.pilar-c0 .pilar-desc,
.pilar-c1 .pilar-desc,
.pilar-c2 .pilar-desc {
  color: color-mix(in oklch, var(--ink) 78%, transparent);
}
.pilar-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-soft);
}
.pilar-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.3,1);
}
.pilar:hover .pilar-photo img { transform: scale(1.05); }
.pilar-body {
  padding: 28px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pilar-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent-warm);
  font-weight: 500;
}
.pilar-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}
.pilar-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

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

/* ========== DÍA EN TEJEDORES ========== */
.dia {
  padding: var(--section-space) 0;
  background: var(--bg);
  overflow: hidden;
}
.dia-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 72px;
}
.dia-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.dia-photo {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-card);
}
.dia-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}
.dia-photo:hover img { transform: scale(1.04); }
.dia-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.dia-timeline::before {
  content: "";
  position: absolute;
  top: 14px; bottom: 14px;
  left: 6px;
  width: 1px;
  background: var(--line);
}
.dia-item {
  position: relative;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.dia-item:last-child { border-bottom: none; }
.dia-item::before {
  content: "";
  position: absolute;
  top: 28px; left: -28px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}
.dia-item.highlight::before { background: var(--accent-warm); border-color: var(--accent-warm); }
.dia-hour {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}
.dia-activity {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-warm);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dia-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 52ch;
}

.dia-horarios {
  margin-top: 32px;
  padding: 24px 28px;
  background: color-mix(in oklab, var(--accent) 8%, var(--bg-soft));
  border-radius: 24px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.dia-horarios-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.dia-horarios ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dia-horarios li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed color-mix(in oklab, var(--line) 80%, transparent);
}
.dia-horarios li:last-child { border-bottom: none; padding-bottom: 0; }
.dia-horarios li span {
  color: var(--ink-soft);
}
.dia-horarios li strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .dia-header { grid-template-columns: 1fr; }
  .dia-layout { grid-template-columns: 1fr; gap: 40px; }
  .dia-photo { position: relative; top: 0; aspect-ratio: 4/3; }
}

/* ========== GALERÍA ========== */
.galeria {
  padding: var(--section-space) 0;
  background: var(--bg-deep);
  color: var(--paper);
}
.galeria .section-title, .galeria h3 { color: var(--paper); }
.galeria .section-intro { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.galeria .section-label { color: var(--accent-sun); }
.galeria .section-label::before { background: var(--accent-sun); }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 18px;
  margin-top: 64px;
}
.foto {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #3d4a3a;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1), box-shadow 0.5s cubic-bezier(.2,.7,.3,1);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}
.foto:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,0.24); }
.foto-1 { grid-column: span 6; grid-row: span 3; }
.foto-2 { grid-column: span 3; grid-row: span 2; }
.foto-3 { grid-column: span 3; grid-row: span 2; }
.foto-4 { grid-column: span 4; grid-row: span 2; }
.foto-5 { grid-column: span 4; grid-row: span 2; }
.foto-6 { grid-column: span 4; grid-row: span 2; }

.foto-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.3,1);
}
.foto:hover .foto-img { transform: scale(1.05); }

.foto-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.68) 100%);
}
.foto-placeholder {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--paper) 8%, transparent) 0,
      color-mix(in oklab, var(--paper) 8%, transparent) 1px,
      transparent 1px,
      transparent 14px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.foto-placeholder span {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}
.foto-label {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
}
.foto-label small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .foto-1 { grid-column: span 2; grid-row: span 2; }
  .foto-2, .foto-3, .foto-4, .foto-5, .foto-6 { grid-column: span 1; grid-row: span 1; }
}

/* ========== TESTIMONIOS ========== */
.testis {
  padding: var(--section-space) 0;
  background: var(--paper);
}
.testis-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi {
  padding: 36px 32px;
  background: var(--bg);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(77, 64, 43, 0.08);
  box-shadow: var(--shadow-soft);
}
.testi:hover {
  transform: translateY(-4px);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.5;
  color: var(--accent-warm);
  height: 24px;
}
.testi-quote {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 350;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-grow: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbf7ee;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.testi-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
}
.testi-avatar-initial {
  position: relative;
  z-index: 1;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--ink-muted); }

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

/* ========== VIDEO ESCUELA ========== */
.video-escuela {
  padding: var(--section-space) 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.video-escuela-header {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.video-escuela-header .section-label {
  display: inline-block;
}
.video-escuela-header .section-intro {
  margin: 20px auto 0;
  max-width: 56ch;
}
.video-frame-wrap {
  max-width: 380px;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0c07;
  box-shadow: 0 50px 120px -34px rgba(20,30,10,0.48), 0 22px 48px -10px rgba(20,30,10,0.24);
  padding-top: 177.78%;
  height: 0;
}
.video-frame video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block !important;
  cursor: pointer;
  position: absolute;
  top: 0; left: 0;
  transform: translateZ(0); /* force GPU layer — fixes Safari non-paint bug */
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(20,25,15,0.35);
  backdrop-filter: blur(6px);
  color: #fbf7ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, opacity .25s ease;
  z-index: 2;
}
.video-play svg {
  width: 34px;
  height: 34px;
  margin-left: 3px;
}
.video-play.playing svg { margin-left: 0; }
.video-play:hover {
  transform: scale(1.08);
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}
.video-frame.started.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) {
  .video-frame.started.is-playing:hover .video-play {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .video-escuela { padding: 72px 0; }
  .video-escuela-header { margin-bottom: 36px; text-align: left; }
  .video-escuela-header .section-intro { margin: 16px 0 0; }
  .video-frame { max-width: 340px; border-radius: 22px; }
  .video-play { width: 72px; height: 72px; }
  .video-play svg { width: 26px; height: 26px; }
}

/* ========== EQUIPO ========== */
.equipo {
  padding: var(--section-space) 0;
  background: var(--bg);
}
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.maestro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255,255,255,0.4);
  box-shadow: var(--shadow-soft);
}
.maestro-foto {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
  background-image:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--ink) 5%, transparent) 0,
      color-mix(in oklab, var(--ink) 5%, transparent) 1px,
      transparent 1px, transparent 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.maestro:hover .maestro-foto { transform: translateY(-4px); }
.maestro-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.maestro-foto-placeholder {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 300;
  color: color-mix(in oklab, var(--ink) 40%, transparent);
  letter-spacing: 0;
}
.maestro-foto span:not(.maestro-foto-placeholder) {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  padding: 6px 10px;
  background: var(--paper);
  border-radius: 4px;
  text-transform: uppercase;
}
.maestro-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.maestro-role { font-size: 13px; color: var(--ink-muted); margin-top: -8px; }
.maestro-bio { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 900px) { .equipo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .equipo-grid { grid-template-columns: 1fr; } }

/* ========== BLOG ========== */
.blog {
  padding: var(--section-space) 0;
  background: var(--paper);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  color: inherit;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.58);
  box-shadow: var(--shadow-soft);
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.post-img {
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.post-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.3,1);
}
.post:hover .post-img img { transform: scale(1.05); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-meta-dot { width: 3px; height: 3px; background: var(--ink-muted); border-radius: 50%; }
.post-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.post-excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.post-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-warm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* ========== FAQ ========== */
.faq {
  padding: var(--section-space) 0;
  background: var(--bg);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding: 10px 24px 0;
  border-radius: 28px;
  background: rgba(255,255,255,0.46);
  box-shadow: var(--shadow-soft);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.faq-icon svg { width: 12px; height: 12px; transition: transform 0.3s; }
.faq-item.open .faq-icon { background: var(--accent-warm); border-color: var(--accent-warm); color: var(--paper); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), padding 0.4s;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 24px; }
.faq-a p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 60ch;
}

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

/* ========== CTA VISITA ========== */
.ubica {
  padding: var(--section-space) 0;
  background: var(--paper);
}
.ubica-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.ubica-stats {
  display: flex;
  gap: 36px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.ubica-stat {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.ubica-stat:first-child {
  border-left: 3px solid var(--accent-warm);
}
.ubica-stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.ubica-stat-num span {
  font-size: 16px;
  color: var(--ink-muted);
  margin-left: 4px;
  font-family: var(--font-body);
}
.ubica-stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ubica-btn { margin-top: 8px; }
.ubica-map {
  position: relative;
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-card);
}
.ubica-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: saturate(0.9) contrast(0.95);
}
.ubica-pin {
  position: absolute;
  top: 50%; left: 50%;
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  pointer-events: none;
}
.ubica-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-warm);
  opacity: 0.3;
  animation: ubica-pulse 2s ease-out infinite;
}
.ubica-pin-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--accent-warm);
  border: 3px solid var(--paper);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
@keyframes ubica-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}
@media (max-width: 900px) {
  .ubica-grid { grid-template-columns: 1fr; gap: 40px; }
  .ubica-map { aspect-ratio: 1/1; }
}
.cta {
  padding: var(--section-space) 0;
  background: var(--bg-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-sun) 30%, transparent), transparent 60%);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 52px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), var(--shadow-deep);
}
.cta-inner h2 {
  color: var(--paper);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 350;
  margin-bottom: 24px;
}
.cta-inner h2 em { color: var(--accent-sun); font-style: italic; }
.cta-inner p {
  font-size: 17px;
  color: color-mix(in oklab, var(--paper) 75%, transparent);
  max-width: 50ch;
  line-height: 1.6;
  margin-bottom: 36px;
}
.cta-form {
  background: color-mix(in oklab, var(--paper) 5%, transparent);
  padding: 40px;
  border-radius: 30px;
  border: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
  backdrop-filter: blur(10px);
}
.cta-form h3 {
  color: var(--paper);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.cta-form .cta-form-note {
  font-size: 13px;
  color: color-mix(in oklab, var(--paper) 65%, transparent);
  margin-bottom: 24px;
}
.cta-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  margin-bottom: 8px;
  font-weight: 500;
}
.cta-form input, .cta-form select {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}
.cta-form input::placeholder { color: color-mix(in oklab, var(--paper) 40%, transparent); }
.cta-form input:focus, .cta-form select:focus { border-bottom-color: var(--accent-sun); }
.cta-form select option { background: var(--bg-deep); color: var(--paper); }
.cta-form button {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  background: var(--accent-sun);
  color: var(--bg-deep);
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cta-form button:hover { background: var(--paper); transform: translateY(-2px); }

.cta-assurance {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
}

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

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-deep);
  color: color-mix(in oklab, var(--paper) 75%, transparent);
  padding: 80px 0 40px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 10%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer h4 {
  color: var(--paper);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-body);
}
/* Footer logo */
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--paper) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--accent-sun); color: var(--bg-deep); border-color: var(--accent-sun); }
.footer-social svg { width: 16px; height: 16px; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-sun); }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 10%, transparent);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
  flex-wrap: wrap;
  gap: 16px;
}

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

/* ========== TWEAKS PANEL ========== */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 500;
  font-family: var(--font-body);
  transform: translateY(calc(100% + 32px));
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.tweaks-panel.open { transform: translateY(0); }
.tweaks-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.tweaks-header h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}
.tweaks-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tweaks-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.tweak-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.tweak-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tweak-opt {
  padding: 10px 8px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.tweak-opt.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tweak-opt:hover:not(.active) { background: var(--bg-soft); }
.tweak-slider input {
  width: 100%;
  accent-color: var(--accent-warm);
}
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}
.tweak-swatch.active { border-color: var(--ink); transform: scale(1.1); }

/* ========== WHATSAPP FAB ========== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,0.35), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.wa-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(37,211,102,0.45), 0 6px 16px rgba(0,0,0,0.18);
  background: #1ebe5a;
}
.wa-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 2px solid #25D366;
  animation: waPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}
@media (max-width: 640px) {
  .wa-fab { padding: 12px; }
  .wa-fab-label { display: none; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.3,1), transform 0.9s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========================================================== */
/* ========== MOBILE REFINEMENTS (consolidated) ============= */
/* ========================================================== */

/* Tablet */
@media (max-width: 900px) {
  .pilares, .dia, .galeria, .testis, .equipo, .blog, .faq, .cta, .ubica {
    padding: 90px 0;
  }
  .hero {
    min-height: 100svh;
  }
  .hero-content {
    padding: 104px 24px 28px;
  }
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: end;
  }
  .hero-panel {
    display: none;
  }
  .hero > .hero-badge {
    display: flex;
  }
  .hero-title { font-size: clamp(40px, 10vw, 72px); }
  .hero-line { white-space: normal; }
  .hero-sub { max-width: 40ch; }
  .section-title { font-size: clamp(30px, 5.5vw, 48px); }
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 32px;
  }
  .faq-list {
    padding: 8px 20px 0;
  }
}

/* Phone large (≤640px) */
@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }

  /* Nav — compact */
  .nav { padding: 12px 16px; }
  .nav.scrolled { padding: 10px 16px; }
  .nav-logo { font-size: 16px; gap: 10px; }
  .nav-logo-mark { width: 32px; height: 32px; }
  .nav-logo span small { font-size: 9px; letter-spacing: 0.1em; }
  .nav-cta {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .nav-cta svg { width: 11px; height: 11px; }
  .nav-drawer {
    padding: 88px 16px 20px;
  }
  .nav-drawer-inner {
    width: 100%;
    padding: 22px 18px 18px;
  }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-photo {
    background-image: url(assets/hero-mobile.jpg) !important;
    background-position: center center !important;
    animation: none !important; /* foto vertical ya enmarca bien, sin zoom */
    background-size: cover !important;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(20,25,15,0.55) 0%, rgba(20,25,15,0.25) 25%, rgba(20,25,15,0.55) 60%, rgba(20,25,15,0.95) 100%) !important;
  }
  .hero-content {
    padding: 90px 20px 140px;
    justify-content: flex-end;
  }
  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
    line-height: 1.0;
    max-width: 100%;
  }
  .hero-sub {
    font-size: 15px;
    margin-top: 18px;
    max-width: 100%;
  }
  .hero-eyebrow {
    font-size: 10px;
    padding: 6px 12px;
    margin-bottom: 20px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 10px;
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
  .hero-badge {
    display: flex;
    bottom: 24px;
    left: 20px;
    right: 20px;
    width: auto;
    border-radius: 22px;
    padding: 14px 16px;
    background: rgba(12,16,10,0.52);
  }
  .hero-scroll { display: none; }

  /* Sections — base padding */
  .pilares, .dia, .galeria, .testis, .equipo, .blog, .faq, .cta, .ubica {
    padding: 64px 0;
  }
  .section-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.05;
  }
  .section-intro { font-size: 15px; }
  .section-label { font-size: 11px; letter-spacing: 0.14em; }

  /* Pilares */
  .pilar { padding: 32px 24px 36px; }
  .pilar-title { font-size: 22px; }
  .pilar-icon { width: 56px; height: 56px; }

  /* Día en Tejedores — stacked timeline */
  .dia-header { gap: 24px; margin-bottom: 40px; }
  .dia-hour { font-size: 18px; }
  .dia-activity { font-size: 12px; }

  /* Testimonios */
  .testi { padding: 28px 22px; border-radius: 18px; }
  .testi-quote { font-size: 17px; line-height: 1.4; }
  .testi-quote-mark { font-size: 44px; }

  /* Equipo */
  .maestro-name { font-size: 17px; }

  /* Blog */
  .post-title { font-size: 20px; }

  /* FAQ */
  .faq-q { font-size: 16px; padding: 18px 0; gap: 12px; }
  .faq-icon { width: 28px; height: 28px; }
  .faq-icon svg { width: 10px; height: 10px; }
  .faq-a p { font-size: 14px; line-height: 1.6; }
  .faq-item.open .faq-a { padding-bottom: 18px; }

  /* Ubicación */
  .ubica-stat-num { font-size: clamp(44px, 14vw, 64px); }
  .ubica-stat-num span { font-size: 0.3em; }
  .ubica-map { min-height: 280px; }

  /* CTA form */
  .cta { padding: 72px 0; }
  .cta-inner { padding: 24px 20px; border-radius: 28px; }
  .cta-form { padding: 28px 22px; }
  .cta-form h3 { font-size: 20px; }
  .cta-form input, .cta-form select { font-size: 16px; padding: 12px 0; }
  .cta-form label { font-size: 11px; }
  .cta-inner h2 { font-size: clamp(32px, 9vw, 44px); }
  .cta-inner p { font-size: 15px; }

  /* Footer */
  .footer { padding: 56px 0 32px; }
  .footer-grid { gap: 32px; margin-bottom: 40px; }
  .footer-brand { font-size: 18px; }
  .footer-bottom { font-size: 11px; text-align: center; justify-content: center; }
  .footer h4 { font-size: 12px; margin-bottom: 14px; }

  /* WhatsApp FAB — smaller on mobile, already has media query, reinforce */
  .wa-fab {
    bottom: 18px;
    left: 18px;
    width: 52px;
    height: 52px;
  }

  /* Tweaks panel — make bottom-safe */
  .tweaks-panel {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  /* Buttons */
  .btn { padding: 14px 22px; font-size: 14px; }

  /* Container padding */
  .container { padding: 0 20px; }
}

/* Phone small (≤380px) — iPhone SE territory */
@media (max-width: 380px) {
  .nav { padding: 10px 12px; }
  .nav-logo span { display: none; } /* just the mark */
  .nav-cta { padding: 7px 10px; font-size: 10px; }
  .hero-title { font-size: clamp(32px, 10vw, 44px); }
  .hero-content { padding: 80px 16px 120px; }
  .container { padding: 0 16px; }
  .hero-badge {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }
  .cta-form { padding: 24px 18px; }
  .testi { padding: 24px 20px; }
}

/* Prevent horizontal overflow safety net */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video, iframe { max-width: 100%; height: auto; }
.hero-layer svg { max-width: none; } /* parallax layers need overflow */

/* ========== DOODLES — Brand illustrations ========== */
/* Container helper — sections that host doodles */
.has-doodles {
  position: relative;
  overflow: hidden;
}
.has-doodles > .container,
.has-doodles > * {
  position: relative;
  z-index: 2;
}

.doodle {
  pointer-events: none;
  user-select: none;
  will-change: transform;
  animation: doodle-float 7s ease-in-out infinite;
}
.doodle.d-slow { animation-duration: 11s; }
.doodle.d-fast { animation-duration: 5s; }
.doodle.d-delay-1 { animation-delay: -1.5s; }
.doodle.d-delay-2 { animation-delay: -3s; }
.doodle.d-delay-3 { animation-delay: -4.5s; }

@keyframes doodle-float {
  0%, 100% { transform: var(--doodle-base, none) translateY(0); }
  50%      { transform: var(--doodle-base, none) translateY(-8px); }
}

/* Banda separadora entre secciones — tira horizontal con doodles */
.doodle-band {
  position: relative;
  width: 100%;
  padding: 48px 0;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}
.doodle-band::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(88%, 1100px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 20%, var(--line) 80%, transparent 100%);
  opacity: 0.5;
}
.doodle-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.doodle-band-inner img {
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.doodle-band:hover .doodle-band-inner img:nth-child(odd) { transform: translateY(-4px) rotate(var(--r, 0deg)); }
.doodle-band:hover .doodle-band-inner img:nth-child(even) { transform: translateY(4px) rotate(var(--r, 0deg)); }

/* Mini band — smaller accent bands (inside sections) */
.doodle-band-mini {
  padding: 24px 0;
}
.doodle-band-mini .doodle-band-inner {
  justify-content: center;
  gap: 40px;
}

@media (max-width: 900px) {
  .doodle-band { padding: 32px 0; }
  .doodle-band-inner { gap: 8px; padding: 0 20px; }
  .doodle-band-inner img { width: 44px !important; height: 44px !important; }
  .doodle-band-mini .doodle-band-inner { gap: 20px; }
  .doodle-band-mini .doodle-band-inner img { width: 34px !important; height: 34px !important; }
}

@media (max-width: 560px) {
  /* Hide some middle doodles on very small screens to avoid crowding */
  .doodle-band-full .doodle-band-inner img:nth-child(4),
  .doodle-band-full .doodle-band-inner img:nth-child(6) {
    display: none;
  }
}

/* Background doodles (floating decorations inside sections) */
.bg-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-doodles .doodle {
  position: absolute;
}

/* On dark backgrounds (galería, cta), doodles are already colorful — no adjustment */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .doodle { animation: none !important; }
}
