/* =========================================================
   NOSOTROS · Estilos exclusivos de la página
   Comparte la paleta y los componentes de la página principal.
   ========================================================= */

.nosotros-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 25%, rgba(146,128,182,.35), transparent 30%),
    linear-gradient(115deg, var(--primary), var(--secondary));
  color: var(--white);
}

.nosotros-hero-content {
  max-width: 650px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nosotros-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.nosotros-hero p {
  max-width: 580px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.7;
}

/* ================= ESTRUCTURA ================= */

.nosotros-section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  min-height: 390px;
}

.media-placeholder {
  height: 100%;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--neutral);
}

.media-placeholder i {
  color: var(--accent);
  font-size: 4rem;
}

.media-placeholder span {
  color: var(--text);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.media-placeholder small {
  font-size: .7rem;
}

.about-copy h2,
.section-heading-center h2 {
  margin: 0 0 15px;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.about-copy h2::after,
.section-heading-center h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  background: var(--accent);
}

.placeholder-text {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.8;
}

.highlight-quote {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
  padding: 17px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
}

.highlight-quote i {
  color: var(--secondary);
  font-size: 1.5rem;
}

/* ================= MISIÓN / VISIÓN ================= */

.mission-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading-center {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading-center .section-kicker {
  margin-bottom: 8px;
}

.section-heading-center h2::after {
  margin-left: auto;
  margin-right: auto;
}

.section-heading-center p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 980px;
  margin: 0 auto;
}

.mission-card {
  padding: 38px 35px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}

.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(48,42,58,.08);
}

.mission-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(146,128,182,.18);
  color: var(--primary);
  font-size: 1.7rem;
}

.mission-card > span {
  color: var(--secondary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mission-card h3 {
  margin: 8px 0 10px;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
}

/* ================= CREENCIAS ================= */

.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.belief-card {
  min-height: 205px;
  padding: 30px 22px;
  text-align: center;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.belief-card i {
  display: block;
  margin-bottom: 13px;
  color: var(--secondary);
  font-size: 2rem;
}

.belief-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.belief-card p {
  max-width: 230px;
  margin: auto;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.6;
}

/* ================= STAFF ================= */

.staff-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.staff-card {
  padding: 22px 16px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
}

.staff-photo {
  width: 135px;
  height: 135px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--neutral);
}

.staff-photo i {
  font-size: 4rem;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.staff-card h3 {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 800;
}

.staff-card p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

.staff-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.staff-social a {
  color: var(--secondary);
  font-size: 1rem;
}

/* ================= CIERRE ================= */

.nosotros-closing {
  background: var(--primary);
  color: var(--white);
}

.closing-content {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  text-align: left;
}

.closing-content > i {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.8rem;
  flex: 0 0 auto;
}

.closing-content span {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
  font-weight: 800;
}

.closing-content p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 991px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-media,
  .media-placeholder {
    min-height: 300px;
  }

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

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

@media (max-width: 767px) {

  .nosotros-hero {
    min-height: 260px;
  }

  .nosotros-hero-content {
    padding: 55px 0;
  }

  .nosotros-nav {
    position: static;
  }

  .nosotros-nav a:last-child {
    border-bottom: 0;
  }

  .nosotros-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .mission-grid,
  .belief-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .belief-card {
    min-height: 170px;
  }

  .closing-content {
    padding: 30px 0;
    text-align: center;
    flex-direction: column;
    gap: 15px;
  }

  .closing-content p {
    max-width: 500px;
    margin: auto;
  }
}

/* ================= CONTENIDO OFICIAL ================= */

.official-text {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.9;
}

.objective-box {
  margin-top: 28px;
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.objective-label {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.objective-box p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.85;
}

.beliefs-reading {
  max-width: 1050px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--white);
}

.beliefs-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px 30px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.beliefs-intro i {
  color: var(--secondary);
  font-size: 2rem;
}

.beliefs-intro p {
  margin: 0;
  color: var(--primary);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.6;
}

.beliefs-columns {
  column-count: 2;
  column-gap: 45px;
  padding: 32px 35px;
}

.beliefs-columns p {
  break-inside: avoid;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.85;
}

.staff-grid-single {
  grid-template-columns: minmax(280px, 430px);
  justify-content: center;
}

.staff-card-featured {
  padding: 32px 28px;
}

.staff-card-featured .staff-photo {
  width: 170px;
  height: 170px;
}

.staff-description {
  max-width: 310px;
  margin: 12px auto 0 !important;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .beliefs-columns {
    column-count: 1;
    padding: 25px 22px;
  }

  .beliefs-intro {
    align-items: flex-start;
    padding: 22px;
  }

  .objective-box {
    padding: 20px;
  }
}

/* ================= LÍNEA DE TIEMPO ================= */

.history-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 55px auto 0;
  padding: 10px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--accent);
}

.timeline-item {
  position: relative;
  min-height: 190px;
  width: 50%;
  padding: 0 55px 45px 0;
}

.timeline-item-reverse {
  margin-left: 50%;
  padding: 0 0 45px 55px;
}

.timeline-date {
  position: absolute;
  top: 0;
  right: 55px;
  color: var(--secondary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.timeline-item-reverse .timeline-date {
  left: 55px;
  right: auto;
}

.timeline-dot {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: -8px;
  width: 19px;
  height: 19px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item-reverse .timeline-dot {
  left: -8px;
  right: auto;
}

.timeline-content {
  margin-top: 30px;
  padding: 25px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.timeline-content span {
  color: var(--secondary);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 7px 0 10px;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
}

.timeline-placeholder {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.75;
}

/* Staff: four real members in a balanced row. */
.staff-grid {
  grid-template-columns: repeat(4, 1fr);
}

.staff-card {
  min-width: 0;
}

.staff-description {
  max-width: 240px;
  margin: 12px auto 0 !important;
  line-height: 1.65;
}

@media (max-width: 991px) {
  .timeline-item,
  .timeline-item-reverse {
    width: 100%;
    margin-left: 0;
    padding: 0 0 35px 55px;
  }

  .timeline::before {
    left: 9px;
    transform: none;
  }

  .timeline-dot,
  .timeline-item-reverse .timeline-dot {
    left: 0;
    right: auto;
  }

  .timeline-date,
  .timeline-item-reverse .timeline-date {
    position: static;
    margin-bottom: 8px;
  }

  .timeline-content {
    margin-top: 0;
  }

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

@media (max-width: 767px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    margin-top: 35px;
  }

  .timeline-item,
  .timeline-item-reverse {
    padding-left: 40px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-dot,
  .timeline-item-reverse .timeline-dot {
    left: -1px;
  }

  .timeline-content {
    padding: 21px;
  }
}

/* ================= TIMELINE · CONTENIDO REAL ================= */

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.8;
}

.timeline-item-final .timeline-content {
  border-color: var(--accent);
  border-width: 2px;
  background: rgba(146,128,182,.10);
}

.timeline-item-final .timeline-content h3 {
  font-size: 1.15rem;
}

.timeline-item-final .timeline-dot {
  width: 23px;
  height: 23px;
  right: -10px;
  background: var(--accent);
}

.timeline-item-final .timeline-date {
  font-size: .82rem;
}

.timeline-item-final.timeline-item-reverse .timeline-dot {
  left: -10px;
}

@media (max-width: 991px) {
  .timeline-item-final .timeline-dot,
  .timeline-item-final.timeline-item-reverse .timeline-dot {
    left: -2px;
    right: auto;
  }
}

/* ================= TIMELINE · V15 ================= */

.timeline-future {
  position: relative;
  width: 100%;
  margin-top: 5px;
  padding: 25px 30px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.timeline-future::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 3px;
  height: 35px;
  transform: translate(-50%, -100%);
  background: var(--accent);
}

.timeline-future i {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 1.7rem;
}

.timeline-future span {
  display: block;
  margin-bottom: 5px;
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.timeline-future p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,.76);
  font-size: .76rem;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .timeline-future {
    margin-top: 5px;
    margin-left: 0;
    width: 100%;
  }
}

/* ================= NOSOTROS · OPCIÓN 2 ================= */

.nosotros-hero-v2{min-height:520px;overflow:hidden;position:relative}
.hero-v2-grid{min-height:520px;display:grid;grid-template-columns:1.15fr .85fr;align-items:center}
.nosotros-hero-v2 .nosotros-hero-content{position:relative;z-index:2;padding:80px 0}
.nosotros-hero-v2 h1{line-height:.95;letter-spacing:-.04em}
.nosotros-hero-v2 h1 em{color:var(--accent);font-style:normal}
.nosotros-hero-v2 .nosotros-hero-content p{max-width:520px;margin-top:20px}
.hero-v2-actions{display:flex;align-items:center;gap:24px;margin-top:30px}
.hero-v2-link{color:var(--white);text-decoration:none;font-size:.78rem;font-weight:800;text-transform:uppercase}
.hero-v2-link i{margin-left:7px;color:var(--accent)}
.hero-v2-visual{position:relative;min-height:420px}
.hero-v2-orbit{position:absolute;border:1px solid rgba(255,255,255,.22);border-radius:50%}
.orbit-one{width:390px;height:390px;top:25px;right:5%}
.orbit-two{width:270px;height:270px;top:85px;right:18%;border-color:rgba(146,128,182,.7)}
.hero-v2-radio-card{position:absolute;z-index:2;top:130px;right:20%;width:210px;height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.06);backdrop-filter:blur(8px);transform:rotate(-5deg);box-shadow:0 20px 60px rgba(0,0,0,.18)}
.hero-v2-radio-card i{margin-bottom:7px;color:var(--accent);font-size:3rem}
.hero-v2-radio-card span{color:var(--white);font-size:2.1rem;font-weight:900}
.hero-v2-radio-card small{color:rgba(255,255,255,.65);font-size:.55rem;font-weight:800;letter-spacing:.15em}

.identity-stats{background:var(--white);border-bottom:1px solid var(--border)}
.identity-stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.identity-stat{min-height:125px;display:flex;align-items:center;justify-content:center;gap:15px;padding:20px 18px;border-right:1px solid var(--border)}
.identity-stat:last-child{border-right:0}
.identity-stat strong{color:var(--secondary);font-size:1.9rem;font-weight:900;line-height:1}
.identity-stat span{color:var(--muted);font-size:.68rem;line-height:1.5}

.what-we-do-section{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.what-we-do-intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:end;margin-bottom:35px}
.what-we-do-intro h2{margin:0;color:var(--primary);font-size:clamp(1.8rem,3vw,2.5rem);font-weight:800;text-transform:uppercase}
.what-we-do-intro p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.8}
.what-we-do-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--border);border-left:1px solid var(--border)}
.what-card{position:relative;min-height:220px;padding:30px 24px;background:var(--white);border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.what-number{position:absolute;top:17px;right:18px;color:var(--accent);font-size:.7rem;font-weight:900}
.what-card>i{display:block;margin-bottom:20px;color:var(--secondary);font-size:2rem}
.what-card h3{margin:0 0 9px;color:var(--primary);font-size:.9rem;font-weight:800;text-transform:uppercase}
.what-card p{margin:0;color:var(--muted);font-size:.74rem;line-height:1.7}

.anniversary-banner{background:var(--secondary);color:var(--white)}
.anniversary-inner{min-height:180px;display:grid;grid-template-columns:.9fr 1.6fr auto;align-items:center;gap:35px}
.anniversary-year{display:flex;align-items:center;gap:12px}
.anniversary-year span,.anniversary-year strong{font-size:1.4rem;font-weight:900}
.anniversary-year i{color:var(--accent)}
.anniversary-copy>span{color:rgba(255,255,255,.68);font-size:.65rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.anniversary-copy h2{margin:5px 0 7px;font-size:1.65rem;font-weight:800}
.anniversary-copy p{margin:0;color:rgba(255,255,255,.76);font-size:.76rem;line-height:1.6}
.anniversary-icon{color:var(--accent);font-size:3.2rem}

.nosotros-cta{background:var(--surface);border-top:1px solid var(--border)}
.nosotros-cta-inner{min-height:220px;display:flex;align-items:center;justify-content:space-between;gap:40px}
.nosotros-cta h2{max-width:650px;margin:5px 0 8px;color:var(--primary);font-size:clamp(1.6rem,3vw,2.4rem);font-weight:800}
.nosotros-cta p{margin:0;color:var(--muted);font-size:.8rem}

@media(max-width:991px){
  .hero-v2-grid{grid-template-columns:1fr}
  .hero-v2-visual{display:none}
  .identity-stats-grid{grid-template-columns:repeat(2,1fr)}
  .identity-stat:nth-child(2){border-right:0}
  .identity-stat:nth-child(-n+2){border-bottom:1px solid var(--border)}
  .what-we-do-intro{grid-template-columns:1fr;gap:18px}
  .what-we-do-grid{grid-template-columns:repeat(2,1fr)}
  .anniversary-inner{grid-template-columns:1fr;gap:12px;padding:35px 0}
  .anniversary-icon{display:none}
}
@media(max-width:767px){
  .nosotros-hero-v2,.hero-v2-grid{min-height:440px}
  .hero-v2-actions{flex-direction:column;align-items:flex-start;gap:16px}
  .identity-stats-grid,.what-we-do-grid{grid-template-columns:1fr}
  .identity-stat{justify-content:flex-start;border-right:0;border-bottom:1px solid var(--border)}
  .identity-stat:last-child{border-bottom:0}
  .nosotros-cta-inner{min-height:260px;align-items:flex-start;flex-direction:column;justify-content:center}
}

/* =========================================================
   MEJORAS DE DISEÑO · NOSOTROS V2
   ========================================================= */

.nosotros-hero,
.nosotros-hero-v2,
.identity-stats,
.what-we-do-section,
.history-section,
.staff-section,
.nosotros-closing,
.nosotros-cta {
  scroll-margin-top: 20px;
}

.nosotros-hero-v2 .btn-primary {
  border-radius: 10px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.nosotros-hero-v2 .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,.2);
}

/* Cards menos rígidas */
.mission-card,
.belief-card,
.staff-card,
.what-card,
.timeline-content,
.media-placeholder,
.beliefs-reading {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mission-card,
.staff-card,
.what-card,
.belief-card {
  transition: transform .25s ease, box-shadow .25s ease,
              border-color .25s ease;
}

.mission-card:hover,
.staff-card:hover,
.what-card:hover,
.belief-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(48,42,58,.11);
}

/* Línea de tiempo: más aire para que el texto no choque con las fechas */
.timeline-content {
  padding: 28px 30px;
  margin-top: 34px;
}

.timeline-content h3 {
  line-height: 1.25;
}

.timeline-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.timeline-date {
  white-space: nowrap;
  line-height: 1.3;
}

/* Entrada de la timeline */
.timeline-item .timeline-content {
  transition: transform .25s ease, box-shadow .25s ease;
}

.timeline-item .timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 28px rgba(48,42,58,.09);
}

/* Texto institucional largo */
.official-text,
.objective-box p,
.beliefs-columns p,
.staff-description {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.objective-box {
  border-radius: 0 12px 12px 0;
}

/* Datos y tarjetas de la V2 */
.identity-stat,
.what-card {
  transition: transform .22s ease, background-color .22s ease;
}

.identity-stat:hover {
  background: var(--surface);
}

.anniversary-inner {
  transition: transform .3s ease;
}

.anniversary-inner:hover {
  transform: translateX(4px);
}

/* Logos sociales */
.footer-socials a {
  border-radius: 10px;
  transition: transform .22s ease, background-color .22s ease,
              color .22s ease, border-color .22s ease;
}

.footer-socials a:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.06);
}

@media (max-width: 991px) {
  .timeline-content {
    margin-top: 5px;
  }
}

@media (max-width: 767px) {
  .timeline-content p,
  .official-text,
  .objective-box p,
  .beliefs-columns p {
    text-align: left;
  }
}

/* =========================================================
   V4 · REDES CON COLOR DE MARCA
   ========================================================= */

.footer-socials a:nth-child(1) { color: #1877F2; }
.footer-socials a:nth-child(2) { color: #E1306C; }
.footer-socials a:nth-child(3) { color: #FF0000; }
.footer-socials a:nth-child(4) { color: #25D366; }

.footer-socials a:nth-child(1):hover { background: #1877F2; color: #fff; }
.footer-socials a:nth-child(2):hover { background: #E1306C; color: #fff; }
.footer-socials a:nth-child(3):hover { background: #FF0000; color: #fff; }
.footer-socials a:nth-child(4):hover { background: #25D366; color: #fff; }

/* =========================================================
   V4 · TEXTO EN BLOQUES
   ========================================================= */

.official-text,
.objective-box p,
.beliefs-columns p,
.mission-card p,
.timeline-content p,
.what-card p,
.staff-description,
.section-heading-center > p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.official-text,
.objective-box p,
.beliefs-columns p,
.timeline-content p {
  line-height: 1.85;
}

.mission-card p,
.what-card p,
.staff-description {
  line-height: 1.72;
}

/* =========================================================
   V4 · HERO DE NOSOTROS MÁS DINÁMICO
   ========================================================= */

.nosotros-hero-v2 {
  isolation: isolate;
  overflow: hidden;
}

.nosotros-hero-v2::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -30%;
  background:
    radial-gradient(circle at 75% 45%, rgba(146,128,182,.24), transparent 24%),
    radial-gradient(circle at 25% 80%, rgba(255,255,255,.05), transparent 22%);
  animation: heroAmbient 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.nosotros-hero-v2 .container,
.hero-v2-grid {
  position: relative;
  z-index: 1;
}

.hero-v2-grid {
  animation: heroContentIn .85s ease both;
}

.nosotros-hero-v2 .nosotros-hero-content {
  animation: heroTextIn .9s .08s ease both;
}

.hero-v2-visual {
  animation: heroVisualIn 1s .18s ease both;
}

.hero-v2-orbit {
  transform-origin: center;
}

.orbit-one {
  animation: orbitOne 14s linear infinite;
}

.orbit-two {
  animation: orbitTwo 10s linear infinite reverse;
}

.hero-v2-radio-card {
  animation: radioCardFloat 4.8s ease-in-out infinite;
  will-change: transform;
}

.hero-v2-radio-card i {
  animation: signalPulse 2.2s ease-in-out infinite;
}

@keyframes heroAmbient {
  0% { transform: translate3d(-1%, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.05); }
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateX(-25px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes orbitOne {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitTwo {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.035); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes radioCardFloat {
  0%, 100% { transform: rotate(-5deg) translate3d(0,0,0); }
  50% { transform: rotate(-2deg) translate3d(0,-10px); }
}

@keyframes signalPulse {
  0%, 100% { transform: scale(1); opacity: .82; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* =========================================================
   V4 · TIMELINE MÁS LEGIBLE Y MENOS ESTÁTICA
   ========================================================= */

.timeline-content {
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
}

.timeline-content::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s ease;
}

.timeline-content:hover::after {
  transform: scaleY(1);
}

.timeline-content p {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.timeline-item .timeline-content:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(48,42,58,.11);
}

.timeline-dot {
  transition: transform .3s ease, background-color .3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.25);
  background: var(--accent);
}

/* =========================================================
   V4 · TARJETAS Y DATOS CON MOVIMIENTO
   ========================================================= */

.identity-stat:hover strong {
  animation: numberPulse .45s ease;
}

.what-card:hover > i {
  animation: iconBounce .55s ease;
}

.staff-card:hover .staff-photo {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.staff-photo {
  border: 2px solid transparent;
  transition: transform .3s ease, border-color .3s ease;
}

@keyframes numberPulse {
  50% { transform: scale(1.12); }
}

@keyframes iconBounce {
  40% { transform: translateY(-6px) rotate(-4deg); }
  75% { transform: translateY(1px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nosotros-hero-v2::before,
  .hero-v2-grid,
  .nosotros-hero-v2 .nosotros-hero-content,
  .hero-v2-visual,
  .orbit-one,
  .orbit-two,
  .hero-v2-radio-card,
  .hero-v2-radio-card i {
    animation: none;
  }
}

@media (max-width: 767px) {
  .official-text,
  .objective-box p,
  .beliefs-columns p,
  .mission-card p,
  .timeline-content p,
  .what-card p,
  .staff-description {
    text-align: left;
  }
}


/* Mayor contraste para textos sobre superficies grises */
.timeline-content p,
.timeline-content li,
.objetivo-card p,
.mission-card p,
.vision-card p,
.belief-card p,
.staff-card p {
  color: #514B59;
}
.timeline-content { color: #514B59; }
.timeline-content h3 { color: #352B45; }

/* AJUSTES VISUALES SOLICITADOS · TIMELINE Y STAFF */
.timeline-content{box-shadow:none !important}
.staff-photo img[src*="miguel"]{object-position:center 24%}

/* RESPONSIVE FIX · STAFF */
.staff-section .container,
.staff-section .nosotros-section { width:100%; max-width:100%; }
.staff-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  width:100%;
}
.staff-card {
  box-sizing:border-box;
  min-width:0;
  width:100%;
  overflow:hidden;
}
.staff-photo {
  box-sizing:border-box;
  width:135px;
  height:135px;
  max-width:100%;
  overflow:hidden;
  border-radius:50%;
}
.staff-photo img {
  box-sizing:border-box;
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
@media (max-width:991px) {
  .staff-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .staff-section .container { padding-left:16px; padding-right:16px; }
  .staff-grid { grid-template-columns:minmax(0,1fr) !important; gap:16px; }
  .staff-card { padding:22px 18px; }
  .staff-photo { width:128px; height:128px; margin:0 auto 16px; }
  .staff-card h3 { font-size:1rem; line-height:1.35; overflow-wrap:anywhere; }
  .staff-card p { font-size:.84rem; line-height:1.55; overflow-wrap:anywhere; }
  .staff-description { max-width:100%; }
}
/* Limita recursos visuales para que no provoquen desbordamiento horizontal */
.staff-section img { max-width:100%; }
