/* el-cft.css — Página institucional El CFT de Magallanes */

/* ── QUIÉNES SOMOS ─────────────────────────────────────── */
.quienes-somos {
  padding-block: 5rem;
  background: #fff;
}

.quienes-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.quienes-intro-text .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red, #A83030);
  margin-bottom: 1rem;
}

.quienes-intro-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-ink, #111);
  margin-bottom: 1.25rem;
}

.quienes-intro-text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-muted, #555);
}

.quienes-img {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.quienes-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cifras */
.cifras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid #e8e8e6;
  padding-top: 3rem;
}

.cifra-item {
  text-align: center;
}

.cifra-numero {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-red, #A83030);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.cifra-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink, #111);
  line-height: 1.35;
}

/* ── MISIÓN Y VISIÓN ────────────────────────────────────── */
.mision-vision {
  padding-block: 5rem;
  background: #f5f5f3;
}

.mision-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2.5rem;
  border-top: 4px solid var(--color-red, #A83030);
}

.mv-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red, #A83030);
  margin-bottom: 1rem;
}

.mv-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-ink, #111);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.mv-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted, #555);
}

/* ── VALORES ────────────────────────────────────────────── */
.valores {
  padding-block: 5rem;
  background: #fff;
}

.valores-header {
  text-align: center;
  margin-bottom: 3rem;
}

.valores-header .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red, #A83030);
  margin-bottom: 0.75rem;
}

.valores-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-ink, #111);
  line-height: 1.2;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.valor-card {
  border: 1px solid #e8e8e6;
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.valor-card:hover {
  border-color: var(--color-red, #A83030);
  box-shadow: 0 4px 24px rgba(168, 48, 48, 0.08);
}

.valor-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #fdf0f0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red, #A83030);
}

.valor-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-ink, #111);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.valor-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-muted, #555);
  margin: 0;
}

/* ── MARCO NORMATIVO ────────────────────────────────────── */
.marco-normativo {
  padding-block: 5rem;
  background: #f5f5f3;
}

.marco-header {
  text-align: center;
  margin-bottom: 3rem;
}

.marco-header .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red, #A83030);
  margin-bottom: 0.75rem;
}

.marco-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-ink, #111);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.marco-header p {
  font-size: 1rem;
  color: var(--color-muted, #555);
}

.marco-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}

.marco-list li {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.marco-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-red, #A83030);
  margin-top: 0.1em;
}

.marco-list strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-ink, #111);
  margin-bottom: 0.125rem;
}

.marco-list span {
  font-size: 0.875rem;
  color: var(--color-muted, #555);
  line-height: 1.5;
}

/* ── AUTORIDADES ────────────────────────────────────────── */
.autoridades {
  padding-block: 5rem;
  background: #fff;
}

.autoridades-header {
  text-align: center;
  margin-bottom: 3rem;
}

.autoridades-header .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red, #A83030);
  margin-bottom: 0.75rem;
}

.autoridades-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-ink, #111);
  line-height: 1.2;
}

.autoridades-box {
  max-width: 640px;
  margin-inline: auto;
  background: #f5f5f3;
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
}

.autoridades-box .cargo-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted, #555);
  margin-bottom: 0.5rem;
}

.autoridades-box .cargo-nombre {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-ink, #111);
  margin-bottom: 0.25rem;
}

.autoridades-box .cargo-subtitulo {
  font-size: 0.9375rem;
  color: var(--color-muted, #555);
  margin-bottom: 1.5rem;
}

.autoridades-box .autoridades-nota {
  font-size: 0.875rem;
  color: var(--color-muted, #555);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ── HISTORIA / TIMELINE ────────────────────────────────── */
.historia {
  padding-block: 5rem;
  background: #f5f5f3;
}

.historia-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.historia-header .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red, #A83030);
  margin-bottom: 0.75rem;
}

.historia-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-ink, #111);
  line-height: 1.2;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  flex-shrink: 0;
  width: 5rem;
  text-align: right;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-red, #A83030);
  padding-top: 0.125rem;
  position: relative;
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -2.625rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-red, #A83030);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-red, #A83030);
}

.timeline-content {
  flex: 1;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink, #111);
  margin-bottom: 0.375rem;
  line-height: 1.35;
}

.timeline-content p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-muted, #555);
  margin: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .quienes-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quienes-img {
    aspect-ratio: 16/9;
    order: -1;
  }

  .cifras-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mision-vision-grid {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: 1fr;
  }

  .marco-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cifras-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .cifra-numero {
    font-size: 2.5rem;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 4rem;
  }

  .timeline-item {
    gap: 1.25rem;
  }

  .timeline-year {
    width: 4rem;
    font-size: 1rem;
  }

  .timeline-year::after {
    right: -2.125rem;
  }

  .mv-card {
    padding: 1.75rem;
  }
}

/* ── Directivos ─────────────────────────────────────────────── */
.directivos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 700px) { .directivos-grid { grid-template-columns: 1fr; } }

/* === MOBILE === */
@media (max-width: 480px) {
  .quienes-somos { padding-block: 3rem; }
  .cifras-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cifra-numero { font-size: 2.25rem; }
  .directivo-card { padding: 1.25rem; }
}

.directivo-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.07);
  padding: 1.75rem;
  gap: 1.25rem;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative; overflow: hidden;
}
.directivo-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--cft-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.directivo-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.1); transform: translateY(-3px); }
.directivo-card:hover::before { transform: scaleX(1); }

.directivo-card-top { display: flex; gap: 1rem; align-items: center; }

.directivo-foto {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: #f0f0ee;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(168,48,48,0.15);
}
.directivo-foto img { width: 100%; height: 100%; object-fit: cover; }
.directivo-foto--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f0ee, #e0e0de); color: #bbb;
}
.directivo-foto--placeholder svg { width: 32px; height: 32px; }

.directivo-head { flex: 1; min-width: 0; }
.directivo-cargo {
  display: inline-block;
  font-size: 0.6rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cft-red); margin-bottom: 0.3rem;
  background: #fdf1f1; padding: 0.15rem 0.5rem; border-radius: 4px;
}
.directivo-nombre {
  font-size: 1.05rem; font-weight: 800; margin: 0;
  letter-spacing: -0.025em; color: #1a1918; line-height: 1.2;
}

.directivo-bio {
  font-size: 0.8rem; color: #666; line-height: 1.6; margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
