/* La Fundación — alineado con diseño Figma (página interior) */

.btn.btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn.btn--outline:hover,
.btn.btn--outline:focus-visible {
  background: rgba(118, 176, 65, 0.08);
}

.btn--wide {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Migas */
.fd-breadcrumb {
  margin-bottom: 20px;
}

.fd-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.fd-breadcrumb__list a {
  color: var(--muted);
  text-decoration: none;
}

.fd-breadcrumb__list a:hover,
.fd-breadcrumb__list a:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

.fd-breadcrumb__list li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #b0b0b0;
  text-decoration: none;
  pointer-events: none;
}

.fd-breadcrumb__list li[aria-current="page"] {
  color: #111;
  font-weight: 600;
}

/* Hero */
.fd-hero {
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.fd-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 44%);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.fd-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: #111;
}

.fd-hero__subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--page-accent);
  max-width: 36ch;
}

.fd-hero__lead {
  margin: 0 0 24px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 48ch;
}

.fd-hero__cta::after {
  content: " ›";
  font-weight: 700;
}

.fd-hero__figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  max-width: min(100%, 520px);
  margin-left: auto;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 17, 19, 0.12);
}

.fd-hero__figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Secciones genéricas */
.fd-section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.fd-section--tint {
  background: #f6f8f4;
}

/* Órganos de gobierno — franja verde corporativo, textos en blanco */
.fd-section--patron-green {
  background: var(--green);
  color: #fff;
}

.fd-section--patron-green .fd-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.fd-section--patron-green .fd-h2 {
  color: #fff;
}

.fd-section--patron-green .fd-prose {
  color: rgba(255, 255, 255, 0.96);
}

.fd-section--patron-green .fd-patron-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.fd-section--patron-green .fd-patron__name {
  color: #fff;
}

.fd-section--patron-green .fd-patron__role {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.fd-section--patron-green .fd-patron__avatar {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.18);
}

.fd-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.fd-kicker--brand {
  color: var(--page-accent);
}

.fd-h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.fd-h2--green {
  color: var(--page-accent);
}

.fd-prose {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 62ch;
}

.fd-prose--max {
  max-width: 56ch;
}

.fd-prose--tight {
  margin-bottom: 0;
}

.fd-prose--lead {
  margin-top: 0;
  margin-bottom: 0;
}

/* Bloque editorial: todo alineado a la izquierda */
.fd-stack {
  max-width: 56rem;
  margin: 0;
  text-align: left;
}

.fd-section-head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.fd-section-head .fd-kicker,
.fd-section-head .fd-h2,
.fd-section-head .fd-prose {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.fd-section-head .fd-prose {
  max-width: 48ch;
}

.fd-section--valores {
  border-top: 3px solid rgba(118, 176, 65, 0.35);
}

/* Los cinco valores necesitan ancho real del contenedor (no el tope de .fd-stack) */
.fd-section--valores .fd-stack {
  max-width: none;
}

/* Misión + identidad */
.fd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.fd-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.fd-pillar {
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}

.fd-section--tint .fd-pillar {
  background: #fff;
}

.fd-pillar__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fd-pillar__icon svg {
  display: block;
}

.fd-icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-pillar__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  text-align: center;
  line-height: 1.3;
}

.fd-pillar__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.fd-identity {
  position: sticky;
  top: 96px;
  padding: 26px 24px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 17, 19, 0.06);
}

.fd-identity__title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
}

.fd-identity__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.fd-identity__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text);
}

.fd-identity__list li:last-child {
  margin-bottom: 0;
}

.fd-check {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}

.fd-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fd-link-arrow {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.fd-link-arrow::after {
  content: " →";
  font-weight: 600;
}

.fd-link-arrow:hover,
.fd-link-arrow:focus-visible {
  text-decoration: underline;
}

/* Patronato — composición centrada (como antes) */
.fd-patron-kicker {
  margin: 0 0 20px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fd-patron-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
  padding: 12px 0 8px;
  max-width: 920px;
  margin: 0 auto;
}

.fd-patron {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fd-patron--lead .fd-patron__avatar {
  width: 140px;
  height: 140px;
}

.fd-patron-grid .fd-patron__avatar {
  width: 112px;
  height: 112px;
}

.fd-patron__avatar {
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 5px #fff,
    0 10px 36px rgba(15, 17, 19, 0.12);
}

.fd-patron__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fd-patron__photo--soriano {
  object-position: 62% 28%;
}

.fd-patron__name {
  margin: 0 0 10px;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  max-width: 22ch;
}

.fd-patron--lead .fd-patron__name {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: 28ch;
}

.fd-patron__role {
  display: inline-block;
  margin: 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: #e4e8df;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.fd-patron-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  align-items: end;
  justify-items: center;
}

.fd-patron--stagger-low {
  transform: translateY(14px);
}

.fd-patron--stagger-high {
  transform: translateY(-10px);
}

@media (max-width: 720px) {
  .fd-patron-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .fd-patron--stagger-low,
  .fd-patron--stagger-high {
    transform: none;
  }

  .fd-patron--lead .fd-patron__avatar {
    width: 124px;
    height: 124px;
  }

  .fd-patron-grid .fd-patron__avatar {
    width: 100px;
    height: 100px;
  }
}

/* Timeline */
.fd-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  position: relative;
  justify-content: space-between;
}

.fd-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 2px;
  background: linear-gradient(90deg, #d6e8c8, #c5dcb0, #d6e8c8);
  z-index: 0;
}

.fd-step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 6px;
}

.fd-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.fd-step__icon {
  color: var(--green);
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
}

.fd-step__title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.25;
}

.fd-step__text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.fd-steps__footer {
  margin-top: 40px;
  text-align: center;
}

.fd-steps__footer .btn::after {
  content: " ›";
}

/* Valores — rejilla que no aplasta el texto (minmax 0 + salto de línea) */
.fd-values {
  list-style: none;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  padding: 0;
  display: grid;
  width: 100%;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fd-value {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
  min-height: 76px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(118, 176, 65, 0.28);
  border-radius: var(--radius-card);
  box-sizing: border-box;
}

.fd-section--valores .fd-value {
  box-shadow: 0 1px 0 rgba(118, 176, 65, 0.1);
}

.fd-value__icon {
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: rgba(118, 176, 65, 0.08);
}

.fd-value__icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-value__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
  font-weight: 700;
  color: #111;
  text-align: left;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 1180px) {
  .fd-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .fd-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .fd-values {
    grid-template-columns: 1fr;
  }
}

/* Cita célebre — bloque editorial con acento verde */
.fd-cita-celebre {
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  padding: clamp(1.25rem, 3vw, 1.65rem) 1.25rem 1.35rem 1.35rem;
  max-width: none;
  text-align: left;
  border: 1px solid rgba(118, 176, 65, 0.28);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: rgba(118, 176, 65, 0.07);
  position: relative;
}

.fd-cita-celebre::before {
  content: "“";
  display: block;
  margin: 0 0 2px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 0.85;
  font-weight: 400;
  color: var(--green);
  opacity: 0.45;
}

.fd-cita-celebre__text {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: #2c2c2c;
  quotes: none;
  max-width: 42ch;
}

.fd-cita-celebre__text::after {
  content: "”";
  color: var(--green);
  opacity: 0.55;
  font-style: normal;
}

.fd-cita-celebre__firma {
  margin: 0;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.fd-cita-celebre__firma::before {
  content: "— ";
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .fd-pillars {
    grid-template-columns: 1fr;
  }

  .fd-split {
    grid-template-columns: 1fr;
  }

  .fd-identity {
    position: static;
  }

  .fd-steps {
    flex-direction: column;
    gap: 28px;
  }

  .fd-steps::before {
    display: none;
  }

  .fd-step__num {
    margin-bottom: 8px;
  }
}

@media (max-width: 900px) {
  .fd-hero__grid {
    grid-template-columns: 1fr;
  }

  .fd-hero__figure {
    margin: 0 auto;
    max-width: 360px;
  }

}

/* Patronato — retrato pendiente: iniciales sobre círculo */
.fd-patron__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 176, 65, 0.18);
  color: var(--green);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
}

.fd-section--patron-green .fd-patron__avatar--placeholder {
  background: #689c39;
  color: #fff;
}

.fd-patron-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

/* Equipo — diferenciado del patronato */
.fd-equipo {
  max-width: 920px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(22px, 3vw, 30px) 20px 26px;
  border-radius: var(--radius-card);
  background: #f6f8f4;
  border: 1px solid var(--border);
}

.fd-section--patron-green .fd-equipo {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.fd-equipo__kicker {
  margin-bottom: 18px;
}

.fd-patron--equipo .fd-patron__avatar {
  width: 104px;
  height: 104px;
}

/* Valores agrupados — tres bloques */
.fd-values-groups {
  list-style: none;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  padding: 0;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.fd-value-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.5vw, 26px) clamp(18px, 2vw, 22px);
  background: #fff;
  border: 1px solid rgba(118, 176, 65, 0.28);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 0 rgba(118, 176, 65, 0.1);
}

.fd-value-group__icon {
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: rgba(118, 176, 65, 0.08);
}

.fd-value-group__icon svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-value-group__title {
  margin: 16px 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--page-accent);
  line-height: 1.3;
}

.fd-value-group__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fd-value-group__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.fd-value-group__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Fines estratégicos */
.fd-fines {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.fd-fin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-card);
}

.fd-fin__num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.55;
}

.fd-fin__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

@media (max-width: 1024px) {
  .fd-values-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .fd-values-groups {
    grid-template-columns: 1fr;
  }

  .fd-patron-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
