/* =========================
  IMPACT PAGE
========================= */

/* HERO */
.imp-hero{
  padding: 3rem 0;
}

.imp-hero__container{
  display: grid;
  gap: 22px;
  align-items: center;
}

.imp-hero__content h1{
  margin: 0 0 10px;
  line-height: 1.05;
  font-size: clamp(24px, 3vw, 36px);
}

.imp-hero__content .lead{
  margin: 0 0 18px;
  max-width: 70ch;
  line-height: 1.65;
  opacity: .9;
}

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

.imp-hero__badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.imp-hero__media{
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}

.imp-hero__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
}


/* PILLARS */
.pillars{
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.pillar{
  padding: 18px;
}

.pillar__icon{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 22px rgba(47,107,74,.20);
  margin-bottom: 10px;
}

.pillar h3{
  margin: 0 0 6px;
  color: var(--green);
}

.pillar p{
  margin: 0 0 10px;
  line-height: 1.65;
  opacity: .9;
}

.pillar ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  opacity: .9;
}


/* METRICS */
.metrics{
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.metric{
  padding: 22px;
}

.metric__top{
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
}

.metric__icon{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(47,107,74,.95);
  color: rgba(47,107,74,.95);
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.metric__label{
  margin: 0;
  font-weight: 800;
  opacity: .75;
}

.metric__value{
  margin: 0;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--green);
}

.metric__desc{
  margin: 0 0 10px;
  opacity: .9;
  line-height: 1.6;
}

/* 👇 Esto reemplaza tu p.metric__note con ul dentro */
.metric__note{
  margin-top: 10px;
  opacity: .9;
  line-height: 1.6;
}

.metric__note strong{
  display: inline-block;
  margin-bottom: 6px;
}

.metric__note ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  opacity: .95;
}

.impact-note{
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(47,107,74,.08);
  border: 1px solid rgba(47,107,74,.14);
}

.impact-note p{
  margin: 0;
  line-height: 1.6;
}


/* ROADMAP */
/* ===== ROADMAP ===== */
.roadmap{
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

/* Desktop: 3 cards en fila */
@media (min-width: 980px){
  .roadmap{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    align-items: stretch;
  }
}

.roadmap-card{
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr; /* imagen izq + texto */
  gap: 14px;
  align-items: center;
  min-height: 190px;
}

/* Imagen vertical */
.roadmap-card__media{
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: #f2f3f2;
  aspect-ratio: 3 / 4;  /* vertical */
}

.roadmap-card__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.roadmap-card__time{
  margin: 0 0 6px;
  color: var(--green);
  font-weight: 900;
}

.roadmap-card__title{
  margin: 0 0 8px;
  font-weight: 900;
}

.roadmap-card__text{
  margin: 0;
  opacity: .9;
  line-height: 1.65;
}

/* ===== CARD 3 special ===== */
.roadmap-card--special{
  grid-template-columns: 1fr; /* ya no lleva imagen izquierda arriba */
  align-items: start;
}

.roadmap-card__top{
  margin-bottom: 10px;
}

.roadmap-card__split{
  display: grid;
  grid-template-columns: .8fr 1fr; /* info izq + box artesanos der */
  gap: 14px;
  align-items: center;
}

.roadmap-list{
  margin: 10px 0 0;
  padding-left: 18px;
  opacity: .9;
  line-height: 1.7;
}

/* Artisans box */
/* ===== ARTISAN PROFILES ===== */
.artisan-profiles{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.artisan{
  text-align: center;
  padding: 14px 12px 16px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
}

.artisan__photo{
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: #f2f3f2;
  border: 4px solid rgba(47,107,74,.08);
}

.artisan__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.artisan__name{
  margin: 6px 0 2px;
  font-weight: 900;
}

.artisan__role{
  margin: 0 0 8px;
  font-size: .9rem;
  color: var(--green);
  font-weight: 700;
}

.artisan__bio{
  margin: 0 0 10px;
  font-size: .9rem;
  opacity: .85;
  line-height: 1.55;
}

/* Social icons */
.artisan__socials{
  display: flex;
  justify-content: center;
  gap: 10px;
}

.artisan__socials a{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #000;
  background: rgba(47,107,74,.08);
  border: 1px solid rgba(47,107,74,.14);
  transition: transform .2s ease, background .2s ease;
}

.artisan__socials a:hover{
  transform: translateY(-2px);
  background: rgba(47,107,74,.16);
}

.artisan__socials i{
  font-size: .9rem;
  color: var(--green);
}

/* Responsive */
@media (max-width: 979px){
  .artisan-profiles{
    grid-template-columns: 1fr 1fr;
  }
}


/* ===== Responsive ===== */
@media (max-width: 979px){
  .roadmap-card{
    grid-template-columns: 110px 1fr;
  }

  .roadmap-card__split{
    grid-template-columns: 1fr; /* artisans abajo en móvil */
  }
}



/* =========================
  ANIMATIONS (ENTRADA + HOVER)
========================= */

/* Estado inicial (antes de entrar en viewport) */
.card,
.pillar,
.metric,
.roadmap__item,
.impact-note{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease;
  will-change: transform, opacity;
}

/* Estado visible */
.is-visible{
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hover sutil (solo desktop real) */
@media (hover: hover) and (pointer: fine){
  .card:hover,
  .pillar:hover,
  .metric:hover,
  .roadmap__item:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.08);
  }
}

/* Respeto a usuarios con "reduce motion" */
@media (prefers-reduced-motion: reduce){
  .card,
  .pillar,
  .metric,
  .roadmap__item,
  .impact-note{
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* Responsive */
@media (min-width: 900px){
  .imp-hero__container{
    grid-template-columns: 1.05fr .95fr;
  }

  .pillars{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

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

  .roadmap{
    grid-template-columns: repeat(2, minmax(0,1fr));
    margin-bottom: 3% ;
  }
}
