/* Fuente principal: Avenir, fallback Montserrat */
body {
  font-family: 'Avenir', 'Montserrat', Arial, sans-serif;
  background: #f4efe7;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  margin: 0;
  color: #444;
  overflow-x: hidden;
}

.video-section {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  margin: 0 auto;
  padding: 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


.video-bg {
  width: 100vw;
  max-width: 100vw;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

iframe {
  opacity: 1;
  transform: translateY(0);
}

.header {
  text-align: center;
  margin-top: 70px;
  margin-bottom: 0;
}

.logo.grande {
  width: 1800px;
  max-width: 80vw;
  margin: 0 auto 0 auto;
  display: block;
}

.titulo-trascender {
  margin-top: -10px;
}

.evento-nombre {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ff4848;
  margin: 0;
  letter-spacing: 1px;
}

.evento-nombre span {
  color: #ff4848;
}

.evento-sub {
  color: #bdbdbd;
  font-size: 1.1rem;
  margin-top: -8px;
  margin-bottom: 0;
}

.whatsapp-section {
  text-align: center;
  margin: 18px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.whatsapp-icon {
  width: 250px;
  height: 250px;
  margin-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 40px;
  filter: drop-shadow(0 2px 8px #388e3c33);
}

@keyframes bounce {
  0%, 100% { transform: scale(1);}
  50% { transform: scale(1.08) translateY(-8px);}
}

.whatsapp-icon {
  animation: bounce 1.5s infinite;
}

.whatsapp-btn {
  background: #e8f5e9;
  color: #6a8553;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 3.8rem;
  box-shadow: 0 2px 8px rgba(56,142,60,0.10);
  border: 2px solid #c8e6c9;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
  animation: pulse 1.5s infinite;
}
.whatsapp-btn:hover {
  background: #c8e6c9;
  color: #256029;
}

@keyframes pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.08);}
  100% { transform: scale(1);}
}

.evento-info {
  text-align: center;
}
.lugar {
  color: #6a8553;
  font-size: 15rem;
  margin-bottom: 0;
  font-family: bold;
}
.fechas {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 4px #888;
  margin-bottom: 10px;
}
.fecha-grande {
  font-weight: 700;
  font-size: 10rem;
  color: #ff4848;
}
.mes {
  display: block;
  font-size: 6rem;
  color: #ff4848;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}
.cd-item {
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 220px;
  text-align: center;
  font-size: 15rem;
}

.cd-item span {
  transition: color 0.3s, transform 0.2s;
}
.cd-item.changed span {
  color: #ff4848;
  transform: scale(1.2);
}

.cd-label {
  display: block;
  font-size: 5rem;
  color: #6a8553;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 160px;
  justify-items: center;
  align-items: center;
  margin: 40px auto 0 auto;
  max-width: 1350px;
}

.galeria-grid1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0 auto;
  width: 100%;
  gap: 12px;
}

.galeria-grid1 h3 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 5.2rem;
  color: #6a8553;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 8px #e0e0e0;
  background: linear-gradient(90deg, #e8f5e9 0%, #f4efe7 100%);
  border-radius: 12px;
  padding: 8px 0 4px 0;
}

.galeria-grid1 p {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 3.2rem;
  color: #ff4848;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 6px 0 4px 0;
}

.maps-icon-galeria {
  width: 270px;
  height: 270px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  background: #fff;
  padding: 10px;
}

.maps-icon-galeria {
  animation: bounce 1.5s infinite;
}

.galeria-grid img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  background: #fff;
  border: 6px solid #fff;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s;
}
.galeria-grid img:hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 2;
}

.galeria-grid video {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  background: #fff;
  border: 6px solid #fff;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s;
}
.galeria-grid video:hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 2;
}

.vestimenta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 30px 0;
  width: 100%;
}

.vestimenta-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.vestimenta-img {
  width: 750px;
  max-width: 80vw;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  background: #fff;
  padding: 10px;
  animation: pulse 1.5s infinite;
}

.vestimenta-section h3 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 5.2rem;
  color: #6a8553;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 8px #e0e0e0;
  background: linear-gradient(90deg, #e8f5e9 0%, #f4efe7 100%);
  border-radius: 12px;
  padding: 8px 0 4px 0;
}

.vestimenta-section p {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 3.2rem;
  color: #ff4848;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 6px 0 4px 0;
}

/* Banner Carrusel index.html*/

.carousel {
    width: 100%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel h3 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 5.2rem;
  color: #6a8553;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 8px #e0e0e0;
  background: linear-gradient(90deg, #e8f5e9 0%, #f4efe7 100%);
  border-radius: 12px;
  padding: 8px 0 4px 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  background: #fff8ee;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 2rem;
  color: #6a8553;
  box-shadow: 0 2px 8px #e0e0e0;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: background 0.2s, color 0.2s;
  margin-left: 1rem;
}
.carousel-btn:hover {
  background: #e8f5e9;
  color: #ff4848;
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}
.carousel {
  position: relative;
}

.footer {
  text-align: center;
  font-size: 2rem;
  color: #ff4848;
  margin: 30px 0 10px 0;
  font-weight: 600;
  animation: bounce 1.5s infinite;
}

/* Animaciones de entrada */
.fade-in {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.slide-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.invisible {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

/* Responsivo */
@media (max-width: 900px) {
  .collage-maps { width: 350px; height: 250px; }
  .collage-img { width: 90px; height: 90px; border-radius: 10px; border-width: 4px; }
  .maps-icon-collage { width: 50px; height: 50px; border-radius: 10px; padding: 4px; }
  .img1 { left: 0px; top: 0px; }
  .img2 { right: 0px; top: 20px; }
  .img3 { left: 20px; bottom: 0px; }
  .img4 { right: 20px; bottom: 0px; }
}
@media (max-width: 600px) {
  .video-section { height: 140px; }
  .video-bg { height: 140px; }
  .logo.grande { width: 110px; }
  .galeria-img { width: 60px; height: 60px; }
  .pincelada-bg { padding: 18px 2px; }
  .collage-maps { width: 210px; height: 130px; }
  .collage-img { width: 40px; height: 40px; border-radius: 5px; border-width: 2px; }
  .maps-icon-collage { width: 24px; height: 24px; border-radius: 5px; padding: 2px; }
  .img1 { left: 0px; top: 0px; }
  .img2 { right: 0px; top: 8px; }
  .img3 { left: 8px; bottom: 0px; }
  .img4 { right: 8px; bottom: 0px; }
}

/* Aplica animaciones a otras secciones */
.section-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.section-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .logo.grande {
    width: 300px;
    max-width: 90vw;
  }
  .whatsapp-icon {
    width: 120px;
    height: 120px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .whatsapp-btn {
    font-size: 1.5rem;
    padding: 10px 18px;
  }
  .lugar {
    font-size: 7rem;
  }
  .fecha-grande {
    font-size: 4rem;
  }
  .mes {
    font-size: 3rem;
  }
  .cd-item {
    min-width: 80px;
    font-size: 5rem;
    padding: 6px 4px;
  }
  .cd-label {
    font-size: 1.5rem;
  }
  .galeria-grid img {
    width: 90px;
    height: 90px;
  }
  .galeria-grid video {
    width: 250px;
    height: 250px;
  }
  .maps-icon-galeria {
    width: 70px;
    height: 70px;
    padding: 6px;
  }
  .galeria-grid1 h3 {
    font-size: 2.2rem;
  }
  .galeria-grid1 p {
    font-size: 1.1rem;
  }
  .carousel h3 {
    font-size: 2.2rem;
  }
  .vestimenta-img {
    width: 220px;
    max-width: 90vw;
  }
  .vestimenta-section h3 {
    font-size: 2rem;
  }
  .vestimenta-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .video-section {
    aspect-ratio: unset;
    height: 160px;
    min-height: 120px;
  }
  .video-bg {
    height: 160px;
    min-height: 120px;
  }
  .logo.grande {
    width: 380px;
    max-width: 100vw;
  }
  .whatsapp-icon {
    width: 70px;
    height: 70px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .whatsapp-btn {
    font-size: 1.1rem;
    padding: 8px 10px;
  }
  .lugar {
    font-size: 4.5rem;
  }
  .fecha-grande {
    font-size: 4rem;
  }
  .mes {
    font-size: 3.5rem;
  }
  .cd-item {
    min-width: 40px;
    font-size: 4rem;
    padding: 4px 2px;
  }
  .galeria-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 95vw;
  }
  .galeria-grid video {
    width: 280px;
    height: 280px;
  }
  .galeria-grid img {
    width: 90vw;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 16px;
    border-width: 3px;
  }
  .maps-icon-galeria {
    width: 200px;
    height: 200px;
    padding: 2px;
    border-radius: 8px;
  }
  .galeria-grid1 h3 {
    font-size: 2.2rem;
    padding: 4px 0 2px 0;
  }
  .galeria-grid1 p {
    font-size: 1.5rem;
    padding: 2px 0 2px 0;
  }
  .carousel {
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
  }
  .carousel-inner {
    min-width: 100vw;
  }
  .carousel-item {
    min-width: 100vw;
    max-width: 100vw;
  }
  .carousel-item img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
  }
  .carousel h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    padding: 0;
  }
  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    top: 60%;
  }
  .carousel-btn.prev {
    left: 2px;
  }
  .carousel-btn.next {
    right: 2px;
  }
  .vestimenta-section {
    margin: 24px 0 18px 0;
  }
  .vestimenta-img {
    width: 300px;
    max-width: 95vw;
    padding: 6px;
  }
  .vestimenta-section h3 {
    font-size: 2.2rem;
    padding: 2px 0;
  }
  .vestimenta-section p {
    font-size: 1.5rem;
    padding: 2px 0;
  }
  .footer {
    font-size: 0.9rem;
    margin: 18px 0 6px 0;
  }
}