/* ==== Carrusel Principal (#carouselExample) ==== */
#carouselExample {
  background-color: #f0f0f0; /* Fallback color */
}

#carouselExample .carousel-inner {
  padding-top: 10px;
  max-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Background image will be set inline */
}

#carouselExample .carousel-item {
  background-color: transparent;
}

#carouselExample .carousel-item img {
  object-fit: scale-down;
  height: 92vh;
  width: 100%;
}

/* Simple mobile adjustment - just resize height */
@media (max-width: 768px) {
  #carouselExample .carousel-item img {
    height: 50vh;
  }
}

#promoCarousel {
  max-width: 600px; /* o el tamaño que prefieras */
  margin: 0 auto;
  background-image: none !important;
}

#promoCarousel .carousel-inner {
  background-image: none !important;
  padding: 20px 0;
  border-radius: 8px;
}

#promoCarousel .carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* En móvil, eliminar espacio entre imágenes */
@media (max-width: 767.98px) {
  #promoCarousel .row > div {
    padding: 0;
  }
}

/* ==== Animaciones de scroll reveal ==== */
.hidden-on-load {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.show-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

/* ==== Fondo fijo ==== */
body {
  padding-top: 56px;
  background-color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  body {
    padding-top: 48px;
  }
}

html, body {
  overflow-x: hidden;
}


/* ==== Sección “¿Quiénes somos?” ==== */
#quienes-somos {
  padding: 50px;
  border-radius: 8px;
}
#quienes-somos h2 {
  color: white;
}
#quienes-somos p {
  font-size: 20px;
  color: white;
  width: 80%;
  margin: 0 auto;
  text-align: justify !important;
}
@media (max-width: 768px) {
  #quienes-somos {
    max-height: 40vh;
    overflow-y: auto;
    padding: 1rem;
  }
  #quienes-somos h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  #quienes-somos p {
    font-size: 0.9rem;
    width: 100%;
  }
}

/* ==== Sección de contacto ==== */
.contact-section {
  color: white;
  padding: 100px 50px;
}
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}
.contact-text {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  height: 500px;
  max-height: 465px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
}
.contact-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}
.contact-text p {
  margin-bottom: 15px;
  line-height: 1.5;
}
.contact-text::-webkit-scrollbar {
  width: 6px;
}
.contact-text::-webkit-scrollbar-thumb {
  border-radius: 3px;
}

/* ==== Formulario de contacto ==== */
.contact-form {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 8px;
  min-width: 300px;
  color: #333;
  height: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
}
.contact-form label {
  display: block;
  color: white;
  margin-bottom: 5px;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-form .form-row > div {
  flex: 1;
  min-width: 150px;
}
.contact-form button {
  background: black;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: #333;
}

/* ==== Imágenes de scroll lateral ==== */
.scroll-images-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.scroll-img {
  width: 30%;
  height: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
  border-radius: 10px;
}
.scroll-img.from-left { transform: translateX(-100px); }
.scroll-img.from-right { transform: translateX(100px); }
.scroll-img.from-bottom { transform: translateY(100px); }
.scroll-img.visible { opacity: 1; transform: translate(0); }
@media (max-width: 768px) {
  .scroll-images-container {
    flex-direction: column;
  }
  .scroll-img {
    width: 80%;
    margin-bottom: 1rem;
  }
}

/* ==== Navbar responsive ==== */
@media (max-width: 768px) {
  .navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .navbar-brand {
    font-size: 1.25rem;
  }
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-text {
    width: 100%;
    max-width: 90%;
    margin-bottom: 1.5rem;
    max-height: 40vh;
    overflow-y: auto;
  }
  .contact-text h2 {
    font-size: 1.5rem;
  }
  .contact-text p {
    font-size: 0.9rem;
  }
  .contact-form {
    width: 100%;
    max-width: 90%;
    margin-bottom: 1.5rem;
  }
}

/* ==== Modal Intro Video ==== */
.intro-modal-dialog {
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}
.intro-modal-content {
  background-color: transparent;
  border: none;
  padding: 0;
}
.intro-modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.intro-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background-color: black;
}

.rifa-section {
  padding: 60px 20px;
}

.rifa-title {
  opacity: 0;
  color: white;
  transform: translateY(-20px);
  transition: all 0.8s ease;
}

.rifa-title.animate {
  opacity: 1;
  transform: translateY(0);
  animation: wobble 0.8s ease-in-out 0.8s;
  animation-fill-mode: forwards;
}

@keyframes wobble {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-2px) rotate(-2deg); }
  50%  { transform: translateY(0) rotate(2deg); }
  75%  { transform: translateY(-1px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0); }
}

.rifa-images {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* alinea arriba para que estén al mismo nivel */
  gap: 30px;
  position: relative;
}

.rifa-img {
  height: 300px;  /* fija la altura */
  width: auto;    /* ancho proporcional */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(0);
  transition: all 1s ease;
  display: block; /* para evitar espacios extras debajo de imágenes inline */
}

@media (max-width: 768px) {
  .rifa-images {
    flex-direction: column;
    align-items: center;
  }

  .rifa-img {
    width: 90vw;            /* Asegura que la imagen no sobrepase el ancho de pantalla */
    height: auto;           /* Mantiene la proporción original */
    max-height: 300px;      /* Limita la altura, sin recortar */
    object-fit: contain;    /* Escala la imagen completa dentro del espacio disponible */
  }

  /* Anula el transform de slide-left y slide-right en móvil */
  .slide-left, .slide-right {
    transform: none !important;
  }
}

.slide-left {
  transform: translateX(-100%);
}

.slide-right {
  transform: translateX(100%);
}

.rifa-img.show {
  opacity: 1;
  transform: translateX(0);
}



@keyframes fadeInWobble {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    transform: rotate(-3deg);
  }
  70% {
    transform: rotate(3deg);
  }
  80% {
    transform: rotate(-2deg);
  }
  90% {
    transform: rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.rifa-title {
  opacity: 0;
  transform: translateY(30px);
}

.rifa-title.show {
  animation: fadeInWobble 1.2s ease forwards;
}

.ganadores-section {
  padding: 60px 20px;
}

.ganadores-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
}

.ganador-img {
  height: clamp(280px, 30vw, 380px);
  width: auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  object-fit: contain;
}


/* En móvil una imagen por fila */
@media (max-width: 768px) {
  .ganadores-images {
    flex-direction: column;
    align-items: center;
  }

  .ganador-img {
    width: 90%;
    height: auto; /* para mantener la proporción */
    margin-bottom: 20px;
  }
}

.main-overlay-card {
  max-width: 1400px;
  height: 100%;
  margin: 40px auto;
  background-color: rgba(0, 0, 0, 0.4); /* Fondo negro con opacidad */
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  color: white; /* Opcional: para contraste con fondo oscuro */
}

.pagos-section h2{
  padding-bottom: 80px;
}
.pagos-section {
  padding: 60px 120px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.4);
}

.btn-pago{
 background-color: black;
 font-size: 30px;
 color: white;
 min-height:60px;
 min-width: 400px;
 border-radius: 12px;
}

.pagos-section label{
  font-size: 20px;
}

@media (max-width: 768px) {
  .pagos-section {
    padding: 30px 20px;
  }

  .btn-pago {
    font-size: 20px;
    min-width: 100%;
  }

  .pagos-section label {
    font-size: 16px;
  }

  .pagos-section h2 {
    padding-bottom: 40px;
    font-size: 24px;
  }

  select {
    width: 100%;
    font-size: 16px;
  }

  #resultadoPago {
    font-size: 16px;
    padding-top: 10px;
  }
}
