* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-margin-top: 70px;

  }

  :root{
    --color1:#774804;
    --color2:#478428;
    --color3:#8AB21D;
    --color4:#F2E5C8;
    --color5:#FFFFFF;
    --color6:#000000;
    
  --fuente1: 'Raleway';
  --fuente2: 'Special Gothic Expanded One';

  /* Slider infinito */    
  --width: 150px;
  --height: 80px;
  --quantity: 9;
  --gap: 20px;
  --slider-speed: 15s;
}

    
body {
    background-color: #f0f0f0;
    justify-content: center;
    align-items: center;


  }
/*cabecera - nuestras campañas*/

.cabecera-quienes-somos{
    display: flex;
    flex-direction: row;
}

.cabecera-quienes-somos img{
  width: 100%;
  margin-top: 40px;
  
}


header {
  display: flex;
  position: fixed;
  justify-content: space-between;
  width: 100%;
  height: 70px;
  background-color: var(--color2);
  font-family: var(--fuente1);
  color: white;
  align-items: center;
  flex-wrap: wrap;
  z-index: 999;
  top: 0;
}
  
  header .logo {
    font-weight: bold;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-left: 10px;
    z-index: 101;

  }

  .logo img{
    width: 50px;
  }

  .logo:hover{
    transform: scale(1.1); 
    filter: brightness(1.3); 

  }
  
  header nav ul {
    display: flex;
    gap: 50px;
    margin-right: 40px;
    

  }
  header nav li{
    list-style-type: none;
    
  }
  
  header nav a {
    color: white;
    text-decoration: none;
    padding: 20px;
  }

  header nav a:hover {
    background-color: var(--color3);
    color: var(--color5);
    
    
      
  }

  /* Oculta el submenú por defecto */
.submenu .dropdown {
  display: none;
  position: absolute;
  background-color: var(--color2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  padding: 10px 0;
  margin-top: 5px;
  list-style: none;
  z-index: 1000;
}

/* Estilo para los items del submenú */
.submenu .dropdown li a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.submenu .dropdown li a:hover {
  background-color: var(--color3);
  color: #ffffff;
  filter: none;
}

/* Mostrar el submenú al pasar el mouse */
.submenu:hover .dropdown {
  display: block;
}

/* Asegura que el padre esté en posición relativa */
.submenu {
  position: relative;
}

.menu-icon {
            display: none;
            flex-direction: column;
            cursor: pointer;
            z-index: 101;
        }
        
        .bar {
            width: 25px;
            height: 3px;
            background-color: white;
            margin: 2px 0;
            transition: all 0.3s ease;
        }

  main {
    display: block;
    overflow: hidden; /* o usa clearfix si es necesario */
  }
  .cabecera{
    background-image: url(../img/background-cabecera.png);
    position: relative;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 800px;
  }

  .formulario-donacion {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    width: 320px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 2px solid var(--color5);
    margin-left: 100px;
  }

  .botones-toggle {
    display: flex;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
  }

  .botones-toggle button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #ffffff;
    cursor: pointer;
    font-weight: bold;
  }

  .botones-toggle .activo {
    background-color: var(--color2);
    color: white;
  }


  .descripcion-formulario{
    font-family: var(--fuente1);
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
  }

  .form-donar{
    font-family: var(--fuente1);
    color: var(--color3);
    font-size: 1.3rem;
    padding: 10px;
  }

  .opciones-cantidad {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }

  .opciones-cantidad button {
    flex: 1 1 30%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    border-radius: 6px;
    cursor: pointer;
  }

  .opciones-cantidad button.seleccionado {
    background-color:var(--color2);
    color: white;
    border-color: var(--color2);
  }

  .monto-personalizado {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 15px;
  }

  .monto-personalizado input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .monto-personalizado select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  
  /* ************** Popup donar cantidad ********** */

  


    /* Popup styles */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      visibility: hidden;
      opacity: 0;
      transition: all 0.3s ease;

      display: flex;
      justify-content: center;
      align-items: center;
  }
  
  .popup-overlay.active {
      visibility: visible;
      opacity: 1;
  }
  
  .popup-content {
    justify-content: center;
      background-color: var(--color5);
      text-align: center;
      width: 50%;
      border-radius: 20px;
      box-shadow: 0 4px 20px rgba(92, 92, 92, 0.2);
      padding: 30px;
      position: relative;
      transform: scale(0.8);
      transition: transform 0.3s ease;
      font-family: var(--fuente1);
      height: 100vh; /* Altura fija para permitir scroll */
      overflow-y: auto; 

  }
  
  #input-metod-pago{
    border: 1px solid black;
  }
  .popup-overlay.active {
      transform: scale(1);
  }
  
  .close-popup {
      position: absolute;
      top: 15px;
      right: 15px;
      font-size: 30px;
      color: var(--color2);
      cursor: pointer;
      background: none;
      border: none;
  }
  
  
  .donation-form h2 {
      color: var(--color2);
      font-family: var(--fuente1);
      margin-top: 0;
      margin-bottom: 30px;
      font-size: 2.5rem;
  }
  
  .donation-summary {
      background-color: var(--color5);
      padding: 15px;
      margin-bottom: 20px;
      font-family: var(--fuente1);
      font-size: 2rem;
  }
  
   .form-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 20px;
    }

    .metodo-formulario{
      display: flex;
      flex-direction: column;
      width: 100%;
      
    }
    .form-group label {
      font-weight: 600;
      color: var(--color6);
      font-size: 16px;
      
    }

    .payment-methods {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .payment-method {
      border: 1px solid gray;
      border-radius: 5px;
      padding: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 15px;
      transition: all 0.2s;
    }

    .payment-method:hover {
      background: #f5f5f5;
    }

    .payment-method.selected {
      border-color: gray;
      background: #e8f5e9;
    }

    .payment-method-icon {
      width: 40px;
      height: 40px;
      background: var(--color5);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: black;
    }

    .payment-method-details {
      flex-grow: 1;
    }

    .payment-method-details h4 {
      margin-bottom: 3px;
      color: black;
    }

    .payment-method-details p {
      font-size: 16px;
      color: black;
    }

    .payment-radio {
      width: 18px;
      height: 18px;
    }

    .payment-fields {
      margin-top: 10px;
      padding: 15px;
      background-color: color-mix(in srgb, var(--color3) 40%, transparent);
      border-radius: 10px;
      display: none;
    }

    .payment-fields.active {
      display: block;
    }

    .card-fields {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      width: 100%;
    }

    #expiry{
      width: 50px;
    }
    #cvv{
      width: 50px;
    }

    .form-control {
      padding: 12px;
      border: 1px solid gray;
      border-radius: 10px;
      font-size: 14px;
      width: 100%;
      outline: none;
      transition: border-color 0.2s;
    }

    .form-control:focus {
      border-color: black;
    }

    .form-row {
      display: flex;
      gap: 100px;
      width: 100%;
    }

    .form-col {
      flex: 1;
    }

    .expiry-cvv {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .bank-transfer-info {
      font-size: 16px;
      line-height: 1.5;
      color: black;
    }

    .bank-transfer-info p {
      margin-bottom: 10px;
    }

    .bank-details {
      background: white;
      padding: 10px;
      border-radius: 10px;
      border: 1px solid gray;
      margin-top: 10px;
    }

    .bank-details p {
      margin: 5px 0;
      font-size: 13px;
    }

    .popup-footer {
      padding: 20px;
      border-top: 1px solid gray;
    }

    .error-text {
      color: #d32f2f;
      font-size: 12px;
      margin-top: 4px;
      display: none;
    }

    .has-error .error-text {
      display: block;
    }

    .has-error .form-control {
      border-color: #d32f2f;
    }

    .donation-note {
      font-size: 1rem;
      color: gray;
      text-align: center;
      margin-top: 30px;

    }

    .thank-you {
      text-align: center;
      padding: 30px 20px;
      display: none;
    }

    .thank-you h3 {
      color: var(--color3);
      margin-bottom: 15px;
    }

    .thank-you p {
      margin-bottom: 20px;
      color: black;
      font-size: 1rem;
      margin-top: 20px;
      padding: 20px;  
    }

    .thank-you-icon {
      font-size: 50px;
      color: black;
      margin-bottom: 20px;
    }

    #donar{
      width: 40%;
      margin-left: 30%;
      margin-bottom: 20px;
    }
  
/*termina popup*/

  .eslogan{
    font-family: var(--fuente2);
    color: white;
    text-align: right;
    margin-top: 500px;
    margin-right: 50px;
    font-size:35px;
  }

  /*Aqui comienza el slider*/

  .container-problema{
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.upper-section {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.image-container {
    width: 50%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.slider-image {
    width: 100%;
    height: 100%;
    border-radius: 100px 0px 100px 0px;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

#slider-title{
font-family: var(--fuente2);
font-size: 16px;
background-color: color-mix(in srgb, var(--color3) 40%, transparent);
width: 30%;
padding: 5px;
text-align: center;
color: var(--color2);


}

#slider-subtitle{
  font-family: var(--fuente1);
  font-weight:900;
  font-size: 24px;
  font-style: italic;
  margin-bottom: 20px;
  margin-left: 50px;
}

#slider-description{
  font-family: var(--fuente1);
  margin-left: 50px;
  margin-right: 50px;
}

.text-content {
    width: 50%;
    text-align: left;
}

.text-content h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 24px;
}

.text-content p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.progress-container {
    background-color: #e0e0e0;
    height: 6px;
    width: 100%;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #055323);
    width: 0%;
    transition: width 0.4s ease;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f9f9f9;
}

.nav-text {
  font-family: var(--fuente1);
    padding: 12px 16px;
    color: #777777;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-text:hover {
    color: var(--color3);
}

.nav-text.active {
    color: var(--color2);
    font-weight: bold;
}

.nav-text.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--color2);
    border-radius: 2px;
}

/*Aqui termina slider */

/*iconos*/

.nuestros-objetivos{
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.iconos-objetivos-contenedor{
  display: flex;
  font-family: var(--fuente1);
  font-size: 16px;
}
.iconos-objetivos{
  display: flex;
  text-align:left;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  
}


.iconos-objetivos img{
  width: 50%;
}

.subtitulos-index{
  text-align: center;
  color: var(--color2);
  padding: 20px;
  font-family: var(--fuente2);
  margin-top: 40px;
}

.regala-arbol{
  display: flex;
  justify-content: center;
  margin-left: 100px;
}
.titulos-regala-arbol{
  display: flex;
  text-align: center;
  justify-content:space-around;
  font-family: var(--fuente1);
}

#particular{
  margin-top: 50px;
  margin-bottom: 0px;
  margin-left: 250px;
  background-color: rgba(255, 244, 209, 0.700);
  padding: 10px;
  border-radius: 5px;
  }

  #empresa{
    margin-top: 50px;
    margin-bottom: 0px;
    margin-right: 300px;
    background-color:  rgba(255, 244, 209, 0.700);
    padding: 10px;
    border-radius: 5px;
    }

.tercera-seccion{
  background-image: url(../img/medio-arbol-background.png);
}


.caja-regala-arbol{
  display: flex;
  margin-top: 50px;
  margin-bottom: 50px;
}

.caja-particular{
  display: flex;
  flex-direction: column;
  background-color: var(--color5);
  border-radius: 20px;
  width: 40%;
  padding: 20px;
  padding-bottom: 50px;

}

.caja-particular h4{
  color: #047520;
  font-family: var(--fuente1);
  font-weight:bolder;
  margin: 20px;
  margin-bottom: 5px;
}
.caja-particular p{
  font-family: var(--fuente1);
  font-weight: normal;
  margin-top: 5px;
  margin-left: 20px;
  margin-bottom: 20px;
}
.icono-texto{
  display: flex;
  justify-content:space-around;
  width: 100%;
  align-items: flex-end;
  margin: auto;
}
.mini-iconos{
  display: flex;
  align-items: center;
  padding: 10px;
}

#unica-caja{
  width: 80%;
  justify-content: center;
  margin-left: -100px ;
}
.caja-empresa{
  display: flex;
  flex-direction: column;
  background-color: var(--color5);
  border-radius: 20px;
  width: 40%;
  padding: 20px;
  padding-bottom: 50px;
}

.caja-empresa h4{
  color: #047520;
  font-family: var(--fuente1);
  font-weight:bolder;
  margin: 20px;
  margin-bottom: 5px;
}
.caja-empresa p{
  font-family: var(--fuente1);
  font-weight: normal;
  margin-top: 5px;
  margin-left: 20px;
  margin-bottom: 20px;
}

.nuestro-impacto{
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  margin: auto;
}

.parrafo-impacto {
  text-align: center;
  margin: 50px;
}

/* ********** Formulario *********** */

.contactar {
  width: 100%;
  height: 900px;
  background-image: url(../img/raices-background.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center; /* Mejora el posicionamiento de la imagen de fondo */
}

.form-container h3 {
  text-align: center;
  color: var(--color3);
  font-size: 36px;
  padding: 20px;
  font-family: var(--fuente2);
}

.formu {
  width: 40%;
  max-width: 600px; /* Añadido un máximo ancho */
  height: auto; /* Cambiado a auto para adaptarse al contenido */
  min-height: 600px; /* Altura mínima */
  margin: 0 auto; /* Centrado horizontal mejorado */
  border-radius: 30px;
  background-color: var(--color5);
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Mejor alineación vertical */
  gap: 15px;
  position: relative;
  top: 120px;
  padding: 20px; /* Añadido padding interior */
  box-sizing: border-box; /* Para que el padding no afecte al ancho total */
}

.datos {
  width: 90%;
  max-width: 500px;
}

#formulario {
  display: block;
  margin-top: 20px;
  color: var(--color6);
  font-family: var(--fuente1);
  font-size: 1.2rem;
  margin-left: 10px; /* Reducido el margen */
}

#caja {
  width: 100%; /* Cambiado a 100% para adaptarse al contenedor */
  padding: 10px;
  margin-top: 10px;
  background-color: var(--color3);
  opacity: 0.9;
  border-radius: 10px;
  display: block;
  font-size: 1rem;
  border: none;
  box-sizing: border-box; /* Para que el padding no afecte al ancho total */
}

#caja::placeholder {
  color: var(--color4);
}

#mensaje {
  width: 100%;
  height: 20vh;
  background-color: var(--color3);
  opacity: 1;
  border-radius: 0px 20px 0px 20px;
  font-size: 1rem;
  border: none;
  padding: 10px;
  box-sizing: border-box;
  margin-top: 10px;
}

#mensaje::placeholder {
  color: var(--color4);
}

.contacto {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.contacto .btn {
  padding: 12px 30px;
  margin-bottom: 15px;
  color: var(--color2);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--color6);
}

/* ************** Boton Contacto ************* */
.btn, .submit-donation{
  position: relative;
  top:20px;
  bottom: 20px;
  background-color: var(--color5);
  font-size: 1.2rem;
  padding: 1rem 1.2rem;
  padding-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.1s ease;
}

.btn:active, .submit-donation:active{
  transform: scale(0.90); /* Se reduce un poco el tamaño */
      box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3); /* Da impresión de profundidad */
}

.btn::before, .submit-donation::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-top: 4px solid var(--color2);
  border-left: 4px solid var(--color2);
  transition: 0.2s;
  overflow: hidden;
}

.btn::after, .submit-donation::after{
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-bottom: 4px solid var(--color2);
  border-right: 4px solid var(--color2);
  transition: 0.2s;
  overflow: hidden;
  color: var(--color2);
}

.btn:hover, .submit-donation:hover{
  color: var(--color4);
  background: var(--color3);
  box-shadow: 5px 5px 10px 0px #42424275;
  transition-delay: 0.2s;
  border-radius: 10px;
}

.btn:hover::before, .btn:hover::after, .submit-donation:hover::before, .submit-donation:hover::after {
  width: 100%;
  height: 100%;
  /* Hacer los bordes transparentes cuando el hover está completo */
  border-color: transparent;
  /* Agregar transición específica para el color del borde */
  transition: width 0.2s, height 0.2s, border-color 0.1s 0.2s;
}

#btn-verde{
  background-color: var(--color3);
}

#btn-verde:hover{
  background-color: var(--color2);
}

.boton-cancelar, .boton-enviar{
  font-size: 14px;
  margin-bottom: 20px;
}

.boton-cancelar:hover{
  background-color: var(--color4);
  color: var(--color2);

}

.boton-cerrar{
  position: absolute;
      top: 15px;
      right: 15px;
      font-size: 30px;
      color: var(--color2);
      cursor: pointer;
      background: none;
      border: none;
}
/**Iconos fijos**/
.redes{
  position: fixed;
  bottom:0px;
  right:20px;
  
  z-index: 9999;
}

.redes img{
  width: 50px;
}

.scroll-arriba{
  position: fixed;
  bottom:0px;
  left:20px;
  z-index: 9999;
}
.scroll-arriba img{
  width: 50px;
}

/* ********** Producto Servicio Individual ********* */
.productos{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.titulo-producto{
  font-family: var(--fuente2);
  color: var(--color1);
  font-size: 1.8rem;
  text-align: center;
  padding: 20px;
  margin-top: 10px;
}
.caja-textos{
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--color3);
  padding: 20px;
}

 

/* Para todos los productos */
.producto1, .producto2, .producto3 {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

.caja-textos {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.producto1 .caja-textos,
.producto2 .caja-textos,
.producto3 .caja-textos {
  display: flex;
  flex-direction: row;
  width: 100%;
}
/* Para todos los contenedores de texto */
.parrafo-producto {
  width: 50%;
  font-family: var(--fuente1);
  color: var(--color5);
  text-align: center;
  font-size: 1.5rem;
}

.parrafo-producto  p{
  padding: 30px 60px;
}

/* Para todos los contenedores de imagen */
.imagen-producto {
  width: 50%;
  height: auto; /* Auto en lugar de 100% */
  display: flex; /* Añadido: para que la imagen pueda ocupar el espacio */
  align-items: stretch; /* Añadido: estira el contenido verticalmente */
}

/* Esto es lo importante: aplicar los estilos a la imagen, no al contenedor */
.imagen-producto img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Esto va en la imagen, no en el contenedor */
  object-position: center; /* Centra la imagen */
}

/* Estilos del botón */
#boton-producto {
  background-color: var(--color3);
  margin-top: 100px;
}

#boton-producto:hover {
  background-color: var(--color2);
}

/**Formularios con mismo fondo (fondo)**/
.imagen-fondo{
  background-image: url(../img/background-completo-dos-imagenes.png);
  background-size: cover;
}

#sin-imagen{
  background-image: none;
}

/**Politica de privacidad**/

.politica-privacidad{
  justify-content: center;
  background-color: var(--color1);
  color: var(--color5);
  font-family: var(--fuente1);
  padding: 20px;
  
}
.politica-privacidad h3{
  font-family: var(--fuente2);
  padding: 20px;
  margin: 20px;
}

.politica-privacidad h1{
  font-family: var(--fuente2);
  margin-top: 50px;
  padding: 20px;
  text-align: center;
}

.politica-privacidad p{
  margin: 10px;
  margin-left: 20px;
  margin-right: 20px;
}


/*css de Carlos*/
/* *******  Slider Infinito ********* */
.quienes-somos h2, #slider-infinito h2, #slider-circular h2, #tarjetas-campaña h2{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color2);
  font-size: 24px;
  padding: 20px;
  font-family: var(--fuente2);
}

#slider-infinito h2{
  background-color: var(--color4);
}

.quienes-somos h3{
  font-size: 24px;
  text-align: left;
  padding: 30px;
  font-family: var(--fuente1);
  color: var(--color1); 
}

.quienes-somos p{
  padding-left: 30px;
  padding-right: 100px;
  line-height: 28px;
  font-family: var(--fuente1);
  font-size: 18px;
  color: var(--color2);
  padding-bottom: 50px;
  

} 

.slider-infinito {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--color4), var(--color3));
  
}

.slider-infinito .list {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
}

.item-infinito {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: calc(100% + (var(--pos_inf) - 1) * var(--width) / 2);
  margin-right: var(--gap);
  animation: slideAnimation var(--slider-speed) linear infinite;
  animation-delay: calc((var(--slider-speed) / var(--quantity)) * (var(--pos_inf) - 1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-infinito:hover .item-infinito {
  animation-play-state: running;
}

.imagen-infinito {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 1s ease;
  
}

@keyframes slideAnimation {
  0% {
      left: 100%;
      opacity: 0;
  }
  5% {
      opacity: 1;
  }
  95% {
      opacity: 1;
  }
  100% {
      left: -150px;
      opacity: 0;
  }
}


/* ********** slider-circular ********* */
.banner{
  width: 100%;
  height: 100vh;
  text-align: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 100px;
  margin-top: 50px;
  
}

.banner .slider-circular{
  position: absolute;
  width: 200px;
  height: 250px;
  top: 10%;
  left: calc(50% - 100px);
  

  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
  animation: autoRun 40s linear infinite;
  z-index: 2;
}

@keyframes autoRun{
  from{
      transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
  }to{
      transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
  }

}

.banner .slider-circular .item-circular{
  position: absolute;
  inset: 0 0 0 0;

  transform: 
      rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
      translateZ(550px);
}

.banner .slider-circular .item-circular .imagen-circular{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.banner .content{
  position: absolute;
  bottom: 0;
  left: 40%;
  transform: translateX(-50%);
  width: min(1400px, 10vw);
  height: max-content;
  padding-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items:center;
  z-index: 1;
}

.banner .content .model{
  background-image: url(../img/arboles-3d.webp);
  width: 270%;
  height: 75vh;
  position: absolute;
  bottom: 0;
  left: 0;
  background-size: 100% 100%;
  z-index: 0;
}

/***************************************/
/* ********** Cards apiladas *********** */
.container-tarjetas{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  
}

#tarjetas-campaña{
  padding-bottom: 50px;
}
.card-stack {
  position: relative;
  width: 300px;
  height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.7s ease;
  top: 0;
  left: 0;
  cursor: pointer;
  backface-visibility: hidden;
  overflow: hidden;
}

.card h3{
  color: var(--color4);
  font-size: 24px;
  padding: 30px;
  margin-bottom: 50px;
  font-family: var(--fuente1);
}

.card img{

  width: 70%;
  margin-top: 50px;
  border-radius: 20px;
}
.card:nth-child(1) {
  background: var(--color2);
  z-index: 3;
}

.card:nth-child(2) {
  background: var(--color3);
  z-index: 2;
  /* Ligero desplazamiento inicial para simular que está debajo */
  transform: translateX(7px) scale(0.97) rotate(-15deg);
}

.card:nth-child(3) {
  background: var(--color1);
  z-index: 1;
  /* Más desplazamiento para la carta del fondo */
  transform: translateX(7px) scale(0.94) rotate(15deg);
}

.card-content {
  padding: 30px;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card h2 {
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
}

/* Efecto hover - separa las tarjetas horizontalmente */
.card-stack:hover .card:nth-child(1) {
  transform: translateX(-340px) rotate(-3deg);
}

.card-stack:hover .card:nth-child(2) {
  transform: translateY(0) scale(1);
}

.card-stack:hover .card:nth-child(3) {
  transform: translateX(340px) rotate(3deg);
}

.preguntas-frecuentes {
  width: 100%;
  height: auto;
  min-height: 100vh;
  background-color: var(--color3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  padding: 40px 0;
}

.preguntas-frecuentes h3 {
  margin-bottom: 30px;
  color: var(--color4);
  font-family: var(--fuente1);
  font-size: 2.5rem;
  font-weight: bold;
}

/* *** Acordeon ***** */

.accordion {
  width: 80%;
  max-width: 800px;
}


.accordion-content {
  display: none; /* Oculta el contenido inicialmente */

  padding: 15px;
  width: 100%;
  background-color: var(--color4);
  font-family: var(--fuente1);
  border-top: none;
  box-sizing: border-box;
}

.accordion-content p {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.accordion-header {
  width: 100%;
  height: 60px; /* Tamaño fijo para la cabecera */

  padding: 0 15px;
  color: var(--color4);
  background-color: var(--color2);
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--fuente1);
  font-size: 1.2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.accordion-header::after {
  content: '+'; /* Símbolo + por defecto */

  font-size: 4rem;
  font-weight: 200;
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  content: '-'; /* Símbolo - cuando está activo */

}

.accordion-item {
  margin-bottom: 15px;
  width: 100%;
}

/*pagina de contacto*/

#imagen-contacto{
  background-image: url(../img/raices-background.png);
  background-size: cover;
}

#pag-contacto-imagen-cabecera{
  background-image: url(../img/imagen-cabecera.webp);
  background-size: cover;
  
}

#form-pag-contacto{
  display: flex;
  justify-content:center;
  margin-left: -50px;
}


/**Pop Up campañas individuales**/

 .contenedor-campanas {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            text-align: center;
        }
         
        
        /* Popups */
        .fondo-popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 20px;
        }
        
        .popup {
            position: relative;
            background-color: white;
            font-family: var(--fuente1);
            border-radius: 12px;
            padding: 30px;
            width: 100%;
            max-width: 450px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .popup h2 {
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 24px;
            color: var(--color3);
        }
        
        .grupo-formulario {
            margin-bottom: 20px;
            text-align: left;
        }
        
        .grupo-formulario label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #555;
            font-size: 15px;
        }
        
        .control-formulario {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            box-sizing: border-box;
        }
        
        .control-formulario:focus {
            outline: none;
            border-color: var(--color2);
            box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
        }
        
        /* Resumen de costos */
        .resumen-costos {
            background-color: #f5f5f5;
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
            margin-bottom: 20px;
        }
        
        .resumen-costos h3 {
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 16px;
            color: var(--color2);
        }
        
        .costo-total {
            font-size: 24px;
            font-weight: bold;
            color: var(--color1);
            margin: 0;
        }
        
        .nota-costo {
            font-size: 13px;
            color: var(--color2);
            margin-top: 8px;
        }
        
     
        /* Mensaje de pie de página */
        .mensaje-pie {
            margin-top: 10px;
            color: var(--color2);
            font-size: 16px;
        }
        
        .mensaje-pie p:first-child {
            font-size: 16px;
            margin-bottom: 5px;
        }
        
        /* Estilos específicos por popup */
        #popupDonacion .resumen-costos {
            background-color: rgba(46, 139, 87, 0.1);
        }
        
        #popupFamiliar .resumen-costos {
            background-color: rgba(65, 105, 225, 0.1);
        }
        
        #popupFamiliar h2,
        #popupFamiliar .costo-total {
            color:var(--color3);
        }
        
        #popupEmpresarial .resumen-costos {
            background-color: rgba(138, 43, 226, 0.1);
        }
        
        #popupEmpresarial h2,
        #popupEmpresarial .costo-total {
            color: var(--color3);
        }
        

        /* mapa interactivo*/

        
        .contenedor-mapa {
          font-family: var(--fuente1);
            position: relative;
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            background-image: url(../img/Mapa-españa.png);
             background-size:cover;
             background-position-y: 10px;
             margin-top: 50px;
             
            
        }
        
        .mapa-svg {
            width: 100%;
            height: auto;
            max-height: 600px;
            border-radius: 10px; 
           
            
        }
        
        .punto {
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .punto:hover {
            r: 12px;
        }
        
        .tooltip {
            position: absolute;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            font-size: 14px;
            pointer-events: none;
            display: none;
            z-index: 1000;
            min-width: 200px;
            text-align: center;
        }
        
        .tooltip h3 {
            margin: 0 0 8px 0;
            color:var(--color2);
            font-size: 16px;
        }
        
        .tooltip .total-arboles {
            font-size: 18px;
            font-weight: bold;
            color: var(--color3);
            margin: 8px 0;
        }
        
        .leyenda {
            margin-top: 20px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            padding: 10px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .item-leyenda {
            display: flex;
            align-items: center;
        }
        
        .color-leyenda {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            margin-right: 5px;
        }
        
        .info-panel {
          font-family: var(--fuente1);
            margin-top: 30px;
            text-align: center;
            justify-content: center;
            padding: 20px;
            width: 90%;
           
        }
        
        .info-panel h2 {
            color: var(--color2);
            margin-top: 0;
        }
        
        .total-nacional {
            font-size: 24px;
            font-weight: bold;
            color: var(--color3);
            margin: 15px 0;
        }
       

/**footer**/

footer {
  width: 100%;
  height: auto;
  clear: both;
  text-align: center;
  background: linear-gradient(to bottom, var(--color2) , var(--color6));
  padding: 10px 0;
  position:relative;
  bottom: 0px;
  line-height: 28px;
}

footer p{
  text-decoration: none;
  font-weight: bold;
  color: var(--color3);
  font-family: var(--fuente1);
  
}

.nav-pie{
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  align-items: flex-start;
  

}
.nav-pie ul{
  list-style-type: none;
  padding: 10px;

}
.nav-pie a{
  font-family: var(--fuente1);
  text-decoration: none;
  color: var(--color5);
  
} 

/*****************************************************************/
/*****************************************************************/
/*****************************************************************/
/*****************************************************************/
 /* Responsive */
/*****************************************************************/
/*****************************************************************/

/* *********** Cards apiladas ********** /
/* Responsive: en pantallas pequeñas, las tarjetas se separan verticalmente */
@media (max-width: 1500px) {

  
.cabecera-quienes-somos{
  width:100%;
}
  
.cabecera-quienes-somos img{
  width: 50%;
  
  margin-top: 60px;  
}

  /* Formulario Contacto */
   .formu {
      width: 60%;
      top: 80px;
  }
  
  .form-container h3 {
      font-size: 32px;
  }

  .card-stack:hover .card:nth-child(1) {
      transform: translateY(-200px) rotate(-3deg);
  }
  
  .card-stack:hover .card:nth-child(2) {
      transform: translateY(0) scale(1);
  }
  
  .card-stack:hover .card:nth-child(3) {
      transform: translateY(200px) rotate(3deg);
  }
}


 @media (max-width: 720px) {
     .boton {
      width: 100%;
      margin-bottom: 10px;
            }
            
    .popup {
      padding: 20px;
           }

    .upper-section {
        flex-direction: column;
    }
    
    .image-container, .text-content {
        width: 100%;
    }
    
    .text-content {
        margin-top: 20px;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-text {
        padding: 8px 12px;
    }




/* Media queries para responsividad */

  :root {
    --gap: 20px;
    --width: 70px;
    --height: 50px;
   
  }
  
  .slider-infinito {
      height: 80px;
  }

  .menu-icon {
      display: flex;
  }
            
  nav ul {
      position: fixed;
      top: 0;
      right: -100%;
      flex-direction: column;
      background-color: var(--color2);
      width: 70%;
      height: 100%;
      padding-top: 80px;
      transition: all 0.3s ease;
      z-index: 100;
  }
            
  nav.active ul {
      right: 0;
  }
  
  nav ul li {
      margin: 1rem;
  }
  
  .submenu .dropdown {
      position: static;
      background-color:var(--color2);
      display: none;
      padding-left: 1rem;
      height: 25vh;
  }
  
  .submenu.active .dropdown {
      display: block;
  }
  
  /* Transformación del ícono hamburguesa en X */
  nav.active .bar:nth-child(1) {
      transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  nav.active .bar:nth-child(2) {
      opacity: 0;
  }
  
  nav.active .bar:nth-child(3) {
      transform: rotate(45deg) translate(-5px, -6px);
  }
  .iconos-objetivos-contenedor{
    flex-direction: column;
  }

.cabecera-quienes-somos{
  width: 100%;
}
  
.cabecera-quienes-somos img{
  width: 50%;
  margin-left: 0;
  margin-top: 60px;  
}
  /* *******  Slider Infinito ********* */
.quienes-somos h2, #slider-infinito h2, #slider-circular h2, #tarjetas-campaña h2{
  font-size: 20px;
}

.quienes-somos h3{
  font-size: 18px;
}

.quienes-somos p{
  font-size: 14px;
  text-align: justify;
  margin-left: 20px;
} 

.slider-infinito {
      height: 60px;
  }

/* ********** slider-circular ********* */
.banner{
  height: 80vh;
  margin-bottom: 80px;
  margin-top: 30px;
}

.banner .slider-circular{
  position: absolute;
  width: 150px;
  height: 180px;
  top: 10%;
  left: calc(50% - 100px);
  

  transform-style: preserve-3d;
  transform: perspective(500px) rotateX(-16deg) rotateY(0deg);
  animation: autoRun 40s linear infinite;
  z-index: 2;
    
}

.banner .slider-circular .item-circular{
  position: absolute;
  inset: 0 0 0 0;

  transform: 
      rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
      translateZ(550px);
}


.banner .content .model{
  width: 250%;
  height: 50vh;  
}
/* ********** Cards apiladas *********** */
.container-tarjetas{
  height: 160vh;
}

/* Efecto hover - separa las tarjetas horizontalmente */
.card-stack:hover .card:nth-child(1) {
  transform: translateY(-420px) rotate(-3deg);
}

.card-stack:hover .card:nth-child(2) {
  transform: translateY(0) scale(1);
}

.card-stack:hover .card:nth-child(3) {
  transform: translateY(420px) rotate(3deg);
}

/* Pop up Donacion */
.popup-content {
    justify-content: center;
      background-color: var(--color5);
      text-align: center;
      width: 80%;
      border-radius: 20px;
      box-shadow: 0 4px 20px rgba(92, 92, 92, 0.2);
      padding: 30px;
      position: relative;
      transform: scale(0.8);
      transition: transform 0.3s ease;
      font-family: var(--fuente1);
      height: 100vh; /* Altura fija para permitir scroll */
      overflow-y: auto; 

  }

  /* Formulario Contacto */


 .contactar {
      height: auto;
      min-height: 800px;
      padding: 20px 0;
  }
  
  .formu {
      width: 80%;
      top: 40px;
      margin-bottom: 60px;
  }
  
  .form-container h3 {
      font-size: 28px;
  }

  .preguntas-frecuentes h3{
    text-align: center;
    font-size: 25px;
  }

  /* Tarjeta Regala Apadrina Arbol */
  .caja-particular{
    width: 90%;
  }


  .cabecera{
    flex-direction: column;
    justify-content: center;
    height: 130vh;
  
  }


  .eslogan{
    text-align: right;
    margin-top: 20px;
    font-size: 30px;
    
  }

  .formulario-donacion {
    
    margin-left: 0px;
  }

  .titulos-regala-arbol{
    display: none;
  }
  .caja-regala-arbol{
    flex-direction: column;
    justify-content: center;
    gap:20px;
    margin-left: 0px;
    margin-right: 100px;

  }

  .caja-empresa{
  width:90%;
}

footer p{
  font-size: 12px;
}

.producto1 .caja-textos,
.producto2 .caja-textos,
.producto3 .caja-textos {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.imagen-producto {
  width: 100%;
}

.parrafo-producto {
  width: 100%;
  font-size: 1rem;
  height: 80vh;
}


 }
