:root {
  --tm-blue: #0062FF;
  --tm-blue-2: #2f78ff;
  --tm-white: #ffffff;
  --tm-black: #0f0f0f;
  --tm-muted: rgba(255, 255, 255, .75);
  --tm-radius: 14px;
}

/* base */
.tm-donar {
  background: #fff;
}

.tm-donar__container {
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 120px 2% 60px;
}

.tm-donar__container--cifras {
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 2% 20px;
}

.tm-donar__container--gallery {
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 2% 70px;
}


.tm-donar__container--otras {
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 2% 20px;
}


.tm-donar__container--thanks {
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 2% 6%;
}

/* HERO */
.tm-donar__hero {
  position: relative;
  background: transparent;
  /* el fondo lo pone el ::before */
  padding: 120px 2% 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  /* ✅ asegura z-index local */
}

.tm-donar__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 160vh;
  /* ✅ el fondo se estira */
  left: 0;
  right: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      var(--tm-blue) 0%,
      var(--tm-blue) 30%,
      #cfe0ff 80%,
      #ffffff 100%);
}



/* .tm-amt.is-active { outline: 2px solid rgba(0,0,0,.2); } */
[data-tm-donation].is-loading {
  opacity: .6;
  pointer-events: none;
}

.tm-donarCard__stripe {
  margin-top: 10px;
}


.tm-donar__heroLeft {
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  width: 90%;
}

.tm-donar__heroGrid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

.tm-donar__h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: .02em;
  font-weight: 100;
  text-transform: uppercase;
  font-family: serialb;
}

.tm-donar__lead {
  font-family: 'MD-IO';
  margin: 0;
  color: black;
  font-size: 16px;
  max-width: 70%;
  line-height: 1.35;
}


/* mini nav */
.tm-donar__miniNav {
  margin-top: 10px;
  text-align: center;
  font-size: 9px;
}

.tm-donar__miniNav a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
}

/* IMPACTO */
.tm-donar__impacto {
  padding: 8px 0 10px;
  position: relative;
  z-index: 1;
}

.tm-donar__h2,
.tm-donar__h3 {
  margin: 12px 0 14px;
  font-size: 2.5vw;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--tm-blue);
  font-family: 'Serial black';
}

.tm-donar__impactGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 18px;
  padding-bottom: 8px;
}

.tm-impactItem__num {
  font-size: 4vw;
  font-weight: bold;
  letter-spacing: .01em;
}

.tm-impactItem__text {
  font-size: 24px;
  color: #111;
  width: 65%;
}

.tm-impactItem__text strong {
  font-family: 'SerialA';
  font-size: 28px;
  color: var(--tm-blue);
}

.tm-impactItem__link {
  margin-left: 6px;
  color: var(--tm-blue);
  text-decoration: none;
  font-weight: 900;
}

/* COPY SECTIONS */

.tm-donar__container--copy {
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 2% 20px;
}


.tm-donar__copy a {
  color: var(--tm-blue);
  text-decoration: none !important;
  font-style: normal;
  font-family: "SerialB";
}

.tm-donar__copy a:hover {
  text-decoration: underline;
}

.tm-donar__h3--spaced {
  margin-top: 16px;
}

.tm-donar__p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.35;
  color: #111;
  max-width: 35%;
}

.tm-donar__pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  color: white !important;
  font-size: 22px;
  text-decoration: none;
  text-transform: uppercase;
  width: fit-content;
  font-family: "serialb";
  background-color: var(--tm-blue);
}

.tm-donar__pill:hover {
  opacity: .9;
}


/* .tm-donar__subastaGrid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
} */

/* .tm-donar__subastaImg {
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.tm-donar__subastaImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */

/* OTRAS FORMAS */
/* OTRAS FORMAS */
.tm-donar__otras,
.tm-donar__thanksWrap {
  background: var(--tm-blue);
  padding: 14px 0 18px;
}

.tm-donar__h2--white {
  color: #fff;
  margin-top: 0;
}

/* Layout: más parecido al screenshot */
.tm-donar__otrasGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10%;
  align-items: stretch;
  /* ✅ clave: ambas columnas se estiran */
}

/* Accordion */
.tm-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin: 0 1rem;
}

/* Header row */
.tm-acc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;
  border: 0;
  color: #fff;

  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);

  cursor: pointer;
  text-align: left;
}

.tm-acc.is-open {
  border-bottom-color: transparent;
  /* o directamente: border-bottom: 0; */
}

.tm-acc__title {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-family: "SerialB";
}

.tm-acc__icon {
  font-size: 38px;
  line-height: 1;
  flex: 0 0 auto;
  transform: translateY(0px) translateX(-22px);
}

/* Panel */
.tm-acc__panel {
  display: none;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);

  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.tm-acc__panel p,
.tm-acc__panel ul {
  font-size: 16px;
  margin: 0 0 14px;
  width: 80%;

}

.tm-acc__panel a {
  color: white;
  text-decoration: none;
  font-style: normal;
  font-family: "SerialB";
}

.tm-acc__panel ul {
  padding-left: 1rem;
}

.tm-acc.is-open+.tm-acc__panel {
  display: block;
}

/* CTA pill dentro del panel */
.tm-donar__pill--white {
  margin-top: 40px;
  border: 2px solid white;
}

/* Imagen: que ocupe ancho/alto de la columna izquierda */
.tm-donar__otrasMedia {
  display: flex;
  justify-content: flex-end;
  align-self: stretch;
  /* ✅ que tome el alto total del grid row */
}

.tm-donar__otrasFrame {
  width: 100%;
  /* ✅ ocupa todo el ancho de su columna */
  height: 500px;
  /* ✅ ocupa todo el alto de la columna izquierda */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0;
  /* en el screenshot se ve recto */
  overflow: hidden;
}

.tm-donar__otrasFrame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}









/* THANKS + CTA */
.tm-donar__thanks {
  margin-top: 16px;
}

.tm-donar__thanksText p {
  color: rgba(255, 255, 255, .9);
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "SerialB";
  max-width: 50%;
}

.tm-donar__cta {
  display: inline-block;
  margin: 30px 0;
  padding: 12px 20px;
  border-radius: 20px;
  color: #fff;
  border: 2px solid #fff;
  text-align: center;
  text-decoration: none;
  font-size: 38px;
  font-family: "SerialB";
  text-transform: uppercase;
}




.tm-donar__impactCols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  /* ajustá */
  align-items: start;
}

.tm-impactCol {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* espacio entre items dentro de la misma columna */
}




/* ===== DONAR: Galería Swiper ===== */

/* Importante: tu .tm-donar__subastaGrid seguramente era grid antes.
   Esto lo fuerza a Swiper-friendly SOLO dentro del módulo donar. */
.tm-donar__gallery .tm-donar__subastaGrid.swiper {
  width: 100%;
  max-width: 100%;
  display: block !important;
  overflow: hidden;
  /* Swiper necesita el overflow hidden */
}

/* Swiper wrapper siempre flex */
.tm-donar__gallery .tm-donar__subastaGrid .swiper-wrapper {
  display: flex !important;
  width: 100%;
  align-items: stretch;
}

/* Slides: no los dejes colapsar */
.tm-donar__gallery .tm-donar__subastaGrid .swiper-slide {
  flex: 0 0 auto;
  /* Swiper setea el width, no lo pises */
}

/* Tu item */
.tm-donar__gallery .tm-donar__subastaImg {
  height: 100%;
}

/* Imagen: aseguramos que no quede 0px */
.tm-donar__gallery .tm-donar__subastaImg img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
}


/* Responsive */
@media (max-width: 900px) {
  .tm-donar__hero {
    padding: 100px 16px 18px;
    min-height: auto;
  }

  .tm-donar__container--cifras {
    padding: 20px 16px 20px;
  }

  .tm-donar__container--copy, .tm-donar__otras {
    padding: 12px 16px 12px;
  }

  .tm-donar__hero::before {
    height: 130vh;
  }

  .tm-donar__h1 {
    font-size: 24px;
    width: 95%;
  }



  .tm-donar__lead {
    display: none;
  }

  .tm-donar__heroGrid {
    grid-template-columns: 1fr;
  }

  .tm-donarCard {
    margin: auto;
    padding: 30px 30px 22px;
    scale: .95;
  }

  .tm-amt {
    padding: 0px 16px;
  }

  .tm-donarCard__btn {
    line-height: 1.5;
  }

  .tm-donarCard__title {
    margin: 6px 0 14px;
    font-size: 18px;
  }

  .tm-donar__impactGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-donar__subastaGrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tm-donar__otrasGrid {
    grid-template-columns: 1fr;
  }

  .tm-donar__otrasMedia {
    justify-content: flex-start;
  }

  .tm-donar__h2 {
    line-height: normal;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    text-align: center;
  }

  .tm-donar__h3 {
    font-size: 1.75rem;

  }

  .tm-impactItem__num {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .tm-impactItem__text strong {
    font-size: 18px;
  }

  .tm-impactCol {
    gap: 16px;
  }

  .tm-donar__p {
    max-width: 85%;
  }

  .tm-donar__pill {
    font-size: 18px;
  }


  .tm-donar__gallery .tm-donar__subastaImg img {
    width: 50%;
    height: auto;
  }

  .tm-donar__h2.tm-donar__h2--white {
    font-family: 'Asfalt';
    font-size: 75px;
    letter-spacing: 3px;
    text-align: start;
  }

  .tm-accordion {
    margin: 0;
  }

  .tm-acc__title {
    font-size: 18px;
  }

  .tm-acc__panel p, .tm-acc__panel ul {
    font-size: 14px;
    width: 100%;
  }

  .tm-acc {
    padding: 4px 0;
  }

  .tm-donar__otrasMedia, .tm-donar__thanksWrap {
    display: none;
  }

}