.project-page {
  background: var(--blanco);
}

.project-page .site-shell main {
  flex: 0 0 auto;
}

.project-main {
  background: var(--blanco);
}

.project-container {
  width: min(1248px, calc(100% - 84px));
  margin: 0 auto;
}

.project-hero {
  position: relative;
  height: 344px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--azul-marino);
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,57,84,0.05) 0%, rgba(11,57,84,0.16) 44%, rgba(6,34,58,0.62) 100%);
  z-index: 1;
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 44px;
  color: var(--blanco);
}

.project-hero-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blanco);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.project-hero-content h1 {
  color: var(--blanco);
  font-size: clamp(2.5rem, 4.8vw, 4.35rem);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.project-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--verde);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: var(--r-full);
  background: currentColor;
}

.project-intro-section {
  padding: 48px 0 48px;
  background: var(--blanco);
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 510px;
  gap: 72px;
  align-items: start;
}

.project-copy {
  padding-top: 4px;
}

.project-copy h2,
.project-heading h2,
.project-method-header h2,
.project-final-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.44rem);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.project-copy p,
.project-heading p,
.project-method-header p,
.project-final-copy p {
  max-width: 64ch;
  color: var(--gris-texto);
  font-size: 0.98rem;
  line-height: 1.72;
}

.project-intro-photo {
  margin: 0;
  width: 100%;
  padding-top: 14px;
}

.project-intro-photo img {
  width: 100%;
  height: 348px;
  object-fit: cover;
  display: block;
}

.project-goals-section {
  padding: 34px 0 96px;
  background: var(--blanco);
  border-top: 1px solid #ededed;
}

.project-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.project-heading-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.project-heading-center .project-kicker {
  justify-content: center;
}

.project-heading-center p {
  margin: 0 auto;
  color: var(--gris-medio);
}

.project-goals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.project-goal {
  position: relative;
  min-height: 226px;
  padding: 30px 24px 28px 30px;
  background: var(--blanco);
  border: 1px solid #e5e8e8;
  border-left: 10px solid var(--verde);
  box-shadow: 0 10px 24px rgba(11,57,84,0.06);
}

.project-goal:nth-child(2) {
  border-left-color: var(--azul-marino);
}

.project-goal:nth-child(3) {
  border-left-color: var(--naranja);
}

.project-goal:nth-child(4) {
  border-left-color: var(--verde);
}

.project-goal-number {
  display: block;
  margin-bottom: 22px;
  color: var(--verde);
  font-family: var(--ff-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.project-goal:nth-child(2) .project-goal-number {
  color: var(--azul-marino);
}

.project-goal:nth-child(3) .project-goal-number {
  color: var(--naranja);
}

.project-goal h3 {
  font-size: 1.02rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-goal p {
  color: var(--gris-medio);
  font-size: 0.9rem;
  line-height: 1.56;
}

.project-method-band {
  padding: 34px 0 36px;
  background: var(--azul-marino);
  color: var(--blanco);
}

.project-method-band .project-kicker {
  color: var(--naranja);
}

.project-method-header {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.project-method-header h2,
.project-method-card h3 {
  color: var(--blanco);
}

.project-method-header p {
  margin: 0 auto;
  color: rgba(255,255,255,0.82);
}

.project-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-method-card {
  min-height: 126px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}

.project-method-card span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--r-full);
  background: var(--naranja);
  color: var(--blanco);
  font-family: var(--ff-heading);
  font-weight: 800;
}

.project-method-card h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
  text-transform: uppercase;
}

.project-method-card p {
  color: rgba(255,255,255,0.76);
  font-size: 0.92rem;
  line-height: 1.6;
}

.project-gallery-section {
  padding: 42px 0 44px;
  background: var(--blanco);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}

.project-gallery figure {
  margin: 0;
  background: var(--blanco);
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 298 / 211;
  object-fit: cover;
  display: block;
}

.project-gallery figcaption {
  min-height: 88px;
  padding: 14px 0 0;
  color: var(--gris-texto);
}

.project-gallery figcaption strong {
  display: block;
  margin-bottom: 8px;
  color: var(--azul-marino);
  font-family: var(--ff-heading);
  font-size: 0.96rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-gallery figcaption span {
  display: block;
  color: var(--gris-medio);
  font-size: 0.86rem;
  line-height: 1.5;
}

.project-final-section {
  padding: 72px 0 175px;
  background: var(--blanco);
}

.project-final-grid {
  display: grid;
  gap: 90px;
}

.project-final-copy {
  max-width: 760px;
}

.project-final-copy .project-kicker {
  color: var(--azul-marino);
}

.project-final-copy:nth-child(2) {
  margin-left: 72px;
}

.project-final-copy:nth-child(3) {
  margin-left: 144px;
}

.project-final-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.36rem);
}

@media (max-width: 1024px) {
  .project-container {
    width: min(100% - 48px, 960px);
  }

  .project-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-intro-photo img {
    height: auto;
    min-height: 300px;
  }

  .project-goals-grid,
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .project-hero {
    height: 310px;
  }

  .project-hero-content {
    padding-bottom: 34px;
  }

  .project-goals-grid,
  .project-method-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-method-band {
    padding: 64px 0;
  }

  .project-final-copy:nth-child(2),
  .project-final-copy:nth-child(3) {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .project-container {
    width: min(100% - 32px, 420px);
  }

  .project-hero {
    height: 280px;
  }

  .project-intro-section,
  .project-goals-section,
  .project-gallery-section,
  .project-final-section {
    padding: 48px 0;
  }
}

/* ─── SECCIÓN: NUESTROS OBJETIVOS ─── */
.sp-objetivos {
  padding: 72px 0 80px;
  background: var(--gris-claro);
}
.sp-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.sp-section-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 0;
  color: var(--naranja);
}
.sp-objetivos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.sp-obj-card {
  background: var(--blanco);
  border-radius: var(--r-md);
  padding: 28px 22px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--azul-marino);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.sp-obj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sp-obj-card:nth-child(1) { border-top-color: var(--azul-marino); }
.sp-obj-card:nth-child(2) { border-top-color: var(--naranja); }
.sp-obj-card:nth-child(3) { border-top-color: var(--verde); }
.sp-obj-card:nth-child(4) { border-top-color: #7b4fa6; }
.sp-obj-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sp-obj-card:nth-child(1) .sp-obj-icon { background: rgba(11,57,84,0.1); color: var(--azul-marino); }
.sp-obj-card:nth-child(2) .sp-obj-icon { background: rgba(224,138,62,0.12); color: var(--naranja); }
.sp-obj-card:nth-child(3) .sp-obj-icon { background: rgba(31,122,77,0.12); color: var(--verde); }
.sp-obj-card:nth-child(4) .sp-obj-icon { background: rgba(123,79,166,0.12); color: #7b4fa6; }
.sp-obj-card h3 {
  font-size: 0.97rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gris-texto);
  margin-bottom: 10px;
}
.sp-obj-card p {
  font-size: 0.85rem;
  color: var(--gris-medio);
  line-height: 1.6;
}

/* ─── SECCIÓN: RUTA DE TRABAJO ─── */
.sp-ruta {
  padding: 72px 0 80px;
  background: var(--azul-marino);
}
.sp-ruta .sp-section-header h2 { color: var(--blanco); }
.sp-ruta .project-kicker { color: rgba(255,255,255,0.55); }
.sp-ruta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 32px;
  position: relative;
}
.sp-ruta-grid::before {
  content: '';
  position: absolute;
  top: 31px; left: calc(16.66% + 32px); right: calc(16.66% + 32px);
  height: 2px;
  background: rgba(255,255,255,0.18);
}
.sp-ruta-step { text-align: center; position: relative; z-index: 1; }
.sp-ruta-num-1 {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--amarillo);
  color: var(--blanco);
  font-family: var(--ff-heading);
  font-size: 1.55rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(224,138,62,0.38);
  transition: transform 0.3s;
}
.sp-ruta-num-2 {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--naranja);
  color: var(--blanco);
  font-family: var(--ff-heading);
  font-size: 1.55rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(224,138,62,0.38);
  transition: transform 0.3s;
}
.sp-ruta-num-3 {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-family: var(--ff-heading);
  font-size: 1.55rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(224,138,62,0.38);
  transition: transform 0.3s;
}
.sp-ruta-step:hover .sp-ruta-num { transform: scale(1.08); }
.sp-ruta-step h3 {
  color: var(--blanco);
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sp-ruta-step p {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 30ch;
  margin: 0 auto;
}

/* ─── SECCIÓN: INTEGRANTES ─── */
.sp-team {
  padding: 72px 0 80px;
  background: var(--blanco);
}
.sp-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 28px;
}
.sp-team-card { text-align: center; }
.sp-team-card:hover .sp-team-photo { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.sp-team-photo {
  width: 100%;
  aspect-ratio: 1/1.18;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-md);
  display: block;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.sp-team-card h4 {
  font-size: 0.88rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--gris-texto);
  margin-bottom: 5px;
  line-height: 1.3;
}
.sp-team-card p {
  font-size: 0.77rem;
  color: var(--gris-medio);
  line-height: 1.4;
}
.sp-team-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--naranja);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 5px;
}

/* ─── SECCIÓN: TRES ETAPAS ─── */
.sp-etapas {
  padding: 72px 0 96px;
  background: var(--gris-claro);
}
.sp-etapas-intro {
  max-width: 680px;
  margin-bottom: 56px;
}
.sp-etapas-intro h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sp-etapas-intro p { color: var(--gris-medio); font-size: 0.97rem; line-height: 1.7; }
.sp-timeline {
  position: relative;
  padding-left: 84px;
}
.sp-timeline::before {
  content: '';
  position: absolute;
  left: 30px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--azul-marino) 33%, var(--naranja) 66%, var(--verde));
}
.sp-timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.sp-timeline-item:last-child { margin-bottom: 0; }
.sp-timeline-dot {
  position: absolute;
  left: -69px; top: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blanco);
  box-shadow: var(--shadow-md);
}
.sp-timeline-item:nth-child(1) .sp-timeline-dot { background: var(--azul-marino); }
.sp-timeline-item:nth-child(2) .sp-timeline-dot { background: var(--naranja); }
.sp-timeline-item:nth-child(3) .sp-timeline-dot { background: var(--verde); }
.sp-timeline-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sp-timeline-item:nth-child(1) .sp-timeline-label { color: var(--azul-marino); }
.sp-timeline-item:nth-child(2) .sp-timeline-label { color: var(--naranja); }
.sp-timeline-item:nth-child(3) .sp-timeline-label { color: var(--verde); }
.sp-timeline-body {
  background: var(--blanco);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s;
}
.sp-timeline-body:hover { box-shadow: var(--shadow-md); }
.sp-timeline-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sp-timeline-body p { color: var(--gris-medio); line-height: 1.75; font-size: 0.96rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .sp-objetivos-grid { grid-template-columns: repeat(2,1fr); }
  .sp-team-grid      { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .sp-ruta-grid  { grid-template-columns: 1fr; }
  .sp-ruta-grid::before { display: none; }
  .sp-team-grid  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .sp-objetivos-grid { grid-template-columns: 1fr; }
  .sp-team-grid      { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .sp-timeline { padding-left: 60px; }
  .sp-timeline-dot  { left: -52px; width: 46px; height: 46px; font-size: 1rem; }
}