/* ============== SCHOENSTATT SANTA CRUZ — DESIGN SYSTEM ============== */

:root {
  /* Palette — derived from logo */
  --brown: #8B4513;
  --brown-deep: #5e3210;
  --brown-soft: #a86a3e;
  --green: #7BB03E;
  --green-deep: #4f7a27;
  --orange: #F39C3C;
  --orange-soft: #f6b568;
  --blue: #2B7BB0;
  --blue-deep: #1f5a84;

  /* Neutrals — warm whites */
  --bg: #FDFBF7;
  --bg-warm: #F6F0E4;
  --bg-cream: #FAF5EA;
  --ink: #1F1A14;
  --ink-soft: #4a4035;
  --ink-muted: #8a7e70;
  --line: #E8DFCF;
  --line-soft: #f0e8d8;

  /* Type */
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --script: 'Dancing Script', 'Caveat', cursive;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vw, 160px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); line-height: 1.08; }
h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }

p.lead { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.script { font-family: var(--script); font-weight: 500; color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brown);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 10px 30px -10px rgba(139,69,19,0.45);
}
.btn--primary:hover { background: var(--brown-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--light {
  background: #fff;
  color: var(--brown-deep);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.2);
}
.btn--light:hover { transform: translateY(-1px); }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section ---------- */
section { padding-block: var(--section-y); position: relative; }
section.tight { padding-block: clamp(60px, 8vw, 120px); }

.section-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 24px; }
.section-head h2 { margin-bottom: 20px; }
.section-head p.lead { max-width: 640px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ========= NAV ========= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
  color: #fff;
}
.nav:not(.scrolled) .nav__brand,
.nav:not(.scrolled) .nav__links a { color: #fff; }
.nav:not(.scrolled) .nav__links a { color: rgba(255,255,255,0.85); }
.nav:not(.scrolled) .nav__links a:hover { color: #fff; }
.nav:not(.scrolled) .nav__burger { border-color: rgba(255,255,255,0.35); }
.nav:not(.scrolled) .nav__burger span,
.nav:not(.scrolled) .nav__burger span::before,
.nav:not(.scrolled) .nav__burger span::after { background: #fff; }
.nav.scrolled {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 14px 0;
  color: var(--ink);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em; }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; }
.nav__brand span small { display: block; font-family: var(--script); color: var(--green); font-size: 16px; line-height: 0.9; margin-top: 2px; }
.nav__links { display: flex; gap: 36px; align-items: center; }
.nav__links a { font-size: 14px; color: var(--ink-soft); transition: color 0.2s ease; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--brown); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav__links a:hover { color: var(--brown); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: all 0.3s ease; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: all 0.3s ease; }
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }
.nav__burger.open span { background: transparent; }
.nav__burger.open span::before { top: 0; transform: rotate(45deg); }
.nav__burger.open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 45; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 100px var(--gutter) 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif); font-size: 32px; padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(18px); opacity: 0; transition: all 0.5s ease;
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.4s; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
}

/* ========= HERO (Full-bleed carousel) ========= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  margin-top: 0;
}

/* Carousel slides stacked */
.hero__carousel {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1);
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.hero__slide.is-active .hero__slide-img {
  transform: scale(1); /* Ken-Burns zoom */
}
/* Dark readability overlay */
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,4,0.35) 0%, rgba(10,8,4,0.1) 35%, rgba(10,8,4,0.7) 100%),
    linear-gradient(90deg, rgba(10,8,4,0.45) 0%, rgba(10,8,4,0) 55%);
}

/* Content over carousel */
.hero__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  max-width: var(--container);
  margin: 0 auto;
}
.hero__content .eyebrow { color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.hero__content .eyebrow::before { background: var(--orange-soft); }
.hero__content h1 {
  color: #fff;
  max-width: 900px;
  margin-bottom: 22px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero__content h1 .script {
  display: block;
  font-size: 0.62em;
  margin-top: -8px;
  font-weight: 500;
  line-height: 1;
  color: var(--orange-soft);
}
.hero__content p.lead {
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 36px;
  font-size: clamp(17px, 1.3vw, 20px);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero bottom bar: indicators + meta */
.hero__bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 0 var(--gutter) 28px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.hero__indicators {
  display: flex; gap: 10px;
  pointer-events: auto;
}
.hero__indicator {
  width: 44px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.25);
  overflow: hidden; position: relative;
  transition: width 0.3s ease;
  cursor: pointer;
}
.hero__indicator.is-active { width: 72px; background: rgba(255,255,255,0.3); }
.hero__indicator-fill {
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0); transform-origin: left;
}
.hero__indicator.is-active .hero__indicator-fill {
  animation: heroProgress 5s linear forwards;
}
@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero__meta {
  display: flex; gap: 36px;
  color: rgba(255,255,255,0.85);
  pointer-events: auto;
}
.hero__meta > div {
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 16px;
}
.hero__meta strong {
  display: block; font-family: var(--serif);
  font-size: 26px; color: #fff; font-weight: 500;
  line-height: 1.1; margin-bottom: 2px;
}
.hero__meta span {
  font-size: 12px; color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* Scroll hint */
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 28px;
  z-index: 4;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .hero__meta { display: none; }
  .hero__bottom { justify-content: flex-start; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 110px; }
}
@media (max-width: 520px) {
  .hero__content .eyebrow { margin-bottom: 14px; }
  .hero__content h1 { font-size: 44px; }
  .hero__content p.lead { font-size: 16px; margin-bottom: 24px; }
}

/* ========= MARQUEE OF VALUES ========= */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-cream);
}
.marquee__track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: scroll 36s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--brown);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee__track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ========= SOBRE ========= */
.about__lead { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-bottom: 80px; }
.about__lead .eyebrow { margin-bottom: 24px; }
.about__lead h2 { max-width: 560px; }
.about__lead p { font-size: 17px; color: var(--ink-soft); line-height: 1.7; max-width: 520px; margin-bottom: 16px; }
.about__lead .signature { font-family: var(--script); font-size: 22px; color: var(--green-deep); margin-top: 18px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  padding: 36px 28px 32px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(60, 40, 20, 0.16); border-color: var(--line); }
.pillar__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-muted); margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; }
.pillar__num .glyph { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--brown); }
.pillar h3 { margin-bottom: 12px; }
.pillar p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent, var(--brown));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.pillar:hover::after { transform: scaleX(1); }
.pillar--brown { --accent: var(--brown); }
.pillar--green { --accent: var(--green); }
.pillar--orange { --accent: var(--orange); }
.pillar--blue { --accent: var(--blue); }
.pillar__glyph svg { color: var(--accent); }

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

/* ========= COMUNIDAD ========= */
.community { background: var(--bg-warm); }
.community__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.rama {
  aspect-ratio: 3/4;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.rama:hover { transform: translateY(-4px); }
.rama__img { position: absolute; inset: 0; }
.rama__img .ph { position: absolute; inset: 0; }
.rama__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,12,6,0.85) 100%); }
.rama__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 20px; color: #fff; z-index: 2;
}
.rama__content .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-bottom: 10px; display: block; }
.rama__content h4 { color: #fff; font-weight: 500; margin-bottom: 6px; font-size: 22px; }
.rama__content p { font-size: 13px; opacity: 0.82; line-height: 1.45; max-height: 0; overflow: hidden; transition: max-height 0.5s ease, margin-top 0.5s ease; }
.rama:hover .rama__content p { max-height: 120px; }

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

/* ========= SANTUARIO ========= */
.santuario {
  background: linear-gradient(180deg, #1a3349 0%, #0f2335 100%);
  color: #e8e2d4;
  overflow: hidden;
}
.santuario h2 { color: #fff; }
.santuario .eyebrow { color: var(--orange-soft); }
.santuario__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.santuario__visual {
  aspect-ratio: 5/6; border-radius: 4px; overflow: hidden; position: relative;
}
.santuario__visual .ph { position: absolute; inset: 0; }
.santuario__visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,15,25,0.25) 0%, rgba(10,15,25,0.5) 100%),
    linear-gradient(135deg, #3d5a78 0%, #1a2d44 100%);
  z-index: 1;
}
.santuario__visual svg.chapel {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 48%;
  color: rgba(255, 255, 255, 0.82);
}
.santuario__visual .label {
  position: absolute; bottom: 24px; left: 24px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.santuario__copy p { font-size: 18px; line-height: 1.7; color: #d7cfba; margin-bottom: 20px; max-width: 520px; }
.santuario__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 520px; }
.santuario__stats div { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.santuario__stats strong { display: block; font-family: var(--serif); font-size: 28px; color: var(--orange-soft); font-weight: 500; margin-bottom: 4px; }
.santuario__stats span { font-size: 12px; color: rgba(232,226,212,0.6); letter-spacing: 0.04em; }

.santuario__cta { margin-top: 40px; }

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

/* ========= ACTIVIDADES ========= */
.actividades__tabs { display: flex; gap: 6px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  padding: 10px 18px; border-radius: 999px; background: transparent;
  font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab:hover:not(.active) { border-color: var(--ink-soft); color: var(--ink); }

.actividades__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.act-card {
  padding: 32px; border: 1px solid var(--line-soft); border-radius: 4px;
  background: #fff; transition: all 0.35s ease;
  display: flex; flex-direction: column; gap: 14px; min-height: 260px; position: relative;
}
.act-card:hover { border-color: var(--brown); transform: translateY(-2px); }
.act-card__date {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px;
}
.act-card__date .day { font-family: var(--serif); font-size: 36px; color: var(--brown); line-height: 1; font-weight: 500; }
.act-card__date .month { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--ink-muted); text-transform: uppercase; margin-top: 6px; }
.act-card__type { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-deep); }
.act-card h4 { font-weight: 500; }
.act-card__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-muted); }
.act-card__meta .time { display: inline-flex; gap: 6px; align-items: center; }

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

/* ========= TESTIMONIOS ========= */
.testimonios { background: var(--bg-cream); overflow: hidden; }
.testimonios__track-wrap { position: relative; }
.testimonios__track { display: flex; gap: 24px; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.testimonio {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff; border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 40px 32px; display: flex; flex-direction: column; gap: 24px;
}
.testimonio__quote { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); font-style: italic; }
.testimonio__quote::before { content: "“"; font-family: var(--serif); font-size: 56px; color: var(--orange); line-height: 0; vertical-align: -0.3em; margin-right: 6px; }
.testimonio__author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.testimonio__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--brown); font-size: 18px; }
.testimonio__author strong { display: block; font-size: 15px; font-weight: 500; }
.testimonio__author span { font-size: 13px; color: var(--ink-muted); }

.testimonios__controls { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 20px; }
.testimonios__dots { display: flex; gap: 8px; }
.t-dot { width: 24px; height: 2px; background: var(--line); border-radius: 2px; transition: background 0.3s ease, width 0.3s ease; }
.t-dot.active { background: var(--brown); width: 40px; }
.testimonios__arrows { display: flex; gap: 8px; }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; }
.arrow-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.arrow-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.arrow-btn:disabled:hover { border-color: var(--line); background: transparent; color: inherit; }

@media (max-width: 900px) {
  .testimonio { flex: 0 0 calc(100% - 24px); }
}

/* ========= PARTICIPAR ========= */
.participar {
  background: var(--brown);
  color: #f7efde;
  position: relative;
  overflow: hidden;
}
.participar::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(100% 80% at 80% 20%, rgba(243, 156, 60, 0.25) 0%, transparent 50%),
    radial-gradient(80% 60% at 20% 80%, rgba(123, 176, 62, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.participar__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  position: relative; z-index: 1;
}
.participar h2 { color: #fff; font-size: clamp(40px, 5vw, 72px); }
.participar .eyebrow { color: var(--orange-soft); }
.participar p { color: rgba(247, 239, 222, 0.85); font-size: 17px; line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.participar__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.steps { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.step { padding: 24px 28px; background: rgba(0,0,0,0.15); display: grid; grid-template-columns: 44px 1fr auto; gap: 20px; align-items: center; transition: background 0.3s ease; }
.step:hover { background: rgba(0,0,0,0.25); }
.step__num { font-family: var(--serif); font-size: 28px; color: var(--orange-soft); font-weight: 500; }
.step h4 { color: #fff; font-weight: 500; margin-bottom: 4px; font-size: 18px; }
.step p { font-size: 14px; color: rgba(247, 239, 222, 0.7); margin: 0; }
.step__arrow { color: rgba(255,255,255,0.5); transition: transform 0.3s ease, color 0.3s ease; }
.step:hover .step__arrow { transform: translateX(4px); color: var(--orange-soft); }

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

/* ========= CONTACTO ========= */
.contacto__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contacto__info h2 { margin-bottom: 24px; }
.contacto__info p.lead { margin-bottom: 40px; max-width: 440px; }
.contacto__details { display: flex; flex-direction: column; gap: 20px; max-width: 420px; }
.contacto__detail { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.contacto__detail:last-child { border-bottom: 1px solid var(--line-soft); }
.contacto__detail .icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; color: var(--brown); flex-shrink: 0; }
.contacto__detail strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.contacto__detail span { font-size: 14px; color: var(--ink-soft); }

.form { display: flex; flex-direction: column; gap: 22px; background: #fff; border: 1px solid var(--line-soft); border-radius: 4px; padding: clamp(28px, 4vw, 44px); }
.form__row { display: flex; flex-direction: column; gap: 8px; position: relative; }
.form label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.form input, .form textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  border: none; border-bottom: 1px solid var(--line); padding: 12px 0;
  background: transparent; outline: none; transition: border-color 0.3s ease;
  resize: vertical;
}
.form input:focus, .form textarea:focus { border-color: var(--brown); }
.form textarea { min-height: 100px; }
.form__row.error input, .form__row.error textarea { border-color: #c54b2e; }
.form__error { font-size: 12px; color: #c54b2e; min-height: 16px; }
.form__submit { align-self: flex-start; margin-top: 8px; }
.form__success {
  background: var(--green); color: #fff;
  padding: 28px; border-radius: 4px;
  text-align: center;
  animation: popIn 0.5s ease;
}
.form__success strong { font-family: var(--serif); font-size: 24px; font-weight: 500; display: block; margin-bottom: 8px; }
.form__success span { font-size: 14px; opacity: 0.9; }
@keyframes popIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

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

/* ========= FOOTER ========= */
.footer { background: #15110b; color: #d8cfbc; padding: 100px 0 40px; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 20% 0%, rgba(243,156,60,0.08) 0%, transparent 50%);
}
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer__brand img { width: 56px; height: 56px; object-fit: contain; filter: brightness(1.1); }
.footer__brand span { font-family: var(--serif); font-size: 22px; color: #fff; }
.footer__brand span small { display: block; font-family: var(--script); color: var(--green); font-size: 18px; line-height: 0.9; margin-top: 2px; }
.footer__about p { font-size: 14px; color: rgba(216, 207, 188, 0.6); line-height: 1.7; max-width: 320px; }

.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 20px; font-weight: 400; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: #d8cfbc; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--orange-soft); }

.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.footer__social a:hover { background: var(--orange); border-color: var(--orange); color: #15110b; transform: translateY(-2px); }

.footer__bottom { padding-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__motto { font-family: var(--script); font-size: 28px; color: var(--green); }
.footer__copyright { font-size: 12px; color: rgba(216, 207, 188, 0.4); letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: span 2; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__about { grid-column: span 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ========= TWEAKS PANEL ========= */
.tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; width: 300px;
  box-shadow: 0 24px 60px -20px rgba(30, 20, 10, 0.3);
  display: none;
  font-family: var(--sans);
}
.tweaks.visible { display: block; }
.tweaks h6 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; font-weight: 400; display: flex; justify-content: space-between; align-items: center; }
.tweaks h6 button { font-size: 16px; color: var(--ink-muted); }
.tweaks__group { margin-bottom: 18px; }
.tweaks__group:last-child { margin-bottom: 0; }
.tweaks__label { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; display: block; font-weight: 500; }
.tweaks__swatches { display: flex; gap: 8px; }
.tweaks__swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; transition: all 0.2s ease; }
.tweaks__swatches button.active { border-color: var(--ink); transform: scale(1.08); }
.tweaks__options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks__options button { padding: 6px 10px; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); transition: all 0.2s ease; }
.tweaks__options button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Theme overrides */
body[data-theme="green"] { --brown: #4f7a27; --brown-deep: #3a5a1c; --brown-soft: #7BB03E; }
body[data-theme="blue"] { --brown: #2B7BB0; --brown-deep: #1f5a84; --brown-soft: #4a9bd0; }
body[data-theme="orange"] { --brown: #d17a2a; --brown-deep: #a85f1a; --brown-soft: #F39C3C; }

body[data-type="cormorant"] { --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Lato', system-ui, sans-serif; }
body[data-type="fraunces"] { --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif; }

body[data-density="compact"] { --section-y: clamp(60px, 8vw, 110px); }
