/* ============================================
   ECOYDES A.C. — HOME CSS
   Hero, Sections, Cards, Gallery
   ============================================ */

/* ─── HERO SLIDER ─── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-slide.active .hero-slide__bg {
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-slide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-slide__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-top: var(--header-height);
  padding-bottom: 7rem;
}

.hero-slide__eyebrow {
  font-family: var(--font-display);
  font-size: calc(var(--text-small) * 1.5);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-slide__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  max-width: 820px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-slide__message {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  max-width: 780px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}

.hero-slide__quote {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  max-width: 680px;
  line-height: 1.6;
  margin-top: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-slide__author {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--green-light);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-slide__cta {
  margin-top: 0;
}

.hero-slider__controls {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-slider__arrows {
  display: flex;
  gap: 1rem;
}

.hero-slider__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  background: rgba(0,0,0,0.2);
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.05);
}

.hero-slider__dots {
  display: flex;
  gap: 0.65rem;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-slider__dot:hover,
.hero-slider__dot:focus-visible {
  background: rgba(255,255,255,0.65);
}

.hero-slider__dot.active {
  background: var(--green-light);
  transform: scale(1.25);
}

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.page-hero:hover .page-hero__bg,
.page-hero:focus-within .page-hero__bg {
  transform: scale(1);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 61, 37, 0.85) 0%,
    rgba(20, 61, 37, 0.4) 45%,
    rgba(20, 61, 37, 0.15) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
  text-align: left;
}

.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .page-hero {
    height: 45vh;
    min-height: 280px;
  }

  .page-hero__content {
    padding-bottom: 2rem;
  }
}

/* ─── NOSOTROS ─── */
.about-section {
  background: var(--white);
}

.about-main-image {
  margin: 2.5rem 0 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.about-grid--single {
  display: block;
}

.about-text {
  text-align: justify;
}

.about-text__lead {
  margin-bottom: 2rem;
}

.about-text__cards {
  display: grid;
  gap: 1.5rem;
}

.about-text__card {
  padding: 1.75rem;
  background: var(--green-pale);
  border-radius: var(--radius-lg);
}

.about-text__card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--earth-dark);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.about-text__card .body-text {
  margin-bottom: 0;
}

/* ─── COLABORADORES ─── */
.collaborators-section {
  background: var(--cream);
}

.collaborators-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.collaborator-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.collaborator-card__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(20, 61, 37, 0.12);
}

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

.collaborator-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collaborator-card__photo,
.collaborator-card__name,
.collaborator-card__bio,
.collaborator-card__publications {
  opacity: 1;
  transform: translateY(0);
}

.js .collaborator-card__photo,
.js .collaborator-card__name,
.js .collaborator-card__bio,
.js .collaborator-card__publications {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .collaborator-card.revealed .collaborator-card__photo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.js .collaborator-card.revealed .collaborator-card__name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.js .collaborator-card.revealed .collaborator-card__bio {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.js .collaborator-card.revealed .collaborator-card__publications {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.collaborator-card__name {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--earth-dark);
  line-height: 1.2;
}

.collaborator-card__bio {
  color: var(--text-dark);
  text-align: justify;
}

.collaborator-card__publications {
  color: var(--text-muted);
  font-style: italic;
  text-align: justify;
}

.collaborator-card__publications a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 600;
}

.collaborator-card__publications a:hover,
.collaborator-card__publications a:focus-visible {
  color: var(--green-dark);
}

@media (prefers-reduced-motion: reduce) {
  .js .collaborator-card__photo,
  .js .collaborator-card__name,
  .js .collaborator-card__bio,
  .js .collaborator-card__publications,
  .collaborator-card__photo,
  .collaborator-card__name,
  .collaborator-card__bio,
  .collaborator-card__publications {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 767px) {
  .collaborator-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .collaborator-card__photo {
    width: 140px;
    height: 140px;
  }
}

.about-main-image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about-intro {
  max-width: 65ch;
}

.about-intro .body-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-values {
  display: grid;
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--green);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.value-card:active {
  transform: scale(0.98);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--earth);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-card__text {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── IMPACTO ─── */
.impact-section {
  background: var(--green-pale);
}

.impact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.impact-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.impact-card:active {
  transform: scale(0.98);
}

.impact-card__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.impact-card__suffix {
  color: var(--green);
}

.impact-card__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── SERVICIOS ─── */
.services-section {
  background: var(--green-light);
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-card:active {
  transform: scale(0.98);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--green);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card__list {
  list-style: none;
  padding: 0;
}

.service-card__list li {
  font-size: var(--text-small);
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* ─── FICHA DE SERVICIO ─── */
.service-sheet-section {
  background: var(--white);
}

.service-sheet-section--alt {
  background: var(--cream);
}

.service-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-sheet--reverse .service-sheet__media {
  order: 2;
}

.service-sheet--reverse .service-sheet__body {
  order: 1;
}

.service-sheet__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.service-sheet__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.service-sheet__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-sheet__title {
  margin-bottom: 0;
}

.service-sheet__lead {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.service-sheet__list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.service-sheet__list li {
  font-size: var(--text-body);
  color: var(--text-muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}

.service-sheet__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--earth);
  border-radius: 50%;
}

.service-sheet__cta {
  margin-top: 1rem;
  align-self: flex-start;
}

@media (max-width: 767px) {
  .service-sheet {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-sheet__media,
  .service-sheet--reverse .service-sheet__media {
    order: -1;
  }

  .service-sheet__body,
  .service-sheet--reverse .service-sheet__body {
    order: 0;
  }

  .service-sheet__media img {
    min-height: 240px;
    max-height: 360px;
  }

  .service-sheet__cta {
    align-self: stretch;
  }
}

/* ─── TESTIMONIOS ─── */
.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-card:active {
  transform: scale(0.98);
}

.testimonial-card__icon {
  font-size: 2rem;
  color: var(--earth);
  line-height: 1;
}

.testimonial-card__quote {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

.testimonial-card__author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-card__author strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--green-dark);
}

.testimonial-card__author span {
  font-size: var(--text-small);
  color: var(--text-light);
}

/* ─── ALIADOS ─── */
.partners-section {
  background: var(--green-pale);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: center;
}

.partner-logo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.partner-logo:hover,
.partner-logo:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green-muted);
}

.partner-logo:active {
  transform: scale(0.98);
}

.partner-logo span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── GALERÍA ─── */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 61, 37, 0.85), transparent 65%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item__label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 20, 15, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__caption {
  margin-top: 1rem;
  font-size: var(--text-small);
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 600px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: background var(--transition-fast);
  z-index: 2001;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255,255,255,0.25);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: background var(--transition-fast);
  z-index: 2001;
}

.lightbox__arrow:hover,
.lightbox__arrow:focus-visible {
  background: rgba(255,255,255,0.25);
}

.lightbox__arrow--prev {
  left: 1rem;
}

.lightbox__arrow--next {
  right: 1rem;
}

@media (max-width: 767px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox__arrow {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox__arrow--prev {
    left: 0.5rem;
  }

  .lightbox__arrow--next {
    right: 0.5rem;
  }
}

/* ─── CONTACTO ─── */
.contact-section {
  background: var(--green-dark);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info__item i {
  font-size: 1.25rem;
  color: var(--green-light);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-info__item h4 {
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-light);
  margin-bottom: 0.35rem;
}

.contact-info__item p,
.contact-info__item a {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.contact-info__item a:hover,
.contact-info__item a:focus-visible {
  color: var(--green-light);
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-socials a {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.contact-socials a:hover,
.contact-socials a:focus-visible {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 300px;
  background: rgba(255,255,255,0.05);
  position: relative;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(105%);
}

/* ─── FORMULARIO DE CONTACTO ─── */
.contact-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.5rem;
}

.form-group label span[aria-label="obligatorio"] {
  color: var(--green-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 52px;
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(217, 242, 198, 0.25);
  outline: none;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--earth-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group--checkbox input[type="checkbox"] {
  width: auto;
  min-width: 24px;
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
  accent-color: var(--green);
}

.form-group--checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.5;
}

.form-group--checkbox label a {
  color: var(--green-light);
  text-decoration: underline;
}

.form-group--checkbox label a:hover,
.form-group--checkbox label a:focus-visible {
  color: var(--white);
}

.form-group--honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  display: block;
  font-size: var(--text-small);
  color: #ffb8b8;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.form-help {
  display: block;
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  position: relative;
  min-height: 52px;
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.contact-form__submit.loading .btn-text {
  opacity: 0.7;
}

.contact-form__submit.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: var(--text-body);
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(47, 107, 63, 0.3);
  color: var(--green-light);
  border: 1px solid rgba(217, 242, 198, 0.3);
}

.form-feedback.error {
  display: block;
  background: rgba(184, 92, 56, 0.15);
  color: #ffb8b8;
  border: 1px solid rgba(184, 92, 56, 0.3);
}

/* ─── INVOLÚCRATE CTAs ─── */
.cta-section {
  background: var(--green-light);
}

.cta-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.cta-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-card-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.cta-card:active {
  transform: scale(0.98);
}

.cta-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.cta-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.cta-card__text {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cta-card__btn {
  margin-top: auto;
}

/* ─── RESPONSIVE ─── */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

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

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

  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .gallery-item:nth-child(5n) {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

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

@media (min-width: 1024px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.faq-section {
  background: var(--green-pale);
}

.faq-list {
  max-width: 768px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card-sm);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .hero-slider {
    min-height: 520px;
    height: 90dvh;
  }

  .hero-slide::after {
    height: 60%;
  }

  .hero-slide__content {
    padding-top: var(--header-height);
    padding-bottom: 6rem;
  }

  .hero-slide__title {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
  }

  .hero-slide__message {
    font-size: 0.95rem;
    max-width: 34ch;
    margin-bottom: 1.25rem;
  }

  .hero-slide__quote {
    font-size: 1rem;
  }

  .hero-slider__controls {
    flex-direction: column;
    gap: 1rem;
    bottom: 1.5rem;
  }

  .hero-slider__arrow {
    width: 44px;
    height: 44px;
  }

  .hero-slider__dot {
    width: 14px;
    height: 14px;
  }

  .about-text {
    text-align: left;
  }

  .about-main-image img {
    max-height: 320px;
  }

  .service-card,
  .cta-card {
    padding: 1.75rem 1.5rem;
  }

  .impact-card {
    padding: 2rem 1.25rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .collaborators-list {
    gap: 2rem;
    margin-top: 2rem;
  }

  .collaborator-card {
    padding: 1.75rem 1.5rem;
  }

  .collaborator-card__photo {
    width: 120px;
    height: 120px;
  }

  .collaborator-card__bio,
  .collaborator-card__publications {
    text-align: left;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
  }

  .contact-form__submit {
    width: 100%;
  }
}
