/*
font-family: sofia-pro, sans-serif;
font-weight: 100;
font-style: normal;
*/

@font-face {
  font-family: "Aloja";
  src: url("../assets/fonts/Aloja-Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
    --font: 'sofia-pro', sans-serif;
    --fontAloja: 'Aloja', sans-serif;

    --white: #ffffff;
    --black: #000000;
    --primary: #D62D08;
}

html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1 rem = 10 px */
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fontParagphs);
    font-size: 1.6rem;
    line-height: 2;
    
    background: #FEF0D5;
    background-image: url("../assets/texture.png");
    background-blend-mode: multiply ;
    background-size: cover;        /* o try 'contain', 'auto' */
    background-repeat: repeat;     /* o 'no-repeat' si es grande */
    background-attachment: fixed;  /* para efecto "parallax sutil" */
    background-position: center;
    
    margin: 0;
    color: #222;

    margin-top: 100px;
    margin-bottom: 10rem;
    overflow-x: hidden;
}

/** Global **/
a {
    text-decoration: none;
}

h1, h2, h3, h4, p, a, span{
    font-family: var(--font);
}

h1, .bold {
    font-weight: 900;
    line-height: 1.1;
}
h2 {
    font-weight: 800;
}
h3 {
    font-weight: 700;
}
h4 {
    font-weight: 600;
}
p {
    font-weight: 400;
}
.light {
    font-weight: 300;
}
a {
  color: black;
  text-decoration: none;
  line-height: 0;
}

.aloja {
    font-family: var(--fontAloja);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Asegura que esté por encima del resto */

  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed; /* importante */

  padding: 1rem;
  padding-right: 5rem;
  padding-left: 5rem;
  padding-top: 2rem;
  flex-wrap: wrap;

}


.header-left,
.header-right {
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: bold;
  white-space: nowrap;
}

.header-left a,
.header-right a {
  margin: 0 1rem;
  font-size: 1.2rem;
}


.gif-container img {
  height: 15rem;
  vertical-align: middle;
  margin-left: -5rem;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero-sun {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero h1 {
  position: absolute;
  top: 0;
  left: 10%;
  transform: translate(0, -20%);

  font-size: 12rem;
}

.divide {
    object-fit: contain;
    width: 100%;
}

.retos {
    text-align: center;
}

.retos h2 {
    font-size: 10rem;
    margin-bottom: -8rem;
    margin-top: 2rem;
}

.retos .subtitle {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.retos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: auto;
}

.col {
    flex: 1 1 300px;
    padding: 1rem;
}

.col h3 {
    margin-top: 0;
    text-align: center;
    font-size: 3rem;
}

.col h4 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.donador-top {
    line-height: 0;
    margin-bottom: 24px;
}
.donador-top img {
    width: 300px;
}
.donador-top .mount {
    font-weight: 900;
    color: var(--primary);
    font-size: 4rem;
}

.donation-button {
  display: block;
  padding: 1rem;
  margin: 1rem 0;
  width: 100%;
}

.donation-button h4,
.donation-button p {
  margin: 0;
  line-height: 1.4;
}

.hover-card {
  position: relative;
  transition: transform 0.3s;
}

/* Imagen de fondo posicionada detrás del contenido */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Contenido encima de la imagen */
.card-content {
  position: relative;
  z-index: 1;
}

.card-content img {
    height: 8rem;
}

/* Hover activa la transición */
.hover-card:hover .bg-image {
  opacity: 1;
}
.hover-card:hover h4 {
    color: white;
}

.donation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.donation-list li {
  display: flex;
  justify-content: space-between;
  margin: 0 auto 0.5rem auto; /* ← Aquí se centra horizontalmente */
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  max-width: 300px;
}

.donor-name {
  font-weight: 400;
}

.donor-amount {
  font-weight: 800;
}

.anti-scroll-widget {
  position: fixed;
   right: 40px;
   
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999;
}

.anti-scroll-widget p {
    font-size: 4rem;
    margin: 0;
    padding: 0;
}
.anti-scroll-widget h2 {
    color: var(--primary);
    font-size: 10rem;
    line-height: 1.3;
    margin: 0;
    margin-bottom: 20px;
}
.anti-scroll-widget img {
    height: 400px;
}
.anti-scroll-widget .yop {
    height: 200px;
}

.vertical {
    display: block;
}
.horizontal {
    display: none;
}


@media (max-width: 768px) {
    body {
        width: 100vh;
    }

    .header-left a,
    .header-right a {
    margin: 0 1rem;
    font-size: 2rem;
    }
    
    .hero {
        height: 800px;
    }
    
    .hero h1 {
    font-size: 6rem;
    text-align: center;
    }

    .hero .hero-img {
        padding-left: 24px;
        padding-right: 24px;
    }

    .gif-container img {
        height: 12rem;
    }
    
    .retos h2 {
        font-size: 7rem;
        margin-bottom: -4rem;
    }
    .retos .subtitle {
        font-size: 3rem;
    }
    .retos .col h3 {
        font-size: 4rem;
    }
    .donation-list li {
        font-size: 2rem;
    }
    .col h4 {
        font-size: 4rem;
    }
    .donation-button p {
        font-size: 3rem;
    }
    .card-content img {
        height: 150;
    }

    .retos-container {
    flex-direction: column;
    }

    .anti-scroll-widget {
        display: none;
    }
}