/* :: DONATE LANDING
----------------------------------------------- */

.donate-form-section {
	background-image: url('/img/donate/bg-cows.jpg');
	background-repeat: no-repeat;
	background-position: right 35% bottom;
    background-size: auto 100%;    
}
.donate-form-section .content-body {
    margin-top: 400px; 
}

@media (min-width: 576px) {
    .donate-form-section {
        min-height: 400px;
    }
}

@media (min-width: 768px) {
    .donate-form-section {
        background-position: center top;
        min-height: 500px;
    }
    .donate-form-section .content-body {
        margin-top: 0px; 
    }     
}
@media (min-width: 992px) {
    .donate-form-section {
        background-position: center bottom;        
        background-size: cover;        
    }    
}

@media (min-width: 1200px) {
    .donate-form-section {
        min-height: 600px;
    }
}




.donate-form-section-head {
  margin-top: -40px;
  position: relative;
  overflow: hidden;
}

.donate-form-section-head.donate-article-tail {
  margin-top: 0;
}

/* Imagen de fondo por defecto */
.donate-form-section-head .bg-image {
  position: absolute !important;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.donate-form-section-head .bg-image img {
  position: absolute !important;
  right: -80%;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  width: auto;
  min-height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Video de fondo */
.donate-form-section-head .bg-video {
  transform: translateX(-50%);
  left: 50%;
  object-fit: cover;
}

/* Capa oscura opcional */
.donate-form-section-head .bg-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 2;
}

/* Contenido */
.donate-form-section-head .container {
  position: relative !important;
  z-index: 3;
  margin-top: 70px;
  color: #fff;
}

.donate-form-section-head .content-body {
  margin-top: 30vh;
}

/* ====== Desktop ====== */
@media (min-width: 768px) {
  .donate-form-section-head {
    min-height: 800px;
  }
  .donate-form-section-head.donate-article-tail {
    min-height: 600px;
  }    
  .donate-form-section-head .content-body {
    margin-top: 0;
    transform: none;
    padding-top: 6rem;
    padding-bottom: 5rem;
  }   
  .donate-form-section-head .bg-image img {
    right: 0;
  }
}

/* ====== Mobile ====== */
@media (max-width: 767.98px) {
  /* La imagen deja de ser fondo y se convierte en bloque superior */
  .donate-form-section-head .bg-image {
    position: relative !important;
    width: 100%;
    height: 300px;   /* altura máxima */
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
  }

  .donate-form-section-head .bg-image img {
    position: relative !important;
    width: 100%;
    height: 100%;
    object-fit:cover;
    object-position: right center;
    right: 0;
    top: auto;
    transform: none;
  }


  /* Video pasa a bloque superior */
  .donate-form-section-head .bg-video {
    position: relative;
    width: 100%;
    height: 300px;
    object-fit: cover;
    left: auto;
    transform: none;
    display: block;
    z-index: 1;
  }    
    
  /* Overlay desaparece en móvil */
  .donate-form-section-head .bg-overlay,
  .donate-form-section-head .breadcrumbs-col {
    display: none;
  }

  /* El container se pega debajo de la imagen, con fondo sólido */
  .donate-form-section-head .container {
    width: 100% !important; 
    max-width: 100% !important;      
    background-color: #1f2220;
    margin-top: 0; 
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* Ajuste del contenido */
  .donate-form-section-head .content-body {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
	.testimonial-col + .testimonial-col {
		border-left: 1px solid #dee2e6;
	}
}
/* Ocultar testimonios 4 y 5 en pantallas pequeñas (<768px) */
@media (max-width: 767px) {
	.testimonial-col:nth-child(n+4) {
		display: none;
	}
}

.donate-sticky-col .donate-form-section-head {
    position: relative;
    min-height: 500px; 
}

.donate-sticky-col .donate-form-section-head .bg-image img {
    transform: translateY(-20%) scaleX(-1);
    right: auto;
    left: 0;
    width: 100%;
    height: auto;
}

.donate-sticky-col .donate-landing-title {
    position: absolute;
    display: inline-block;
    max-width: 30%;
    top: 50%;
    transform: translateY(10%);
    margin-left: 5rem;
    padding: 1.5rem 2rem;
    color: #fff;
    background-color: #1f2220;
    z-index: 15;
}

@media (max-width: 767.98px) {
    .donate-sticky-col .donate-form-section-head {
        min-height: auto;
        height: auto;
        overflow: hidden;
    }

    .donate-sticky-col .donate-form-section-head .bg-image img {
        min-height: 250px; 
        width: auto;
        height: 100%;
        object-fit: cover;
        transform: scaleX(-1);
        position: absolute;
        right: 0;
        left: auto;
        top: 0;
    }
    
    .donate-sticky-col .donate-landing-title {
        max-width: 90%;
        width: auto; 
        font-size: 1.5rem; 
        text-align: center; 
        padding: 1rem 1.5rem;
        left: 50%; /* Mueve el 50% del ancho del padre */
        top: 70%; /* Mueve el 50% del alto del padre */
        transform: translate(-50%, -50%); /* Ajusta el elemento a su propio centro */
        margin-left: 0;
    }
    
    .donate-sticky-col .donate-landing-title h1 {
        font-size: 1.5rem; 
    }
}

.fixed-bottom-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1050;
    padding: 15px; /* Un poco de espacio alrededor del botón */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); /* Opcional: sombra sutil */
    
    /* Centrado con Flexbox */
    display: flex;
    justify-content: center;
}

#fixed-donate-button {
    /* Aquí definimos el tamaño del botón dentro del contenedor */
    width: 100%;
    max-width: 400px;
}

/* Opcional: para que se vea como en la imagen que adjuntaste */
#fixed-donate-button.btn-submit {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 5px;
}


/* ====== Desktop (768px and up) ====== */
@media (min-width: 768px) {
  .donate-form-section-projects .bg-overlay {
      display: none;
  }
    
  .donate-form-section-projects .content-body {
    color: #fff;
    background-color: #1f2220;
    padding: 4rem 3rem !important;
  }
     .donate-sticky-col .donate-form-section-head .bg-image img { 
        transform: translateY(-60%) scaleX(-1);
    }
    .donate-sticky-col .donate-form-section-body .donate-form-col {
        margin-top: -250px;
        background-color: #ffffff;
        z-index: 10;
    } 
    
}






/* :: DONATE SIMULATOR
----------------------------------------------- */

#simulador {
	padding-top: 50px;
	margin: 15px auto;
	max-width: 952px;
}
#simulador label.btn-amount {
	border: 2px solid transparent;
	margin: 10px;
}
#simulador input[data-toggle]:checked + label.btn-amount, #simulador input[data-toggle]:checked + label.btn-amount:active, #simulador label.btn-amount:hover, #simulador label.btn-amount:focus {
	color: #FFFFFF !important;
	background-color: #E85109 !important;
	border: 2px solid #000000;
}
#simulador-box {
	margin: 15px auto 30px;
	max-width: 600px;
}
#simulador-box .row {
	background-color: #fdeec0;
	padding: 20px 30px;
	margin-top: 10px;
}
#simulador-box h3, #simulador-box h4 {
	margin-top: 10px;
	margin-bottom: 15px;
	text-align: center;
}
#optionAmount {
	font-size: 34px;
	line-height: 34px;
	height: 55px;
	width: 160px;
	text-align: center;
	padding: 10px;
}
#simulador .data-table {
	margin: 0 auto 20px;
	max-width: 90%;
	background: #FFFFFF;
}
#simulador .data-table td {
	font-size: .9rem;
	padding: 10px 15px;
	color: #333333;
	border-bottom: 1px solid #666666;
}
#simulador .data-table tr td:last-child {
	text-align: right;
}
#simulador .data-table tr:last-child td:last-child {
	font-weight: 700;
}
#simulador .data-table tr:last-child td {
	border-top: 2px solid #666666;
	border-bottom: none;
}
#simulador .disclamer p {
	font-size: 12px;
	color: slategray;
}
