/* =====================================================
   AVIVA Comunidad de Fe — Sistema de diseño
   Identidad: negro/blanco puro, tipografía geométrica
   ===================================================== */

:root {
  /* Color */
  --black: #000000;
  --ink: #0a0a0a;
  --graphite: #161616;
  --steel: #2a2a2a;
  --smoke: #4a4a4a;
  --silver: #8a8a8a;
  --bone: #e9e7e2;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line: rgba(255,255,255,0.12);
  --line-dark: rgba(0,0,0,0.12);

  /* Typography */
  --display: 'Outfit', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease); }
a:hover { opacity: .65; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
}
.eyebrow.on-dark { color: var(--silver); }

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: lowercase;
}
.display--xxl { font-size: clamp(3.5rem, 14vw, 12rem); }
.display--xl  { font-size: clamp(3rem, 10vw, 8.5rem); }
.display--l   { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.display--m   { font-size: clamp(2rem, 5vw, 3.75rem); }
.display--s   { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 60ch;
}
.lede.on-dark { color: var(--bone); }

p { max-width: 70ch; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--ink); color: var(--white); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--bone { background: var(--bone); color: var(--ink); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--split {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1fr 1fr; }
  .grid--split-asym { grid-template-columns: 5fr 7fr; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--on-dark { color: var(--white); }
.nav--on-light { color: var(--ink); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.04em;
  line-height: 1;
}
.nav__brand { max-height: 72px; overflow: hidden; }
.nav__brand svg { width: 90px; height: auto; }
.nav__brand-img {
  display: none !important;
  height: 36px;
  width: auto;
  max-width: 200px;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__brand-img--text {
  width: 150px;
  height: auto;
  max-width: 150px;
  max-height: 60px;
}
/* Estado inicial sobre hero oscuro → ISO blanco */
.nav--on-dark:not(.is-scrolled) .nav__brand-img--iso-light { display: block !important; }
/* Header fijo tras scroll sobre hero oscuro → logo textual blanco */
.nav--on-dark.is-scrolled .nav__brand-img--text { display: block !important; }
/* Header sobre fondo claro (legales) → ISO negro */
.nav--on-light .nav__brand-img--iso-dark { display: block !important; }
.nav__menu {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
}
@media (min-width: 1024px) {
  .nav__menu { display: flex; }
}
.nav__link {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: currentColor;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav__cta:hover { opacity: 1; background: currentColor; color: var(--ink); }
.nav--on-dark .nav__cta:hover { color: var(--ink); background: var(--white); }
.nav--on-light .nav__cta:hover { color: var(--white); background: var(--ink); }

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  color: var(--white);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled.nav--on-light {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-bottom-color: var(--line-dark);
}

/* Toggle (hamburguesa) — solo móvil y tablet (<1024px) */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
}
@media (min-width: 1024px) {
  .nav__toggle { display: none; }
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--white);
  padding: 6rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateY(-100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s var(--ease), visibility 0s linear .45s;
  z-index: 49;
}
.nav__drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: transform .45s var(--ease), opacity .3s var(--ease), visibility 0s linear 0s;
}
@media (min-width: 1024px) {
  .nav__drawer { display: none; }
}
.nav__drawer a {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: lowercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1.05rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { opacity: 1; transform: translateY(-2px); }
.btn--solid     { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--graphite); }
.btn--invert    { background: var(--white); color: var(--ink); }
.btn--invert:hover { background: var(--bone); }
.btn--ghost     { border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ghost.on-dark:hover { color: var(--ink); background: var(--white); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(7rem, 14vw, 12rem) clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.06), transparent 45%),
    radial-gradient(circle at 82% 88%, rgba(255,255,255,0.04), transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.hero__lockup { display: flex; flex-direction: column; gap: .25em; }
.hero__lockup .display { display: block; }
.hero__lockup .accent { color: var(--silver); }
.hero__meta {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) {
  .hero__meta { grid-template-columns: 5fr 4fr 3fr; align-items: end; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.hero__scroll::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- Service cards (signature module) ---------- */
.service-stack {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--ink);
  align-items: center;
}
@media (min-width: 800px) {
  .service { grid-template-columns: 4fr 6fr 2fr; gap: 2rem; }
}
.service__day {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: lowercase;
}
.service__time { color: var(--silver); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.service__name { font-size: 1.05rem; color: var(--bone); max-width: 38ch; }
.service__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}
.service__cta:hover { color: var(--white); }

/* ---------- Big quote ---------- */
.quote {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: lowercase;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}
.quote__cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--body);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
}

/* ---------- Pillars / value cards ---------- */
.pillar {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section--dark .pillar { border-color: var(--line); }
.pillar__num {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--smoke);
}
.section--dark .pillar__num { color: var(--silver); }
.pillar__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.pillar__text {
  color: var(--smoke);
  font-size: 1rem;
}
.section--dark .pillar__text { color: var(--bone); }

/* ---------- Type block (graphic element) ---------- */
.typeblock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.04em;
  text-transform: lowercase;
  line-height: .85;
  font-size: clamp(3rem, 11vw, 9rem);
}
.typeblock span {
  padding: .15em .25em;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 1.4em;
}
.section--dark .typeblock span { border-color: var(--line); }
.section--paper .typeblock span,
.section--bone .typeblock span { border-color: var(--line-dark); }
.typeblock span.invert { background: var(--white); color: var(--ink); }
.section--dark .typeblock span.invert { background: var(--white); color: var(--ink); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 7vw, 7rem);
  position: relative;
  overflow: hidden;
}
.page-header__crumbs {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.page-header__crumbs span { color: var(--smoke); }
.page-header__title {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  text-transform: lowercase;
}
.page-header__lede {
  margin-top: 1.5rem;
  max-width: 60ch;
  color: var(--bone);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

/* ---------- Pastor card ---------- */
.pastors {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .pastors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pastor {
  border: 1px solid var(--line-dark);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.section--dark .pastor { border-color: var(--line); }
.pastor__role {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--smoke);
}
.section--dark .pastor__role { color: var(--silver); }
.pastor__name {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
}
.pastor__bio { color: var(--smoke); }
.section--dark .pastor__bio { color: var(--bone); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.5rem; max-width: 640px; }
.form__field { display: flex; flex-direction: column; gap: .5rem; }
.form__label {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 600;
}
.section--dark .form__label { color: var(--silver); }
.form__input,
.form__textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: .75rem 0;
  font-size: 1.05rem;
  color: inherit;
  outline: none;
  width: 100%;
  border-radius: 0;
  transition: border-color .25s var(--ease);
}
.form__input:focus,
.form__textarea:focus { border-bottom-color: var(--silver); }
.form__textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 2rem;
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .footer__top { grid-template-columns: 6fr 3fr 3fr; }
}
.footer__brand {
  display: inline-block;
  line-height: 0;
}
.footer__brand img {
  display: block;
  width: 300px;
  height: auto;
  max-width: 300px;
  object-fit: contain;
}
.footer__col h4 {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer__bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-size: .82rem;
  color: var(--silver);
}
.footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.footer__bottom-row--copyright { justify-content: flex-start; }
.footer__bottom-row--legal { justify-content: flex-end; }
.footer__bottom-divider {
  height: 1px;
  background: var(--line);
  margin: .85rem 0 .35rem;
}
.footer__copyright { color: var(--silver); }
.footer__credits { color: var(--silver); }
.footer__credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--smoke);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.footer__credits a:hover { opacity: 1; color: var(--white); text-decoration-color: var(--white); }
.footer__credits a strong { color: var(--white); font-weight: 600; }
.footer__social { display: flex; gap: 1.25rem; }
.footer__social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.footer__social a:hover { opacity: 1; background: var(--white); color: var(--ink); border-color: var(--white); }
.footer__social svg { width: 16px; height: 16px; }

/* ---------- Utilities ---------- */
.u-mt-s { margin-top: 1rem; }
.u-mt-m { margin-top: 2rem; }
.u-mt-l { margin-top: 3rem; }
.u-mb-s { margin-bottom: 1rem; }
.u-mb-m { margin-bottom: 2rem; }
.u-mb-l { margin-bottom: 3rem; }
.u-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider {
  height: 1px;
  background: var(--line-dark);
  margin-block: clamp(2rem, 4vw, 4rem);
}
.section--dark .divider { background: var(--line); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Map block ---------- */
.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: var(--steel);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  padding-block: 1.25rem;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -.02em;
}
.marquee__track span { padding-right: 3rem; border-right: 1px solid var(--line); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Selection ---------- */
::selection { background: var(--ink); color: var(--white); }

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .marquee, .hero__scroll { display: none; }
  body { color: #000; background: #fff; }
}

/* Enlaces legales bajo el copyright */
.footer__legal-links { color: var(--silver); font-size: .92rem; }
.footer__legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--smoke); }
.footer__legal-links a:hover { color: var(--white); text-decoration-color: var(--white); }

/* =====================================================
   AVIVA Consent — Banner de cookies (AEPD/RGPD)
   ===================================================== */

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: #0a0a0a;
  color: #fff;
  border-top: 1px solid #2a2a2a;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  animation: consentSlideUp .35s ease;
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
@keyframes consentSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.consent-banner__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center;
}
@media (min-width: 760px) {
  .consent-banner__inner { grid-template-columns: 1fr auto; gap: 2rem; }
}
.consent-banner__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .25rem; }
.consent-banner__lede  { font-size: .92rem; line-height: 1.5; color: #cccccc; margin: 0; max-width: 70ch; }
.consent-banner__lede a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent-banner__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

.consent-btn {
  font-family: inherit; font-size: .9rem; font-weight: 600;
  padding: .65rem 1.1rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.consent-btn--primary { background: #fff; color: #0a0a0a; }
.consent-btn--primary:hover { background: #e8e8e8; }
.consent-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.consent-btn--ghost-light:hover { border-color: #fff; }
.consent-btn--ghost { background: transparent; color: #0a0a0a; border-color: #c8c8c8; }
.consent-btn--ghost:hover { border-color: #0a0a0a; }
.consent-btn--solid { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.consent-btn--solid:hover { background: #222; border-color: #222; }

/* ============== Modal ============== */
.consent-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.consent-modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.55); }
.consent-modal__dialog {
  position: relative; background: #fff; color: #0a0a0a;
  width: 100%; max-width: 640px; max-height: 90vh;
  border-radius: 12px; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  overflow: hidden; animation: consentFadeIn .25s ease;
}
@keyframes consentFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.consent-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid #ececec; }
.consent-modal__title  { margin: 0; font-size: 1.2rem; font-weight: 700; }
.consent-modal__close  { background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: #888; padding: 0 .25rem; }
.consent-modal__close:hover { color: #0a0a0a; }
.consent-modal__body   { overflow-y: auto; padding: 1.25rem 1.5rem; font-size: .98rem; line-height: 1.55; }
.consent-modal__body > p { margin: 0 0 1rem; color: #555; }
.consent-modal__form   { display: grid; gap: .65rem; }
.consent-modal__footer { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; padding: 1rem 1.5rem; border-top: 1px solid #ececec; background: #fafafa; }

.consent-toggle {
  display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; row-gap: .2rem;
  padding: .9rem 1rem; border: 1px solid #e5e5e5; border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.consent-toggle:hover { border-color: #0a0a0a; }
.consent-toggle:has(input:checked) { border-color: #0a0a0a; background: #fafafa; }
.consent-toggle input[type=checkbox] {
  grid-row: 1; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0;
  cursor: pointer; accent-color: #0a0a0a;
}
.consent-toggle--locked input[type=checkbox] { cursor: not-allowed; opacity: .5; }
.consent-toggle__name { grid-column: 2; grid-row: 1; font-weight: 600; }
.consent-toggle__name em { color: #888; font-style: normal; font-weight: 400; font-size: .9em; }
.consent-toggle__desc { grid-column: 2; font-size: .9rem; color: #666; line-height: 1.5; }
.consent-toggle__desc em { color: #888; font-style: italic; }

body.consent-modal-open { overflow: hidden; }

/* ============== Placeholder de mapa ============== */
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center;
  background: #f4f4f4 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 12c-13.3 0-24 10.7-24 24 0 18 24 52 24 52s24-34 24-52c0-13.3-10.7-24-24-24z" fill="none" stroke="%23bbb" stroke-width="3"/><circle cx="50" cy="36" r="8" fill="none" stroke="%23bbb" stroke-width="3"/></svg>') center 24px / 80px no-repeat;
  border: 1px dashed #d1d1d1; border-radius: 12px;
  padding: 120px 1.5rem 1.75rem; min-height: 320px; color: #555;
}
.map-placeholder__title { font-weight: 600; color: #2a2a2a; margin: 0; }
.map-placeholder__lede  { margin: 0; font-size: .92rem; max-width: 42ch; line-height: 1.55; }
.map-placeholder__buttons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .25rem; }
.map-placeholder .consent-btn { font-size: .88rem; padding: .55rem 1rem; }

/* ============== Trigger en footer ============== */
.footer__cookie-trigger {
  background: none; border: none; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--smoke);
}
.footer__cookie-trigger:hover { color: var(--white); text-decoration-color: var(--white); }

/* =====================================================
   /donaciones — Formulario de donación online (v2)
   ===================================================== */
.section--donate {
  background: linear-gradient(180deg, var(--paper) 0%, #efece5 100%);
  position: relative;
}
.grid--split.donate {
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.donate__perks {
  list-style: none;
  padding: 0;
  font-size: .95rem;
  color: var(--smoke);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.donate__perks li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.55;
}
.donate__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
}
.donate__perks strong { color: var(--ink); font-weight: 700; }

/* Card del formulario — flotante con sombra */
.donate-form--v2 {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 10px 30px -8px rgba(0,0,0,.12),
    0 30px 60px -20px rgba(0,0,0,.08);
}

/* Toggle frecuencia */
.donate-form__frequency {
  display: flex;
  background: var(--paper);
  border-radius: 999px;
  padding: 4px;
  align-self: center;
  gap: 2px;
  border: 1px solid var(--line-dark);
}
.donate-form__freq-btn {
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--smoke);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.donate-form__freq-btn:hover { color: var(--ink); opacity: 1; }
.donate-form__freq-btn.is-active {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3);
}

/* Importes sugeridos como cards visuales */
.donate-form__amounts {
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.donate-form__suggestions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
}
.amount-card {
  position: relative;
  padding: 1.1rem 0;
  border: 1.5px solid var(--line-dark);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.amount-card:hover {
  border-color: var(--ink);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.12);
}
.amount-card.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.25);
}
.amount-card__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
}
.amount-card__currency {
  font-size: .65em;
  opacity: .7;
}

/* Input importe libre — secundario */
.donate-form__custom {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.donate-form__custom-label {
  font-size: .72rem;
  color: var(--silver);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.donate-form__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line-dark);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.donate-form__input-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}
.donate-form__input-wrap input {
  flex: 1;
  border: 0;
  padding: .95rem 1.25rem;
  font-size: 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  background: transparent;
  outline: none;
  color: var(--ink);
  -moz-appearance: textfield;
  width: 100%;
}
.donate-form__input-wrap input::-webkit-outer-spin-button,
.donate-form__input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.donate-form__input-wrap input::placeholder { color: var(--silver); }
.donate-form__currency {
  padding-right: 1.25rem;
  font-size: 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--silver);
}

/* Sección fiscal desplegable */
.donate-form__fiscal {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.25rem;
}
.donate-form__fiscal summary {
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .4rem 0;
  color: var(--ink);
}
.donate-form__fiscal summary::-webkit-details-marker { display: none; }
.donate-form__fiscal summary::after {
  content: "";
  width: 22px;
  height: 22px;
  margin-left: auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s var(--ease);
}
.donate-form__fiscal[open] summary::after { transform: rotate(180deg); }
.donate-form__fiscal-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 8px;
  color: var(--ink);
}
.donate-form__fiscal-icon svg { width: 18px; height: 18px; }
.donate-form__fiscal-tag {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--smoke);
  background: var(--paper);
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-left: .25rem;
}
.donate-form__fiscal-body {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: 1.1rem;
}
.donate-form__fiscal-hint {
  font-size: .85rem;
  color: var(--smoke);
  line-height: 1.55;
}
.donate-form__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.donate-form__field > span {
  font-size: .7rem;
  color: var(--silver);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
.donate-form__field input {
  border: 1.5px solid var(--line-dark);
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: 1rem;
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.donate-form__field input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

/* Aviso Bizum no disponible en mensual */
.donate-form__bizum-notice {
  padding: .85rem 1.1rem;
  background: var(--paper);
  border-radius: 8px;
  border-left: 3px solid var(--ink);
  font-size: .85rem;
  color: var(--smoke);
  line-height: 1.5;
}
.donate-form__bizum-notice span { color: var(--ink); margin-right: .4rem; font-weight: 700; }

/* Submit CTA — grande, full-width */
.donate-form__submit {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.15rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,.2);
}
.donate-form__submit:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(0,0,0,.28);
  background: #000;
}
.donate-form__submit[disabled] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.donate-form__submit .arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.donate-form__submit:hover .arrow { transform: translateX(3px); }
.donate-form__submit-text [data-cta-amount]:not(:empty)::before { content: ""; }

/* Separador "o" entre Stripe y PayPal */
.donate-form__divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: .25rem 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}
.donate-form__divider::before,
.donate-form__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}
.donate-form__divider span {
  padding: 0 .15rem;
}

/* CTA secundario — PayPal (wordmark en texto, sin SVG) */
.donate-form__paypal {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .45rem;
  padding: .95rem 1.5rem;
  background: #ffc439;       /* PayPal yellow oficial */
  color: #003087;            /* PayPal navy */
  border: 1px solid #f0b32f;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 3px 10px -2px rgba(0,0,0,.1);
}
.donate-form__paypal:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: #f5b921;
  box-shadow: 0 5px 15px -2px rgba(0,0,0,.15);
}
.donate-form__paypal[disabled] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.donate-form__paypal-text {
  color: #003087;
  font-weight: 600;
}
/* Wordmark PayPal: bicolor oficial, italic, sans-serif clásica */
.donate-form__paypal-brand {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1.1em;
  letter-spacing: -.015em;
}
.donate-form__paypal-brand-pay { color: #003087; } /* azul oscuro */
.donate-form__paypal-brand-pal { color: #009cde; } /* azul claro */

/* Logos de métodos de pago (reales) */
.donate-form__methods {
  display: flex;
  gap: .85rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: .25rem;
}
.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 .55rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  opacity: .8;
  transition: opacity .2s var(--ease);
}
.pay-logo:hover { opacity: 1; }
.pay-logo svg { display: block; height: 18px; width: auto; }
.pay-logo--bizum svg { height: 16px; }
.pay-logo--paypal svg { height: 16px; }

.donate-form__trust {
  font-size: .76rem;
  color: var(--silver);
  text-align: center;
  line-height: 1.6;
  margin-top: -.35rem;
}
.donate-form__trust strong { color: var(--smoke); font-weight: 600; }

/* Responsive */
@media (max-width: 760px) {
  .donate-form__suggestions { grid-template-columns: repeat(2, 1fr); }
  .donate-form__input-wrap input,
  .donate-form__currency { font-size: 1.3rem; }
  .amount-card { min-height: 72px; }
  .amount-card__value { font-size: 1.55rem; }
}

/* =====================================================
   /donaciones-gracias y /donaciones-cancelada
   ===================================================== */
.donate-status { padding-block: clamp(5rem, 12vw, 9rem); }
.donate-status__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.donate-status__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-dark);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,.18);
}
.donate-status__icon svg { width: 44px; height: 44px; }
.donate-status--success .donate-status__icon { color: var(--ink); }
.donate-status--cancel .donate-status__icon { color: var(--smoke); }

.donate-status__title {
  margin-top: .5rem;
  font-size: clamp(2.75rem, 8vw, 5rem);
  letter-spacing: -.04em;
  line-height: .95;
}
.donate-status__lede {
  max-width: 56ch;
  margin: 0 auto;
}
.donate-status__steps {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  text-align: left;
}
.donate-status__step {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
}
.donate-status__step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--silver);
  display: block;
  margin-bottom: .5rem;
}
.donate-status__step h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  color: var(--ink);
}
.donate-status__step p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--smoke);
}
.donate-status__step a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-dark);
}
.donate-status__ctas {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 760px) {
  .donate-status__steps { grid-template-columns: 1fr; }
  .donate-status__icon { width: 64px; height: 64px; }
  .donate-status__icon svg { width: 32px; height: 32px; }
}
