/*
Theme Name: AMICO
Theme URI: https://hermanasdeamico.com
Author: AMICO (Amistad Misionera en Cristo Obrero)
Author URI: https://hermanasdeamico.com
Description: Tema hecho a la medida para el sitio web de AMICO (Amistad Misionera en Cristo Obrero), reproduciendo su diseño original. Funciona junto con el plugin complementario "AMICO Content Blocks", que agrega los bloques y patrones de contenido que usa este tema.
Version: 1.2.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: amico
*/

/* ==========================================================================
   AMICO — Amistad Misionera en Cristo Obrero
   Design system
   ========================================================================== */

:root {
  --green: #17ab4d;
  --green-dark: #0b7a34;
  --green-bright: #2fd66b;
  --green-light: #e0f8e7;
  --gold: #e3a72e;
  --gold-dark: #b9800f;
  --gold-light: #fdf1da;
  --ink: #14231a;
  --black: #121212;
  --paper: #fbfaf6;
  --paper-alt: #e8f6ec;
  --white: #ffffff;
  --text: #2b2f2b;
  --muted: #5b645c;
  --line: #dcebe0;
  --shadow: 0 10px 30px -12px rgba(18, 33, 22, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(18, 33, 22, 0.18);
  --grad-green: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  --grad-gold: linear-gradient(135deg, #f3c65c, var(--gold-dark));
  --radius: 18px;
  --radius-sm: 10px;
  --radius-btn: 999px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --accent-teal: #0f7a86;
  --accent-teal-light: #4fb8c9;
  --grad-teal: linear-gradient(135deg, var(--accent-teal-light), var(--accent-teal));
  --surface-dark: #14231a;
  --header-bg: rgba(251, 250, 246, 0.92);
  --section-py: 76px;
  --section-py-mobile: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Inline links inside body copy (not nav/buttons, which style themselves)
   need to visibly read as links, unlike the reset above. */
.lede a, p a {
  color: var(--green-dark);
  text-decoration: underline;
  font-weight: 800;
}
.section--dark .lede a, .section--dark p a {
  color: #7fe0a4;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.32;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--alt {
  background: var(--paper-alt);
}

.section--dark {
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 214, 107, 0.22), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(227, 167, 46, 0.16), transparent 45%),
    var(--surface-dark);
  color: #dce7de;
}
.section--dark h2, .section--dark h3 { color: #ffffff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.section--dark .eyebrow { color: #7fe0a4; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.section-head {
  max-width: 780px;
  margin: 0 0 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow), 0 0 0 4px var(--green-light); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}
.btn--outline:hover { background: var(--green-light); }

.btn--gold {
  background: var(--grad-gold);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { box-shadow: var(--shadow); }

.btn--teal {
  background: var(--grad-teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--teal:hover { box-shadow: var(--shadow); }

.btn--dark {
  background: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--dark:hover { box-shadow: var(--shadow); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 3px solid;
  border-image: var(--grad-green) 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text small {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.nav__toggle:hover { background: var(--paper-alt); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__menu a:hover { background: var(--green-light); color: var(--green-dark); }
.nav__menu a.is-active { background: var(--grad-green); color: #fff; }

.nav__menu .nav__cta {
  background: var(--grad-gold);
  color: var(--ink);
  margin-left: 6px;
  box-shadow: var(--shadow-sm);
}
.nav__menu .nav__cta:hover { box-shadow: var(--shadow); }
.nav__menu .nav__cta.is-active { background: var(--grad-gold); color: var(--ink); }

/* Submenús (páginas anidadas bajo un ítem del menú, vía Apariencia > Menús) */
.nav__menu li { position: relative; }
.nav__menu .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav__menu .menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.7;
}
.nav__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}
.nav__menu li:hover > .sub-menu,
.nav__menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu .sub-menu a {
  display: block;
  width: 100%;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}
.nav__menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(47, 214, 107, 0.32), transparent 55%),
    radial-gradient(circle at 14% 88%, rgba(227, 167, 46, 0.22), transparent 45%),
    linear-gradient(180deg, #0f1b13 0%, #14231a 55%, #16281c 100%);
  color: #eef4ee;
  padding: 96px 0 84px;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--green-bright), var(--gold)) 1;
}

.hero__globe {
  position: absolute;
  right: -140px;
  top: -80px;
  width: 520px;
  height: 520px;
  opacity: 0.16;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow { color: #7fe0a4; }

.hero h1 { color: #fff; }

.hero__verse {
  border-left: 3px solid var(--green);
  padding-left: 18px;
  margin: 26px 0 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #d8e6da;
}
.hero__verse cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #7fe0a4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero__card-mark { width: 120px; height: 120px; margin: 0 auto 18px; }
.hero__card p { color: #cbdccd; text-align: center; margin-bottom: 4px; }
.hero__card strong { display: block; text-align: center; color: #fff; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 26px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad-green);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid--3 .card:nth-child(3n+2)::before,
.grid--4 .card:nth-child(4n+2)::before { background: var(--grad-gold); }
.grid--3 .card:nth-child(3n+3)::before,
.grid--4 .card:nth-child(4n+3)::before { background: var(--grad-teal); }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.grid--3 .card:nth-child(3n+2) .card__icon,
.grid--4 .card:nth-child(4n+2) .card__icon { background: var(--grad-gold); }
.grid--3 .card:nth-child(3n+3) .card__icon,
.grid--4 .card:nth-child(4n+3) .card__icon { background: var(--grad-teal); }
.card__icon svg { width: 26px; height: 26px; }
.card__icon .dashicons { font-size: 26px; width: 26px; height: 26px; line-height: 1; }

.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* Quote block */
.quote {
  position: relative;
  margin: 0 0 1.1em;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 26px 28px;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}

/* Ideal / checklist */
.ideal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ideal-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.ideal-list li:nth-child(3n+2) { border-left-color: var(--gold-dark); }
.ideal-list li:nth-child(3n+3) { border-left-color: var(--accent-teal); }
.ideal-list .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  margin-top: 2px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--line);
}
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-green);
  box-shadow: 0 0 0 4px var(--green-light);
}
.timeline__item:nth-child(3n+2)::before { background: var(--grad-gold); box-shadow: 0 0 0 4px var(--gold-light); }
.timeline__year {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Accordion (prayers) */
.accordion { display: grid; gap: 16px; }
.accordion details {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accordion details:nth-child(2) { border-left-color: var(--gold-dark); }
.accordion details:nth-child(3) { border-left-color: var(--accent-teal); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.accordion details:nth-child(2) summary .plus { background: var(--grad-gold); }
.accordion details:nth-child(3) summary .plus { background: var(--grad-teal); }
.accordion details[open] summary .plus { transform: rotate(45deg); }
.accordion__body {
  padding: 0 26px 28px;
  color: var(--muted);
  white-space: pre-line;
  font-size: 1.02rem;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.accordion__body .signature {
  display: block;
  margin-top: 18px;
  text-align: right;
  font-style: italic;
  color: var(--green-dark);
  font-weight: 700;
}

/* Works / mission list */
.work {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.work:last-child { border-bottom: none; }
.work__letter {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.work:nth-child(3n+2) .work__letter { background: var(--grad-gold); }
.work:nth-child(3n+3) .work__letter { background: var(--grad-teal); }
.work h3 { margin-bottom: 8px; }
.work p { color: var(--muted); margin-bottom: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-green);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
}
.tag__flag {
  width: 20px;
  height: 15px;
  flex: none;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
  object-fit: cover;
}
.tag-row .tag:nth-child(2n) { background: var(--grad-gold); color: var(--ink); }
.tag-row .tag:nth-child(3n) { background: var(--grad-teal); }
a.tag { text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.tag:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }

/* Bio / founder */
.bio-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: start;
}
.bio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.bio-card__mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.bio-card__mark svg { width: 46px; height: 46px; }
.bio-card dl { margin: 18px 0 0; }
.bio-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 800;
  margin-top: 14px;
}
.bio-card dd { margin: 4px 0 0; color: var(--muted); }

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cv-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.cv-list li:last-child { border-bottom: none; }
.cv-list .yr { font-weight: 800; color: var(--green-dark); }

.spirit-point {
  margin-bottom: 30px;
}
.spirit-point__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  font-weight: 800;
  margin-right: 12px;
  font-family: var(--serif);
  box-shadow: var(--shadow-sm);
}
.grid--2 .card:nth-child(2n) .spirit-point__num { background: var(--grad-gold); }

/* ==========================================================================
   Forms (contact)
   ========================================================================== */

.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid;
  border-image: var(--grad-green) 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-light);
}
.field textarea { min-height: 170px; resize: vertical; }
.field-hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.field-required { color: var(--gold-dark); }
.field input[type="file"] {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  color: var(--green-dark);
  font-size: 0.94rem;
}
.privacy-note svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }

.form-alert {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-weight: 700;
  display: none;
}
.form-alert.is-visible { display: block; }
.form-alert--ok { background: var(--green-light); color: var(--green-dark); }
.form-alert--error { background: #fdeceb; color: #b3271f; }

.confirm {
  text-align: center;
  padding: 40px 20px;
}
.confirm__mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface-dark);
  color: #cfe0d2;
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand__mark { width: 40px; height: 40px; }
.footer-brand strong { font-family: var(--serif); color: #fff; font-size: 1.1rem; }
.site-footer p { color: #a9bcac; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #cfe0d2; transition: color 0.15s ease; }
.footer-links a:hover { color: #7fe0a4; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #cfe0d2;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--grad-green); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-safeguard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
  padding: 18px 20px;
  background: rgba(227, 167, 46, 0.1);
  border: 1px solid rgba(227, 167, 46, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e8d9b8;
}
.footer-safeguard svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--gold); }
.footer-safeguard a { color: #f3c65c; font-weight: 700; text-decoration: underline; }
.footer-safeguard a:hover { color: #ffdb85; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8ea391;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   404
   ========================================================================== */

.notfound {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__globe { display: none; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-card { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .brand { font-size: 1.05rem; }
  .brand__text small { display: none; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav__menu.is-open {
    max-height: 620px;
    padding: 10px 20px 20px;
    border-bottom-color: var(--line);
  }
  .nav__menu a { padding: 13px 14px; }
  .nav__menu .nav__cta { margin-left: 0; text-align: center; }

  /* En móvil el submenú no es un desplegable flotante: se muestra siempre,
     indentado, dentro de la misma lista colapsable. */
  .nav__menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
  }
  .nav__menu .sub-menu a { padding: 10px 14px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--section-py-mobile) 0; }
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
  .work { grid-template-columns: 48px 1fr; }
  .form-wrap { padding: 26px; }
}

/* ==========================================================================
   Personalización (Apariencia > Personalizar)
   Every rule below is driven by a body class that inc/customizer.php adds
   based on a Customizer choice; the theme looks exactly as before unless an
   admin actually changes something in Personalizar.
   ========================================================================== */

/* Marca: ocultar el subtítulo junto al logo */
body.amico-hide-tagline .brand__text small { display: none; }

/* Estilo: forma de bordes y botones */
body.amico-radius-square {
  --radius: 10px;
  --radius-sm: 6px;
  --radius-btn: 8px;
}

/* Estilo: intensidad de sombras */
body.amico-shadow-soft {
  --shadow: 0 4px 16px -8px rgba(18, 33, 22, 0.14);
  --shadow-sm: 0 2px 8px -4px rgba(18, 33, 22, 0.10);
}
body.amico-shadow-none {
  --shadow: none;
  --shadow-sm: none;
}

/* Espaciado entre secciones */
body.amico-spacing-compact { --section-py: 52px; --section-py-mobile: 40px; }
body.amico-spacing-spacious { --section-py: 100px; --section-py-mobile: 72px; }

/* Tipografía: títulos (fuente de reemplazo de --serif) */
body.amico-font-heading-playfair { --serif: "Playfair Display", Georgia, serif; }
body.amico-font-heading-merriweather { --serif: "Merriweather", Georgia, serif; }
body.amico-font-heading-ptserif { --serif: "PT Serif", Georgia, serif; }
body.amico-font-heading-cormorant { --serif: "Cormorant Garamond", Georgia, serif; }
body.amico-font-heading-georgia { --serif: Georgia, "Times New Roman", serif; }

/* Tipografía: texto (fuente de reemplazo de --sans) */
body.amico-font-body-opensans { --sans: "Open Sans", "Segoe UI", sans-serif; }
body.amico-font-body-lato { --sans: "Lato", "Segoe UI", sans-serif; }
body.amico-font-body-sourcesans { --sans: "Source Sans 3", "Segoe UI", sans-serif; }
body.amico-font-body-mulish { --sans: "Mulish", "Segoe UI", sans-serif; }
body.amico-font-body-inter { --sans: "Inter", "Segoe UI", sans-serif; }
body.amico-font-body-system { --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* Header: quitar el efecto "fijo" al hacer scroll */
body.amico-header-static .site-header { position: static; }

/* Header: transparente sobre el hero de la portada hasta hacer scroll
   (main.js agrega/quita .is-scrolled; sin JS o sin scroll se queda
   transparente, que es la portada, así que sigue siendo legible). */
body.amico-header-transparent.home .site-header:not(.is-scrolled) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-image: none;
  border-bottom-color: transparent;
}
body.amico-header-transparent.home .site-header:not(.is-scrolled) .brand,
body.amico-header-transparent.home .site-header:not(.is-scrolled) .brand__text small,
body.amico-header-transparent.home .site-header:not(.is-scrolled) .nav__menu a,
body.amico-header-transparent.home .site-header:not(.is-scrolled) .nav__toggle span {
  color: #fff;
}
body.amico-header-transparent.home .site-header:not(.is-scrolled) .nav__toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}
body.amico-header-transparent.home .site-header.is-scrolled { position: sticky; }

/* Esquema de color: Oscuro (fijo para todas las visitas, elegido en
   Personalizar > Colores > Esquema de color). Las secciones que ya eran
   oscuras (hero, "Canal de protección", footer) usan --surface-dark y no
   cambian; esto solo invierte las secciones normales/claras. */
body.amico-dark {
  --paper: #101f17;
  --paper-alt: #16281f;
  --white: #17291f;
  --ink: #f2f7f3;
  --text: #d8e6da;
  --muted: #9fb6a2;
  --line: #2a4535;
  --green-dark: #7fe0a4;
  --green-light: rgba(53, 211, 116, 0.14);
  --gold-dark: #f6d27a;
  --gold-light: rgba(227, 167, 46, 0.14);
  --header-bg: rgba(16, 31, 23, 0.85);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
}
body.amico-dark .form-alert--error { background: rgba(179, 39, 31, 0.18); color: #ff8f86; }

/* ==========================================================================
   AMICO Content Blocks (plugin) — auto-numbering/lettering via CSS counters
   so the block editor never needs to hardcode a position number.
   ========================================================================== */
.amico-spirit-points { counter-reset: amico-spirit; }
.amico-spirit-points .amico-numbered { counter-increment: amico-spirit; }
.amico-spirit-points .amico-numbered .spirit-point__num::before { content: counter(amico-spirit); }

.amico-work-list { counter-reset: amico-work; }
.amico-work-list .work { counter-increment: amico-work; }
.amico-work-list .work .work__letter::before { content: counter(amico-work, lower-alpha); }

/* Card block: photo mode (team/person cards) instead of the icon circle */
.card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* CTA banner */
.cta-banner {
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-banner--green { background: var(--grad-green); }
.cta-banner--gold { background: var(--grad-gold); }
.cta-banner--dark {
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 214, 107, 0.22), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(227, 167, 46, 0.16), transparent 45%),
    var(--surface-dark);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner--gold h2 { color: var(--ink); }
.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin: 0 auto 26px;
  font-size: 1.05rem;
}
.cta-banner--gold p { color: rgba(20, 35, 26, 0.78); }
.cta-banner .btn {
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}
.cta-banner .btn:hover { box-shadow: var(--shadow-sm); }

/* Stats / cifras destacadas (reuses .grid.grid--N for the column layout) */
.amico-stats { text-align: center; }
.amico-stat__number {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--green-dark);
  line-height: 1.1;
}
.amico-stat__label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Testimonial */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.testimonial__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-sm);
}
.testimonial__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.testimonial__name { font-weight: 800; color: var(--green-dark); }
.testimonial__role { color: var(--muted); font-size: 0.85rem; }

/* Próximos eventos */
.amico-events { display: grid; }
.amico-event {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.amico-event:last-child { border-bottom: none; }
.amico-event__date {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.05rem;
}
.amico-event__title { margin-bottom: 4px; }
.amico-event__location {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.amico-event__description { color: var(--muted); margin: 0; }
@media (max-width: 600px) {
  .amico-event { grid-template-columns: 1fr; gap: 4px; }
}

/* Ubicación / contacto */
.amico-location {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
}
.amico-location__name { margin-bottom: 8px; }
.amico-location__row {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 4px;
}
.amico-location__row:last-child { margin-bottom: 0; }
.amico-location__row strong { color: var(--text); font-weight: 700; }

/* Aviso / Alerta */
.amico-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.96rem;
  border: 1px solid transparent;
}
.amico-notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.amico-notice--info { background: var(--green-light); color: var(--green-dark); border-color: rgba(23, 171, 77, 0.25); }
.amico-notice--success { background: var(--green-light); color: var(--green-dark); border-color: rgba(23, 171, 77, 0.25); }
.amico-notice--warning { background: var(--gold-light); color: var(--gold-dark); border-color: rgba(227, 167, 46, 0.35); }
.amico-notice--error { background: #fdeceb; color: #b3271f; border-color: rgba(179, 39, 31, 0.25); }
body.amico-dark .amico-notice--error { background: rgba(179, 39, 31, 0.18); color: #ff8f86; }

/* Carrusel de grupos AMICO */
.amico-carousel { position: relative; padding: 0 8px; }
.amico-carousel__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.amico-carousel__track::-webkit-scrollbar { display: none; }
.amico-group {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.amico-group__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-sm);
}
.amico-group__name { margin-bottom: 6px; }
.amico-group__description { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.amico-group__countries { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.amico-group__countries .tag { font-size: 0.72rem; padding: 5px 11px; }
.amico-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--text);
}
.amico-carousel__btn:hover { box-shadow: var(--shadow); }
.amico-carousel__btn--prev { left: -18px; }
.amico-carousel__btn--next { right: -18px; }
.amico-carousel__btn svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .amico-carousel__btn { display: none; } }

/* Photo gallery (grid) and photo carousel slide. Each <img>'s aspect-ratio
   is set inline per photo (Horizontal/Vertical/Cuadrada), these rules only
   provide a fallback for the rare case an image renders with no style. */
.amico-gallery__title, .amico-carousel__title { margin-bottom: 20px; }

.amico-gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.amico-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.amico-gallery__item figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--muted); }

.amico-photo-slide { flex: 0 0 260px; scroll-snap-align: start; margin: 0; }
.amico-photo-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}
.amico-photo-slide figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* Centros y programas (escuelas, dispensarios, centros de acogida) */
.amico-program__kind {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.amico-program__location { color: var(--muted); font-size: 0.88rem; margin-top: -6px; }

/* Estrellas del testimonio */
.testimonial__stars { color: var(--gold-dark); margin-bottom: 10px; font-size: 1.1rem; letter-spacing: 2px; }

/* ==========================================================================
   Bloques de contenido simple de AMICO (amico/image, amico/list,
   amico/divider, amico/spacer — los reemplazos propios de AMICO para los
   antiguos bloques nativos de WordPress Imagen/Lista/Separador/Espaciador).
   amico/text y amico/heading no necesitan reglas propias: usan las mismas
   etiquetas p/h2/h3/h4 que ya llevan estilo más arriba en este archivo.
   Cualquier contenido antiguo que todavía use un bloque nativo de WordPress
   (wp:paragraph, wp:heading, wp:image, wp:columns, wp:list, wp:separator)
   sigue mostrándose con estas mismas reglas, ya que comparten las etiquetas
   HTML normales (p, h2-h4, img, ul/ol, hr) sin ninguna clase especial.
   ========================================================================== */
.amico-image img,
.wp-block-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
  width: 100%;
}
.amico-image figcaption,
.wp-block-image figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.amico-image--wide { max-width: none; }

.wp-block-columns {
  gap: 32px;
}
@media (max-width: 700px) {
  .wp-block-columns { flex-wrap: wrap; }
}

.amico-list,
.wp-block-list {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
  color: var(--text);
}
.amico-list li,
.wp-block-list li { margin-bottom: 0.4em; }
.amico-list li::marker,
.wp-block-list li::marker { color: var(--green-dark); font-weight: 700; }

.amico-divider-line,
.wp-block-separator {
  border: none;
  border-top: 3px solid var(--line);
  margin: 2.4em auto;
  width: 100px;
}
.amico-divider-line--wide,
.wp-block-separator.is-style-wide { width: 100%; }
.section--dark .amico-divider-line,
.section--dark .wp-block-separator { border-top-color: rgba(255, 255, 255, 0.25); }

.amico-spacer { width: 100%; }

/* Divisor con forma (ola/diagonal) al final de una sección */
.amico-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.amico-divider svg { width: 100%; height: 100%; display: block; }
