:root {
  --donar-purple: #55288f;
  --donar-purple-light: #7a3a8b;
  --donar-teal: #006d6f;
  --donar-teal-light: #e6f4f3;
  --donar-gold: #d89b2b;
  --donar-cream: #fff7ed;
  --donar-soft-bg: #faf7f3;
  --donar-white: #ffffff;
  --donar-text: #24212b;
  --donar-muted: #675f6c;
  --donar-border: #eee4dc;
  --donar-shadow: 0 16px 40px rgba(45, 26, 54, 0.12);
  --donar-radius: 24px;
}

/* BOTONES SOLO DENTRO DE DONAR */

.hero .btn,
.donation-section .btn,
.hero .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 15px 28px;
  font-weight: 700;
  border: 2px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.hero .btn,
.donation-section .btn {
  background: var(--donar-purple);
  color: var(--donar-white);
  box-shadow: 0 10px 24px rgba(75, 20, 95, 0.25);
}

.hero .btn:hover,
.donation-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(75, 20, 95, 0.28);
}

.hero .btn-outline {
  background: var(--donar-white);
  color: var(--donar-teal);
  border-color: var(--donar-teal);
}

.hero .btn-outline:hover {
  background: var(--donar-teal-light);
}

/* HERO DONAR */

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 560px;
  background: linear-gradient(#3f0888 100%, #55288f 100%);
}

.hero-content {
  padding: 84px 7% 84px 14%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero h1 {
  color: #ffffff;
  font-family:
    changa one,
    sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  max-width: 680px;
  margin-bottom: 24px;
}

.hero p {
  color: #ffffff;
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================
   CARRUSEL DEL HERO
========================= */

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

/* Cada imagen ocupa todo el espacio */

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* Imagen visible */

.carousel-slide.active {
  opacity: 1;
}

/* Fotografías */

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Degradado sobre las imágenes */

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 247, 237, 0.65),
    transparent 28%
  );
  z-index: 2;
  pointer-events: none;
}

/* =========================
   BOTONES DEL CARRUSEL
========================= */

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.35);
  color: white;

  font-size: 24px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* =========================
   PUNTOS DEL CARRUSEL
========================= */

.carousel-dots {
  position: absolute;

  bottom: 25px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 3;

  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;

  padding: 0;

  border: 2px solid white;
  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot.active {
  background: white;
}

/* HERO BADGE */

.hero-badge {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--donar-purple);
  border-radius: 20px;
  padding: 18px 22px;
  max-width: 270px;
  box-shadow: var(--donar-shadow);
}

.hero-badge strong {
  display: block;
  font-family: raleway, sans-serif;
  font-size: 22px;
  margin-bottom: 4px;
}

.hero-badge span {
  color: var(--donar-muted);
  font-size: 14px;
}

/* SECCIÓN GENERAL */

.section {
  padding: 72px 7%;
  background: var(--donar-white);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 40px;
}

.section-title span {
  width: 110px;
  height: 2px;
  background: var(--donar-gold);
}

.section-title h2 {
  font-family:
    Changa One,
    sans-serif;
  color: var(--donar-purple);
  font-size: clamp(30px, 3vw, 42px);
}

/* CARDS */

.cards-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.info-card {
  background: var(--donar-white);
  border: 1px solid var(--donar-border);
  border-radius: var(--donar-radius);
  padding: 34px;
  box-shadow: var(--donar-shadow);
  transition: transform 0.2s ease;
  display: grid;
  place-items: center;
}

.info-card:hover {
  transform: translateY(-5px);
}

.icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 18px;
}

.icon.purple {
  background: #f1e5f4;
  color: var(--donar-purple);
}

.icon.teal {
  background: var(--donar-teal-light);
  color: var(--donar-teal);
}

.icon.gold {
  background: #fff0d3;
  color: var(--donar-gold);
}

.info-card h3 {
  color: var(--donar-purple);
  font-size: 22px;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--donar-muted);
}

/* IMPACTO */

.impact {
  padding: 46px 7%;
  background:
    linear-gradient(#3f0888, #3f0888),
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.12),
      transparent 28%
    );
  color: var(--donar-white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.impact-item {
  text-align: center;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.impact-item:last-child {
  border-right: none;
}

.impact-item span {
  display: block;
  color: var(--donar-gold);
  font-size: 36px;
  margin-bottom: 8px;
}

.impact-item strong {
  display: block;
  font-family: RALEWAY, sans-serif;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
}

.impact-item p {
  font-weight: 700;
}

/* TESTIMONIO */

.testimonial-section {
  padding: 56px 7%;
  background: var(--donar-soft-bg);
}

.testimonial-card {
  max-width: 1040px;
  margin: 0 auto;
  background: linear-gradient(135deg, #fffaf3, #ffffff);
  border: 1px solid var(--donar-border);
  border-radius: var(--donar-radius);
  padding: 32px 46px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 34px;
  align-items: center;
  box-shadow: var(--donar-shadow);
}

.testimonial-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-text {
  position: relative;
}

.quote {
  color: var(--donar-purple-light);
  font-size: 74px;
  line-height: 0.8;
  font-family: raleway, sans-serif;
}

blockquote {
  color: var(--donar-text);
  font-family: raleway, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-text p {
  color: var(--donar-purple);
  font-weight: 800;
}

/* DONACIÓN */

.donation-section {
  padding: 64px 7% 38px;
  background: var(--donar-white);
  text-align: center;
}

.donation-title {
  margin-bottom: 30px;
}

.donation-types {
  max-width: 1120px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.donation-type {
  border: 1.5px solid var(--donar-border);
  background: var(--donar-white);
  border-radius: 16px;
  padding: 22px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--donar-teal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.donation-type:hover,
.donation-type.active {
  border-color: var(--donar-purple);
  color: var(--donar-purple);
  background: #fbf4fd;
  box-shadow: 0 10px 24px rgba(75, 20, 95, 0.1);
}

.amounts {
  max-width: 850px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.amounts button {
  border: 1.5px solid var(--donar-border);
  background: var(--donar-white);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 18px;
  color: var(--donar-purple);
  font-weight: 700;
  cursor: pointer;
}

.amounts button:hover,
.amounts button.selected {
  border-color: var(--donar-purple);
  background: #fbf4fd;
}

.donate-main {
  min-width: 340px;
  font-size: 20px;
}

.secure-text {
  margin-top: 12px;
  color: var(--donar-muted);
  font-size: 14px;
}

/* TRANSPARENCIA */

.trust-section {
  max-width: 1180px;
  margin: 0 auto 62px;
  padding: 34px;
  background: #eef8f7;
  border-radius: var(--donar-radius);
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 34px;
  align-items: center;
}

.trust-message {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 20px;
  color: var(--donar-text);
}

.heart-pattern {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(75, 20, 95, 0.9), rgba(0, 109, 111, 0.9)),
    var(--donar-purple);
  color: var(--donar-white);
  font-size: 42px;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-items article {
  padding: 8px 26px;
  border-left: 1px solid rgba(0, 109, 111, 0.22);
}

.trust-items span {
  display: block;
  font-size: 34px;
  margin-bottom: 8px;
}

.trust-items h3 {
  color: var(--donar-teal);
  margin-bottom: 6px;
}

.trust-items p {
  color: var(--donar-muted);
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 64px 7%;
  }

  /* Antes era .hero-image */
  .hero-carousel {
    min-height: 420px;
  }

  .cards-grid,
  .impact,
  .donation-types,
  .trust-section {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-card img {
    margin: 0 auto;
  }

  .trust-section {
    margin-left: 7%;
    margin-right: 7%;
  }

  .trust-items {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero .btn,
  .hero .btn-outline,
  .donation-section .btn {
    width: 100%;
  }

  /* Carrusel más pequeño en celular */
  .hero-carousel {
    min-height: 350px;
  }

  .carousel-button {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .carousel-prev {
    left: 12px;
  }

  .carousel-next {
    right: 12px;
  }

  .carousel-dots {
    bottom: 18px;
  }

  .hero-badge {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .section-title span {
    display: none;
  }

  .cards-grid,
  .impact,
  .donation-types,
  .amounts,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .impact-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .impact-item:last-child {
    border-bottom: none;
  }

  .testimonial-card {
    padding: 28px 22px;
  }

  .donate-main {
    min-width: 100%;
  }

  .trust-message {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .heart-pattern {
    margin: 0 auto;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .trust-items article {
    border-left: none;
    border-top: 1px solid rgba(0, 109, 111, 0.22);
    padding: 22px 0;
  }
}
