:root {
    --color-principal: #f7d0cb;
    --color-wa: #25d366;
    --color-icon: #a19f9f;
    --color-text: #626262;
    --color-first_bttn: #FFB347;
    --color-text_bttn: #5D3B09;
    --color-fondo: #E4FBFF;
    --blue: #5AA2FF;      /* fondo */
    --pink: #f0978b;      /* línea vertical */
    --purple: #B379E0;    /* primer círculo */
    --text: #0F172A;
  }

body{
    font-family: "Baskervville", serif;
    font-weight: 100;
    margin: 0;
    color: #505050;
}

.music-btn {
    background-color: var(--pink);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000; 
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
  }
  .music-btn:hover { filter: brightness(0.9); }




.cursiva{
    font-family: "Birthstone", cursive;
    font-size: 2.5rem;
    margin: 0;
    margin-bottom: 20px;
}


  
  .img_inicial .cursiva_title {
    font-family: "Great Vibes", cursive;
    font-size: 4rem;
    font-weight: 100;
    margin: 0;
  }
  
  .img_inicial {
    background-image: url('../img/principal.webp');
    background-size: cover;          /* Ajusta la imagen para cubrir todo el contenedor */
    background-position: center;     /* Centra la imagen */
    background-repeat: no-repeat;    /* Evita repeticiones */
    width: 100%;
    height: 100vh;                   /* Ocupa toda la altura de la pantalla */
    display: flex;                   /* Para centrar el texto */
    flex-direction: column;
    justify-content: flex-end;       /* Coloca el texto en la parte inferior */
    align-items: center;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    padding-bottom: 60px;            /* Espacio desde el fondo */
    margin-bottom: -10px;
  }

  .pie{
    padding-bottom: 10%;
  }

  .primer_seccion{
    background-color: var(--color-principal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 90px;
    border-bottom-left-radius: 80%;
    border-bottom-right-radius: 80%;
    margin-top: 0;
    margin-bottom: 20px;
  }


.pink img{
    max-width: 200px;
    display: block;
    margin: -80px auto 20px;
    position: relative;
    z-index: 2;
}

.pink h1{
    font-size: 2.5rem;
}

.contenedor-magico {
  position: relative;
  width: 100%;
  /* Quitamos el height: 350vh o lo bajamos significativamente */
  height: auto; 
  overflow: visible;
}

.regresiva {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 1; /* Capa base */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* ESTO ES LO QUE FALTA: */
  overflow: hidden; /* Corta cualquier parte del video que se salga */
  background-color: #000; /* Fondo negro de respaldo */
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Centrado perfecto del video */
  transform: translate(-50%, -50%);
  z-index: -1; /* Obligatorio: detrás del contador */
  pointer-events: none; /* Para que no interfiera con clics */
}

.bloque {
  position: relative;
  z-index: 10;
  /* Este margen negativo es el que hace que el bloque "suba" sobre la imagen */
  margin-top: -200px; 
  background: transparent;
}
.bloque_blanco{
  padding: 100% 0px;
  height: 0px;
}
span{
  margin-top: 20px;
  font-weight: bold
}


p.bloque_texto {
  background: #ffffff;
  /* Ajustamos el padding para que quede al ras de tu texto */
  padding: 60px 40px; 
}

.imagen-final {
  position: relative;
  z-index: 11; /* Mayor que el bloque para que lo empuje al tocarlo */
  display: block;
  width: 100%;
  margin-top: -1px; /* Sella cualquier grieta visual */
}

.regresiva h2{
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    margin: 0;
}

.countdown {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 10px;
  text-align: center;
  color: #fff;
  max-width: 90%;
  pointer-events: auto; /* Reactivamos clics solo en el contador */
}
  
  .cd-unit{
    width: 80px;
    height: 100px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(230, 220, 212, 0.82); /* beige translúcido */
    border-radius: 22px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  .cd-bubble{
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.18);
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    font-weight: 400;
    margin-bottom: 8px;
  }
  
  .cd-label{
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.18);
  }

  span.cd-label{
    font-size: .7rem;
  }

  .bloque{
    display: flex;
    justify-content: center;
    margin-top: 100px;
  }

  .bloque p{
    max-width: 90%;
    text-align: center;
    font-size: 1.2rem;
  }


  img{
    max-width: 100%;
  }

  .iconos{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
.iconos_content{
    margin-top: 25px;
}

.line{
    min-height: 120px;
    max-width: 7px;
    margin-left: 55px;
    background-color: var(--color-icon);
    border-radius: 10px;
}

.section_2{
    background-image: url('../img/fondo.webp');
    padding-top: 20px;
    margin-top: -10px;
}
.section_2 h1{
    text-align: center;
    font-size: 2.5rem;
}

.iconos{
    max-width: 100%;
    padding: 10px;
    position: relative;
    overflow: hidden;

  }
  
  .iconos_content{
    width: min(1100px, 100%);
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  /* cada bloque */
  .icon_info{
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* línea vertical entre íconos */
  .line{
    width: 2px;
    height: 70px;
    background: rgba(40, 40, 40, 0.8);
    margin: 0 auto;
  }
  
  /* círculo del ícono */
  .icon{
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  
  .icon img{
    
    object-fit: contain;
    display: block;
  }
  
  /* texto */
  .icon_text{
    position: absolute;
    width: 34%;
    max-width: 360px;
    text-align: center;
    color: #1f2430;
  }
  
  .icon_title{
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 10px;
    color: #1f2430;
  }
  
  .icon_text p:not(.icon_title):not(.hour){
    font-size: clamp(1.15rem, 1.9vw, 1.7rem);
    line-height: 1.35;
    margin: 0;
    color: #2b3140;
  }
  
  .hour{
    font-size: clamp(2rem, 2.8vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 8px 0 0;
    color: #1f2430;
  }
  
  /* alternado izquierda / derecha */
  .icon_info:nth-of-type(1) .icon_text,
  .icon_info:nth-of-type(5) .icon_text,
  .icon_info:nth-of-type(9) .icon_text{
    left: 0;
  }
  
  .icon_info:nth-of-type(3) .icon_text,
  .icon_info:nth-of-type(7) .icon_text{
    right: 0;
  }
  
  /* ajuste vertical fino para que respire como en la imagen */
  .icon_info:nth-of-type(1),
  .icon_info:nth-of-type(3),
  .icon_info:nth-of-type(5),
  .icon_info:nth-of-type(7),
  .icon_info:nth-of-type(9){
    padding: 10px 0;
  }
  

  .iconos_content{
    position: relative;
}

.iconos_content::before{
    content:"";
    position:absolute;
    left:50%;
    top:80px;
    bottom:80px;
    width:2px;
    background:#7f7f7f;
    transform:translateX(-50%);
}

.icon{
    position: relative;
    z-index: 2;
}
  .section_3{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .section_3 h1{
    background-color: var(--color-principal);
    padding: 10px;
    margin-top: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .section_3 img{
    max-width: 80%;
  }

  .section_3 a{
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
    padding: 10px;
    margin-top: 10px;

  }
.section_4{
  width: 100%;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  background-color: var(--color-principal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section_4 h1{
  margin-bottom: 30px;
  background-color: var(--pink);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  width: 80%;
  text-align: center;
  color: white;
}

.carousel-wrap{
  position: relative;
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track{
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track-inner{
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.card{
  min-width: 100%;
}

.card a{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.ubi{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
}

.ubi svg{
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

.ubi p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.carousel-btn{
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  transition: all 0.25s ease;
}

.carousel-btn:hover{
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev{
  left: -18px;
}

.carousel-btn.next{
  right: -18px;
}

.carousel-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.carousel-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.carousel-dot.active{
  background: var(--pink);
  transform: scale(1.15);
}

  .section_5 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -5px;
  }

  .section_5 h2.cursiva{
    margin-top: 30px;
    margin-bottom: 0;
  }

  .section_5 h3{
    margin: 0px;
    margin-bottom: 20px;
  }

  .md_circle{
    background-color: #ede8d0;
    width: 80%;
    border-bottom-left-radius: 500px;
    border-bottom-right-radius: 500px;
  }
.vestimenta{
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.vestimenta img{
    max-height: 300px;
}

.vestimenta_box p, .vestimenta_box h3{
    margin: 0;
}

.section_6{
    margin-top: 50px;
    color: white;
    background-image: url('../img/5.webp');
    background-size: cover;          /* Ajusta la imagen para cubrir todo el contenedor */
    background-position: center;     /* Centra la imagen */
    background-repeat: no-repeat;    /* Evita repeticiones */
    width: 100%;
    height: 100vh;                   /* Ocupa toda la altura de la pantalla */
    display: flex;                   /* Para centrar el texto */
    flex-direction: column;
    justify-content: flex-start;       /* Coloca el texto en la parte inferior */
    align-items: center;
}

.section_6 h1{
    margin-top: 30px;
}

 /* ===== Variables de color ===== */
 :root{
    --olive: #dfa30a;   /* verde/gris del estilo */
    --border:#B78E24;   /* borde de inputs */
    --text:#444; 
    --muted:#8a8a8a;
    --bg:#fff;
  }

  .section_7{
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  form{
    max-width: 90%;
  }
  /* Utilidad: ocultar solo visualmente pero accesible a lectores de pantalla */
  .sr-only{
    position:absolute !important;
    width:1px; height:1px;
    padding:0; margin:-1px;
    overflow:hidden; clip:rect(0,0,0,0);
    white-space:nowrap; border:0;
  }
  
  /* ===== Contenedor ===== */
  .rsvp{
    max-width: 90%;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  }
  
  /* Título */
  h2.rsvp__title{
    text-align:center;
    margin-top: 30px;
  }
  
  /* Radios asistencia */
  .rsvp__asistencia{
    display:flex;
    justify-content: center;
    border:0; padding: 4px 0 14px; margin:0 0 6px;
  }
  
  .rsvp__radio{
    display:flex; align-items:center; gap:10px;
    font-size: 1rem; color:#555;
  }
  
  /* Color del radio (soportado por navegadores modernos) */
  .rsvp__radio input[type="radio"]{ accent-color: var(--olive); }
  
  /* Campos */
  .rsvp__field{ margin: 12px 0; }
  
  .rsvp__form{
    margin-top: 20px;
    width: 90%;
  }

  p.rsvp__closing{
    margin-bottom: 100px;
  }

  .rsvp__field input,
  .rsvp__field textarea{
    width: 90%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
  }
  
  /* Placeholder gris suave */
  .rsvp__field input::placeholder,
  .rsvp__field textarea::placeholder{
    color: var(--muted);
  }
  
  /* En foco: borde oliva y sombra sutil */
  .rsvp__field input:focus,
  .rsvp__field textarea:focus{
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(139,143,132,.15);
  }
  
  /* Botón (si lo usas) */
  .rsvp__btn{
    background: var(--color-principal);
    color:#fff;
    border:0;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    display:block;
    margin: 8px auto 0;
    cursor:pointer;
  }
  .rsvp__btn:hover{ filter: brightness(0.95); }
  
  /* Cierre cursivo */
  .rsvp__closing{
    text-align:center;
    color: var(--olive);
    margin: 18px 0 0;
    font-size: 3rem;
  }


  .icon_info.active{
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
  }
  
  .icon_info.active.show{
    opacity: 1;
    transform: translateY(0);
  }


  .up{
    opacity: 0;
    transform: translateY(70px);
    transition: 
      opacity 0.6s cubic-bezier(0.22,1,0.36,1),
      transform 0.6s cubic-bezier(0.22,1,0.36,1);
  }

  .up.show{
    opacity: 1;
    transform: translateY(0);
  }
  @keyframes shake{
    0%{ transform: translateX(0); }
    25%{ transform: translateX(-2px); }
    50%{ transform: translateX(2px); }
    75%{ transform: translateX(-1px); }
    100%{ transform: translateX(0); }
  }

.right{
  opacity: 0;
  transform: translateX(70px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.right.show{
  opacity: 1;
  transform: translateX(0);
}



.gallery_instax{
    width: 90%;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }
  
  .instax_slider{
    position: relative;
    width: 90%;
    margin: 0 auto;
  }
  
  .instax_stage{
    max-width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  
  .instax_stack{
    min-width: 400px;
    width: 100%;
    height: 100%;
  }
  
  /* cada foto */
  .instax_card{
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(350px, 100%);
    height: 440px;
    background: #f8f8f8;
    border-radius: 14px;
    padding: 20px 20px 54px;
    box-shadow:
      0 16px 28px rgba(0,0,0,0.16),
      0 3px 8px rgba(0,0,0,0.10);
    transition:
      transform 0.5s ease,
      opacity 0.45s ease,
      filter 0.45s ease;
    transform-origin: center center;
    overflow: hidden;
  }
  
  /* imagen interna */
  .instax_card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
  }
  
  /* foto activa al frente */
  .instax_card.is-active{
    z-index: 4;
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(-1.2deg) scale(1);
    filter: blur(0);
  }
  
  /* segunda foto atrás */
  .instax_card.is-next{
    z-index: 3;
    opacity: 0.95;
    transform: translateX(10px) translateY(8px) rotate(3deg) scale(0.98);
  }
  
  /* tercera foto atrás */
  .instax_card.is-next-2{
    z-index: 2;
    opacity: 0.88;
    transform: translateX(18px) translateY(16px) rotate(6deg) scale(0.96);
  }
  
  /* fotos ocultas */
  .instax_card.is-hidden{
    z-index: 1;
    opacity: 0;
    transform: translateX(0) translateY(30px) rotate(0deg) scale(0.94);
    pointer-events: none;
  }
  
  /* flechas */
  .instax_arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(70,70,70,0.92);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    z-index: 10;
  }
  
  .instax_prev{
    left: -58px;
  }
  
  .instax_next{
    right: -58px;
  }
  
  .instax_arrow:hover{
    transform: translateY(-50%) scale(1.05);
  }
  
  /* dots */
  .instax_dots{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
  }
  
  .instax_dot{
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #cbbcb2;
    opacity: 0.75;
    cursor: pointer;
    padding: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  }
  
  .instax_dot.active{
    background: #b8a79d;
    opacity: 1;
    transform: scale(1.15);
  }

  .instax_stage{
    height: 500px;
  }

  .instax_card{
    width: min(500px, 90%);
    height: 500px;
    padding: 16px 16px 46px;
    border-radius: 12px;
  }

  .instax_prev{
    left: -12px;
  }

  .instax_next{
    right: -12px;
  }

  .instax_arrow{
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  @media (min-width: 768px) {
    body {
      display: flex;
      flex-direction: column;
      justify-content: center;  /* centra horizontalmente */
      align-items: center;      /* centra verticalmente */
      min-height: 100vh;        /* ocupa toda la altura de la pantalla */
      background-color: #f5f5f5; /* opcional, para contraste */
    }
  
    /* Contenedor principal (tu bloque de contenido) */
    .contenedor-principal {
      max-width: 1000px;
      width: 100%;
      background-color: #fff; /* fondo blanco */
      border-radius: 16px;    /* esquinas redondeadas */
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* sombra elegante */
      overflow: hidden;       /* para que nada sobresalga */
    }
  }