/* NAVBAR - Aparición suave al cargar */
#mainNav {
  background-color: #ffffff; /* Fondo blanco */
  transition: background-color 0.3s ease, transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-20px);
  opacity: 0;
}

#mainNav.show {
  transform: translateY(0);
  opacity: 1;
}

/* MARCA */
#mainNav .navbar-brand {
  color: #FCC525;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

/* NAV LINKS */
#mainNav .navbar-nav .nav-link {
  color: #333333;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link:focus {
  color: #4DA6FF;
  transform: scale(1.05);
}

/* BOTÓN DE DONACIÓN */
#mainNav .btn-primary {
  background-color: #FFE066;
  border: none;
  color: #333333;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  animation: pulse 1.6s infinite;
}

#mainNav .btn-primary:hover {
  background-color: #ffda33;
  transform: translateY(-2px);
}

/* ANIMACIÓN DE LATIDO (PULSE) */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ICONO TOGGLER */
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%234DA6FF' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* RESPONSIVE NAV */
@media (max-width: 991.98px) {
  #mainNav .navbar-nav {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  }

  #mainNav .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }
}

 /* TERMINA NAVBAR*/



/* AQUI EMPIEZA MASTHEAD */
.masthead .row {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.masthead.show .row {
  opacity: 1;
  transform: translateY(0);
}

/* Animación secuencial */
.masthead h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.masthead.show h1 {
  opacity: 1;
  transform: translateY(0);
}

.masthead p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.9s ease-out 0.2s;
}

.masthead.show p {
  opacity: 1;
  transform: translateY(0);
}

.masthead a.btn {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s ease-out 0.4s;
}

.masthead.show a.btn {
  opacity: 1;
  transform: scale(1);
}

/* HOVER en botón */
.masthead a.btn:hover {
  transform: scale(1.05);
}

/* BOTÓN CTA */
.masthead .btn-primary {
  background-color: #FFE066;
  border: none;
  color: #333333;
  font-weight: 700;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.masthead .btn-primary:hover {
  background-color: #ffda33;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* AQUI TERMINA MASTHEAD */






/* Encabezado de sección */
section .display-5 {
  font-weight: 600;
  color: #333;
}

section h2.text-uppercase {
  font-weight: 700;
  color: #4DA6FF;
  letter-spacing: 1px;
}

/* Línea divisora */
hr.border-dark-subtle {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Tarjetas de testimonio */
.card {
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Imagen de niño/a */
.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-color: #FFE066 !important;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

/* Iconos de emociones */
.card .text-warning i {
  color: #FFD54F;
}

/* Citas/testimonios */
.bsb-blockquote-icon {
  position: relative;
  padding-left: 1.5rem;
}

.bsb-blockquote-icon::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-size: 2rem;
  color: #4DA6FF;
  opacity: 0.2;
}

/* Nombre del niño/a */
.card h4 {
  font-weight: 600;
  color: #222;
}

/* Lema personal */
.card p.fst-italic {
  font-size: 0.95rem;
  color: #4DA6FF;
}

/* Botón final */
.btn-outline-primary {
  border-color: #4DA6FF;
  color: #4DA6FF;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #4DA6FF;
  color: white;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* ===== Video Section Styles ===== */
#video-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s ease;
}

#video-section.show {
  opacity: 1;
  transform: translateY(0);
}

#video-section .section-heading {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1e90ff;
}

#video-section .video-wrapper {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 1.25rem;
  transition: transform 0.3s ease;
}

#video-section .video-wrapper:hover {
  transform: scale(1.02);
}

/* ===== Video Section Ends ===== */

/* ===== Hero Donations Section ===== */
/* ===== Hero Donations ===== */
#hero-donations {
  background: linear-gradient(to right, #0069d9, #319DD8);
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: white;

  /* Animación inicial */
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}

#hero-donations.show {
  opacity: 1;
  transform: translateY(0);
}

/* Imagen */
#hero-donations img {
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 4px solid #ffffff;
  transition: transform 0.4s ease;
}

#hero-donations .col-lg-6:first-child {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease 0.3s;
}
#hero-donations.show .col-lg-6:first-child {
  opacity: 1;
  transform: translateX(0);
}

#hero-donations .col-lg-6:first-child img:hover {
  transform: scale(1.02);
}

/* Texto */
#hero-donations .col-lg-6:last-child {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease 0.6s;
}
#hero-donations.show .col-lg-6:last-child {
  opacity: 1;
  transform: translateX(0);
}

/* Títulos */
#hero-donations h2 {
  font-weight: 800;
  font-size: 2.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
  #hero-donations h2 {
    font-size: 3rem;
  }
}

/* Subtítulo */
#hero-donations p.text-uppercase {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #f8f9fa;
}

/* Párrafos */
#hero-donations p.lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Botón */
#hero-donations .btn-light {
  background-color: #ffffff;
  color: #319DD8;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

#hero-donations .btn-light:hover {
  background-color: #e6f0ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}


/* Fondo general y tipografía */
.service {
  background-color: #ffffff; /* Marrón oscuro */
  color: #FFE066;            /* Amarillo pastel */
}

/* Títulos */
.service .section-title h1,
.service .section-title h4 {
  color: #319DD8;
  font-weight: 700;
  text-align: center;
}

.service .section-title p {
  color: #000000;
  font-size: 1.3rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Tarjetas individuales */
.service-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Imágenes */
.service-img img {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  object-fit: cover;
  height: 200px;
}

/* Contenido dentro de la tarjeta */
.service-content {
  background-color: #fff;
  color: #333;
}

.service-content h5 {
  font-weight: 700;
  color: #1e1e1e;
}

.service-content p {
  color: #555;
  font-size: 0.95rem;
  min-height: 100px;
}

/* Botón Leer más */
.service-content .btn-primary {
  background-color: #319DD8;
  border: none;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s;
}

.service-content .btn-primary:hover {
  background-color: #0069d9;
  transform: scale(1.05);
}

/* Botón final Ver más actividades */
.service .btn-light {
  font-weight: 600;
  font-size: 1.1rem;
  background-color: #fff;
  color: #1e90ff;
  border: none;
  transition: background-color 0.3s, transform 0.3s;
}

.service .btn-light:hover {
  background-color: #e6f0ff;
  transform: translateY(-3px);
}

/* ===== Call to Action ===== */
.page-section.bg-primary {
  background: linear-gradient(to right, #007bff, #1e90ff); /* Gradiente azul atractivo */
  padding: 5rem 0;
  text-align: center;
}

.page-section.bg-primary h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-section.bg-primary p {
  font-size: 1.2rem;
  color: #e0f0ff;
  margin-bottom: 2rem;
}

.page-section.bg-primary .btn-light {
  color: #0069d9;
  background-color: #fff;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}



.page-section.bg-primary .btn-light:hover {
  background-color: #f0f8ff;
  color: #0056b3;
  transform: scale(1.05);
}

/* ===== Contacto ===== */
#contact {
  padding: 5rem 0;
}

#contact h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

#contact .divider {
  width: 60px;
  height: 4px;
  background-color: #1e90ff;
  margin: 1rem auto 2rem;
}

#contact p.text-muted {
  font-size: 1.1rem;
  color: #666 !important;
}

/* Campos del formulario */
#contactForm .form-control {
  border-radius: 0.75rem;
  padding: 2.5rem;
  font-size: 1rem;
}

#contactForm .form-control:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 0 0.25rem rgba(30, 144, 255, 0.25);
}

#contactForm label {
  color: #555;
  font-weight: 500;
}

#contactForm .invalid-feedback {
  font-size: 0.9rem;
}

/* Botón de envío */
#submitButton {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 2rem;
  background-color: #1e90ff;
  border: none;
  transition: background-color 0.3s ease;
}

#submitButton:hover:not(:disabled) {
  background-color: #0069d9;
  transform: scale(1.02);
}

/* Mensajes de éxito/error */
#submitSuccessMessage,
#submitErrorMessage {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== Datos de Contacto Directo (Sección de íconos) ===== */
#contact .bi {
  color: #1e90ff;
  transition: transform 0.3s ease;
}

#contact .bi:hover {
  transform: scale(1.2);
}

#contact .col-lg-4 > div {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

#contact .col-lg-4 i {
  display: block;
}

/* ===== Animaciones de entrada para Contacto ===== */
#contact .row {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
#contact.show .row {
  opacity: 1;
  transform: translateY(0);
}

#contactForm .form-floating {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
#contact.show #name.form-floating      { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
#contact.show #email.form-floating     { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
#contact.show #phone.form-floating     { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
#contact.show #message.form-floating   { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

#contact .col-lg-4 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 1s;
}
#contact.show .col-lg-4 {
  opacity: 1;
  transform: translateY(0);
}



/* ===== Footer ===== */
.footer {
  background-color: #1c1c1e;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer .footer-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer a:hover {
  color: #1e90ff;
  text-decoration: underline;
}

/* Botones de redes sociales */
.footer .btn-square {
  width: 40px;
  height: 40px;
  background-color: #1e90ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.footer .btn-square:hover {
  background-color: #0d6efd;
}

/* Divider del final */
.footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer small {
  color: #aaa;
}

/* Responsive ajustes extra */
@media (max-width: 576px) {
  .footer .footer-item {
    text-align: center;
  }

  .footer .btn-square {
    margin: 0 5px 10px;
  }
}

/* ===== Hero Volunteer Base ===== */
#hero-volunteer {
  position: relative;
  min-height: 35vh;
  background-image: url('../img/DoctorSonrisa.jpg'); /* ✅ Ruta de imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

#hero-volunteer.show {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay oscuro para mejorar contraste */
#hero-volunteer .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

#hero-volunteer .container {
  position: relative;
  z-index: 2;
}

/* Tipografía y sombreado */
#hero-volunteer h2,
#hero-volunteer p {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

/* Botón */
#hero-volunteer .btn {
  border-radius: 2rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

#hero-volunteer .btn:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  #hero-volunteer {
    min-height: 100vh;
    padding: 3rem;
  }

  #hero-volunteer h2 {
    font-size: 2.5rem;
  }

  #hero-volunteer p {
    font-size: 1.25rem;
  }
}


@media (min-width: 992px) {
  #hero-volunteer {
    min-height: 40vh;
  }

  #hero-volunteer h2 {
    font-size: 3rem;
  }

  #hero-volunteer p {
    font-size: 1.5rem;
  }
}




