/* Fundación El Encuentro · estilos del sitio
   Conversión a HTML estático del sitio que vivía en Squarespace (octubre 2026).
   Replica el sistema de Squarespace 7.1 que usaba el sitio: temas de sección,
   escala tipográfica y la grilla "fluid engine" (8 columnas en mobile, 24 en desktop).
   Las posiciones de cada bloque están en el <style> de cada página. */

/* Tipografías del manual de marca, servidas desde el propio sitio (licencia OFL, ver assets/fonts) */
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/piazzolla-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/piazzolla-latin-opsz-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/piazzolla-latin-ext-opsz-normal.woff2") format("woff2-variations"), url("../fonts/piazzolla-latin-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/piazzolla-latin-opsz-italic.woff2") format("woff2-variations"), url("../fonts/piazzolla-latin-opsz-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --tierra: #2C2216;
  --oliva: #2D4F2E;
  --vid: #471224;
  --algodon: #F3EFE3;
  --blanco: #FFFFFF;

  --gutter: 3vw;
  --mobile-gutter: 6vw;
  --max-w: 1200px;
  --gap: 11px;

  --font-heading: "Piazzolla", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-button: "Poppins", system-ui, sans-serif;

  --h1: 4;
  --h2: 2.8;
  --h3: 2.2;
  --h4: 1.2;
  --large: 1.4;
  --small: .9;
}

/* ---------- Temas de sección (mismos nombres que en Squarespace) ---------- */
[data-theme], body {
  --bg: var(--blanco);
  --text: var(--tierra);
  --heading: var(--tierra);
  --link: var(--vid);
  --btn-bg: var(--vid);
  --btn-text: var(--blanco);
  --field-bg: var(--algodon);
  --field-text: var(--tierra);
  --hl: var(--vid);
  --nav: var(--tierra);
}
[data-theme="white-bold"] { --heading: var(--vid); }
[data-theme="light"] { --bg: var(--algodon); --field-bg: var(--blanco); }
[data-theme="light-bold"] { --bg: var(--algodon); --heading: var(--vid); --field-bg: var(--blanco); }
[data-theme="dark"], [data-theme="dark-bold"], [data-theme="black"], [data-theme="black-bold"] {
  --bg: var(--oliva);
  --text: var(--blanco);
  --heading: var(--blanco);
  --link: var(--blanco);
  --btn-bg: var(--blanco);
  --btn-text: #000;
  --field-bg: var(--tierra);
  --field-text: var(--blanco);
  --hl: var(--blanco);
  --nav: var(--blanco);
}
[data-theme="black"], [data-theme="black-bold"] { --bg: var(--tierra); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 100;
  line-height: 1.8em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  --v: 1;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 700; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .8em 1.2em; background: var(--vid); color: var(--blanco);
  font-family: var(--font-button); font-weight: 500;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Escala tipográfica: misma fórmula que Squarespace */
h1 { --v: var(--h1); }
h2 { --v: var(--h2); }
h3 { --v: var(--h3); }
h4 { --v: var(--h4); }
.lg { --v: var(--large); }
.sm { --v: var(--small); }
body, h1, h2, h3, h4, .lg, .sm {
  font-size: calc((var(--v) - 1) * calc(.012 * min(100vh, 900px)) + 1rem);
}
@media (min-width: 768px), (orientation: landscape) {
  body, h1, h2, h3, h4, .lg, .sm {
    font-size: min(calc((var(--v) - 1) * 1.2vw + 1rem), max(calc((var(--v) - 1) * .012 * var(--max-w) + 1rem), calc(var(--v) * 1rem)));
  }
}

h1, h2, h3, h4 {
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-weight: 100;
  /* Squarespace servía Piazzolla en cortes estáticos (tamaño óptico 14); el variable
     a tamaño óptico automático dibuja los títulos más angostos */
  font-variation-settings: "opsz" 14;
  letter-spacing: 0;
  color: var(--heading);
  line-height: calc(1.4em * (1 + (1 - var(--v)) / 25));
}
p, .lg, .sm { margin: 1rem 0; line-height: 1.8em; }

/* ---------- Bloques de texto ---------- */
.txt > :first-child { margin-top: 0; }
.txt > :last-child { margin-bottom: 0; }
.txt p, .txt h1, .txt h2, .txt h3, .txt h4, .txt li { white-space: pre-wrap; }
.txt .ta-c { text-align: center; }
.txt .ta-r { text-align: right; }
.txt a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.txt p a { color: var(--link); }
.txt ul, .txt ol { margin: 1rem 0; padding-left: 40px; }
.txt li { list-style: none; }
.txt li > * { margin-top: .5em; margin-bottom: .5em; }
.txt ul li > :first-child::before {
  content: "\2022";
  display: inline-block;
  margin-left: -40px;
  min-width: 40px;
  padding-right: 10px;
  text-align: right;
}
.txt ol { counter-reset: rte; }
.txt ol li { counter-increment: rte; }
.txt ol li > :first-child::before {
  content: counter(rte) ". ";
  display: inline-block;
  margin-left: -40px;
  min-width: 40px;
  padding-right: 6px;
  text-align: right;
}
.c-white { color: var(--blanco); }
.c-black { color: var(--tierra); }
.c-accent { color: var(--vid); }
.c-lightAccent { color: var(--algodon); }
.c-darkAccent { color: var(--oliva); }

/* Resaltados a mano alzada (los "highlights" de Squarespace) */
.hl {
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-underline { background-image: var(--hl-line); background-position: 0 100%; background-size: 100% .45em; padding-bottom: .12em; }
.hl-scribble { background-image: var(--hl-scribble); background-position: 0 100%; background-size: 100% .6em; padding-bottom: .1em; }
.hl-enclose {
  background-image: var(--hl-line), var(--hl-line-r);
  background-position: 0 0, 0 100%;
  background-size: 100% .45em, 100% .45em;
  padding: .1em .08em;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
  color: var(--nav);
  --bg: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.3vw max(var(--gutter), calc((100% - var(--max-w)) / 2));
}
.header-logo { display: block; line-height: 0; }
.header-logo img { display: block; height: 50px; width: auto; }
.header-logo .logo-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 2.2rem; }
.social { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.social a { display: block; color: var(--nav); line-height: 0; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2em;
  text-align: center;
  cursor: pointer;
  border: 0;
  background: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .8; }
/* primario: contorno con trazo 0, en la práctica es texto */
.btn-primary { color: var(--btn-bg); font-size: 1rem; padding: 1.2rem; border-radius: 7.2px; }
.btn-header { color: var(--nav); font-size: .9rem; padding: 1em 1.3em; }
/* secundario y terciario: sólidos, esquinas rectas */
.btn-secondary { background: var(--btn-bg); color: var(--btn-text); font-size: 1.1rem; padding: 1.2rem 2.004rem; }
.btn-tertiary { background: var(--btn-bg); color: var(--btn-text); font-size: .9rem; padding: 1.2rem 2.004rem; }
.btn-small { font-size: .9rem; }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  padding: 0; border: 0; background: none;
  color: var(--nav); cursor: pointer;
  position: relative; z-index: 30;
}
.menu-toggle span {
  position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor;
  transition: transform .2s ease, top .2s ease;
}
.menu-toggle span:first-child { top: 14px; }
.menu-toggle span:last-child { top: 21px; }
.menu-open .menu-toggle span:first-child { top: 18px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 25;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  background: var(--menu-bg, var(--blanco));
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu .btn-header { font-size: 1rem; }

@media (max-width: 799px) {
  .header-inner { padding: 6vw; }
  .header-logo .logo-desktop { display: none; }
  .header-logo .logo-mobile { display: block; height: 30px; }
  .header-actions { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 800px) {
  .mobile-menu { display: none; }
}

/* ---------- Secciones ---------- */
.sec {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  color: var(--text);
}
.sec.va-top { align-items: flex-start; }
.sec.va-bottom { align-items: flex-end; }
.sec.sh-small { min-height: 33vh; }
.sec.sh-medium { min-height: 66vh; }
.sec.sh-large { min-height: 100vh; }
.sec-wrap { position: relative; width: 100%; }
/* El header es transparente y flota sobre la primera sección: se le suma su alto */
main > .sec:first-child { padding-top: calc(4.6vw + 63px); }
@media (max-width: 799px) {
  main > .sec:first-child { padding-top: calc(12vw + 30px); }
}
.sec.sh-small > .sec-wrap { padding-top: 3.3vmax; padding-bottom: 3.3vmax; }
.sec.sh-medium > .sec-wrap { padding-top: 6.6vmax; padding-bottom: 6.6vmax; }
.sec.sh-large > .sec-wrap { padding-top: 10vmax; padding-bottom: 10vmax; }
.sec-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sec-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sec-bg::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--overlay, .15); }

/* ---------- Grilla (fluid engine) ---------- */
.fe {
  --grid-gutter: calc(var(--mobile-gutter) - var(--gap));
  --cell-max-width: calc((var(--max-w) - (var(--gap) * 7)) / 8);
  display: grid;
  position: relative;
  grid-template-columns:
    minmax(var(--grid-gutter), 1fr)
    repeat(8, minmax(0, var(--cell-max-width)))
    minmax(var(--grid-gutter), 1fr);
  row-gap: var(--row-gap, var(--gap));
  column-gap: var(--gap);
  overflow-x: clip;
}
@media (min-width: 768px) {
  .fe {
    --grid-gutter: calc(var(--gutter) - var(--gap));
    --cell-max-width: calc((var(--max-w) - (var(--gap) * 23)) / 24);
    --container-width: min(var(--max-w), calc(100vw - var(--gutter) * 2));
    grid-template-columns:
      minmax(var(--grid-gutter), 1fr)
      repeat(24, minmax(0, var(--cell-max-width)))
      minmax(var(--grid-gutter), 1fr);
  }
}
.fe-block { position: relative; min-width: 0; }
.blk { height: 100%; display: flex; flex-direction: column; justify-content: flex-start; position: relative; }
.blk-align { display: flex; height: 100%; width: 100%; }

/* Imagen */
.img-box { position: relative; width: 100%; height: 100%; overflow: hidden; }
.img-box img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.img-box.fill img { object-fit: cover; }
.img-box.fit img { object-fit: contain; }
.img-box.circle { height: auto; aspect-ratio: 1 / 1; margin: auto; max-height: 100%; border-radius: 50%; }
.img-box a { display: block; position: absolute; inset: 0; }

/* Botón */
/* Botón estirado al bloque, como en el fluid engine: alto del bloque, sin padding vertical */
.blk-button { align-items: stretch; }
.blk-button .btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding-top: 0; padding-bottom: 0; }

/* ---------- Formularios ---------- */
.form { font-size: 1rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form .field { margin-bottom: 1rem; }
.form .legend, .form label .t {
  display: block;
  font-size: .9rem;
  line-height: 1.8em;
  color: var(--text);
}
.form .req { opacity: .55; margin-left: .3em; }
.form .row { display: flex; gap: 10px; }
.form .row > * { flex: 1; }
.form .row label .t { font-size: .8rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  margin: 6px 0 4px;
  padding: 12px;
  border: 0;
  border-radius: 300px;
  background: var(--field-bg);
  color: var(--field-text);
  font: inherit;
  font-weight: 100;
}
.form textarea { height: 100px; min-height: 60px; border-radius: 12px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--vid); outline-offset: 1px; }
.form .check { display: flex; align-items: center; gap: .6em; font-size: .8rem; margin-top: .3rem; }
.form .check input {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; margin: 0; flex: none;
  border: 1px solid var(--text); border-radius: 50%; background: transparent; cursor: pointer;
}
.form .check input:checked { background: var(--text); box-shadow: inset 0 0 0 2px var(--bg); }
.form .actions { margin-top: 1.4rem; }
.form .actions.center { text-align: center; }
.form .btn-primary { padding-left: 1rem; padding-right: 1rem; }
.form-done { text-align: center; padding: 2rem 0; }
.form-error { color: var(--vid); font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Newsletter (Renacer) */
.newsletter { text-align: center; }
.newsletter h2 { --v: var(--h3); margin: 0 0 1.4rem; }
.newsletter .fields { display: flex; gap: 6px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.form.newsletter input {
  flex: 1 1 180px;
  max-width: 280px;
  padding: 1.1em 1.2em;
  border: 1px solid rgba(44, 34, 22, .15);
  border-radius: 0;
  background: var(--blanco);
  color: var(--tierra);
  font: inherit;
  font-size: .8rem;
}
.newsletter .btn-primary { font-size: .9rem; }

@media (max-width: 767px) {
  .form .row { flex-direction: column; gap: 0; }
  .form.newsletter input { max-width: none; flex-basis: 100%; }
}

/* Trazos de los resaltados, generados como SVG en línea (Vid en secciones claras, blanco en oscuras) */
:root {
  --hl-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.4 C 40 5.3, 82 4.7, 122 5.4 S 178 6.6, 198 5.5' fill='none' stroke='%23471224' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hl-line-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 4.9 C 46 6.1, 98 6.3, 148 5.3 S 186 4.3, 198 5.1' fill='none' stroke='%23471224' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hl-scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 3.6 C 60 2.8, 140 2.4, 197 3.6 C 140 4.9, 66 6.1, 5 8.2 C 62 7.6, 128 7.4, 168 8 C 122 9.4, 64 10.4, 34 11.2' fill='none' stroke='%23471224' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="dark"], [data-theme="dark-bold"], [data-theme="black"], [data-theme="black-bold"] {
  --hl-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.4 C 40 5.3, 82 4.7, 122 5.4 S 178 6.6, 198 5.5' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hl-line-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 4.9 C 46 6.1, 98 6.3, 148 5.3 S 186 4.3, 198 5.1' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hl-scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 3.6 C 60 2.8, 140 2.4, 197 3.6 C 140 4.9, 66 6.1, 5 8.2 C 62 7.6, 128 7.4, 168 8 C 122 9.4, 64 10.4, 34 11.2' fill='none' stroke='%23FFFFFF' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
