* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

:root {
    --verde-principal: #6d9c5e;
    --verde-secundario: #9cbd8b;
    --verde-claro: #cbdeb8;
    --marron-oscuro: #5b473e;
    --fondo-claro: #faffe5;
}


/* Fuentes personalizadas */

@font-face {
    font-family: 'MontserratLight';
    src: url(../fonts/Montserrat-Light.ttf);
}

@font-face {
    font-family: 'Lora';
    src: url(../fonts/Lora.ttf);
}

body {
    font-family: 'MontserratLight';
    background-image: url("../img/fondo-pasaporte-bolamundo.jpeg");
    background-size: 900px;
    background-repeat: repeat;
    background-position: center top;
    overflow-x: hidden;
}



header {
    width: 100%;
    background-color: var(--verde-claro);
    color: var(--marron-oscuro);
}


/* =========================
   NAVBAR BASE
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Definimos el alto aquí */
    z-index: 9999;
    background-color: var(--verde-claro);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px; /* Quitamos padding vertical, controlamos con height */
    border-bottom: 1px solid var(--verde-secundario); /* La línea ahora vive aquí */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 65px; /* Se reduce un poco al hacer scroll */
    background-color: rgba(203, 222, 184, 0.85); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

ul {
    display: flex;
    gap: 20px;
}

.li_link {
    color: var(--marron-oscuro);
}

.li_link:hover {
    font-weight: bold;
}

.li_link a {
    position: relative;
    padding-bottom: 4px;
}

.li_link a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--marron-oscuro);
    transition: width 0.3s ease;
}

.li_link a:hover::after {
    width: 100%;
}


.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: bold;
    text-align: center;
    font-size: 27px;
    font-family: 'Lora';
}

.logo span {
    font-size: 10px;
    margin-top: 4px;
    letter-spacing: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background-color: var(--marron-oscuro);
    transition: all 0.4s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translate(.5px, .5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100vh;
    background-color: var(--verde-claro);
    transition: left 0.4s ease;
    z-index: 1000;
    padding: 40px 30px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-header {
    margin-bottom: 40px;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-links a {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--marron-oscuro);
    text-transform: uppercase;
}


.hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--marron-oscuro);
    padding-top: 60px;

    background-image: url("../img/mapamundihero.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* 👇 DIFUMINADO REAL */
    -webkit-mask-image: linear-gradient(to bottom, 
        black 70%, 
        transparent 100%);
    mask-image: linear-gradient(to bottom, 
        black 70%, 
        transparent 100%);
}




/* Contenedor */
.hero-inner {
    max-width: 700px;
    padding: 20px;
}

/* Texto superior */
.hero-pretitle {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--marron-oscuro);
}


.hero-title {
    font-family: 'Lora';
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-title span {
    font-size: 32px;
    margin: 0 6px;
}


.hero-divider {
    width: 60px;
    height: 1px;
    background-color: var(--marron-oscuro);
    margin: 24px auto;
}


.hero-casamos {
    font-size: 16px;
    letter-spacing: 4px;
    font-weight: bold;
    color: var(--marron-oscuro);
}

/* =========================
   COUNTDOWN HERO
========================= */

.countdown {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-item span {
    font-size: 28px;
    font-weight: bold;
    color: var(--marron-oscuro);
    font-family: 'Lora';
}

.countdown-item small {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--marron-oscuro);
}

/* =========================
   NUESTRA HISTORIA
========================= */

.historia {
    background-color: transparent;
}

.section-title {
    font-family: 'Lora';
    font-size: 36px;
    color: var(--marron-oscuro);
    text-align: center;
    margin-top: 70px;
}

.section-title:first-child {
    margin-bottom: 40px;
}

.historia-text {
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--marron-oscuro);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 60px;
}

/* Contenedor mapa */
.historia-mapa {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* mapa mundi */

:root{
  --point-size: 14px;
  --point-size-touch: 20px;
  --accent: #b8864b; /* color elegante tipo dorado */
  --bg: #fbfbf9;
  --modal-bg: rgba(0,0,0,0.6);
}

/* accessible helper */
.visually-hidden{
  position:absolute!important;
  height:1px;width:1px;
  overflow:hidden;clip:rect(1px,1px,1px,1px);
  white-space:nowrap;border:0;padding:0;margin:-1px;
}

/* MAP wrapper */
.map-wrapper{
  max-width:1100px;
  margin:28px auto;
  padding:12px;
  position:relative;
  border-radius:14px;
  background:linear-gradient(180deg, #fff 0%, #fbf7f3 100%);
  box-shadow: 0 6px 22px rgba(10,10,10,0.06);
  overflow:hidden;
}

/* map image responsive */
.map-image{
  display:block;
  width:100%;
  height:auto;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none; /* so clicks hit points, not image */
}

/* points */
.map-point{
  position:absolute;
  width:var(--point-size);
  height:var(--point-size);
  border-radius:50%;
  background:var(--accent);
  border:3px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transform:translate(-50%,-50%);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  display:inline-block;
  z-index:2;
  -webkit-tap-highlight-color: transparent;
}

/* hover / focus */
.map-point:hover,
.map-point:focus{
  transform: translate(-50%,-50%) scale(1.16);
  box-shadow:0 6px 18px rgba(0,0,0,0.22);
  outline: none;
}



/* Modal styles */
/* -----------------------
   Modal (centrado fiable)
   ----------------------- */
.modal{
  position: fixed;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0; */
  display: none;
  align-items: center;         /* CENTRADO vertical */
  justify-content: center;     /* CENTRADO horizontal */
  z-index: 10000;              /* alto para que quede sobre todo */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-overflow-scrolling: touch;
  /* usar la unidad svh/svh o dvh evita problemas con barras de navegador en móviles */
  min-height: 100dvh;
  box-sizing: border-box;
  background: rgba(0,0,0,0.35); /* opcional: oscurece el fondo (si ya tienes overlay puedes quitarlo) */
}

/* mostrar */
.modal[aria-hidden="false"]{
  display:flex;
}

/* overlay (si usas otra estructura, mantenla) */
.modal-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
}

/* caja de contenido centrada y con límite de alto */
.modal-content{
  position: relative;
  margin: 0;                   /* importante: quitar margin:auto que a veces desplaza */
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  padding: 12px;
  width: 92%;
  max-width: 720px;
  /* limitamos la altura respecto a la ventana visual real y hacemos scroll interno */
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* botón cerrar */
.modal-close{
  position:absolute;
  top:8px;
  right:8px;
  background:rgba(255,255,255,0.95);
  border:0;
  font-size:18px;
  line-height:1;
  padding:6px 8px;
  border-radius:8px;
  cursor:pointer;
  z-index:1200;
}

/* imagen dentro de la modal */
.modal-content img{
  display:block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100dvh - 120px); /* deja espacio para caption/close */
  object-fit: contain;
  border-radius: 8px;
}

/* caption */
#modalCaption{
  margin-top:10px;
  font-size:14px;
  text-align:center;
  color:#333;
  padding:0 8px 8px;
}

/* =========================
   EL DESTINO
========================= */
.como-llegar {
    padding: 120px;
}

.como-llegar h1 {
    color: var(--color-titles);
    font-weight: 550;
    font-size: 45px;
    margin-bottom: 80px;
    max-width: 1200px;
}

.ceremonia-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 200px;
}

.img-ceremonia img:first-child {
    max-width: 530px;
    border-radius: 5px;
    box-shadow: 2px 5px 39px 0px rgba(0,0,0,0.41);
}

/* =========================
   IGUALAR ALTURA IMÁGENES CEREMONIA / BANQUETE
========================= */

.img-ceremonia {
    position: relative;
    width: 100%;
    max-width: 530px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px;
}

/* Imagen ocupa todo el marco */
.img-ceremonia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-iglesia img {
    object-position: center -20%;
}

.flex-como-llegar {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.flex-icon-iglesia {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flex-icon-iglesia i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.flex-icon-iglesia div:last-child {
    line-height: 1.4;
}


.flex-column-icons {
    display: flex;
    flex-direction: column;
    padding: 10px 0px;
    gap: 5px;
}

.ceremonia-flex-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 200px;
    margin-left: -57px;
}

.text-ceremonia {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
    position: relative;
}

.mensaje-recordatorio {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 14px 18px;
    background-color: var(--verde-claro);
    border-left: 4px solid var(--verde-principal);
    border-radius: 6px;
    font-family: 'MontserratLight';
    font-size: 15px;
    color: black;
    letter-spacing: 0.4px;
    animation: fadeIn 0.6s ease;
}

.mensaje-recordatorio img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.9;
}


.mensaje-recordatorio p {
    margin: 0;
}


.ceremonia-flex {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
    position: relative;
}

.ceremonia-flex.show {
    opacity: 1;
    transform: translateX(0);
}

.text-ceremonia-2 {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.5s ease-out;
    position: relative;
}

.text-ceremonia-2.show {
    opacity: 1;
    transform: translateX(0);
}

.text-ceremonia.show {
    opacity: 1;
    transform: translateX(0);
}

.text-ceremonia h2 {
    font-size: 33px;
    color: var(--color-titles);
}

.h1-comollegar {
    font-family: 'Lora';
    color: var(--marron-oscuro);
}

.text-ceremonia h2 span {
    font-size: 47px;
    letter-spacing: .5px;
    color:var(--marron-oscuro);
}

.text-ceremonia-2 h2 span {
    font-size: 47px;
    letter-spacing: .5px;
    color:var(--marron-oscuro);
}

.text-iglesia a {
    text-decoration: none;
    color: black;
}

.text-iglesia span {
    text-decoration: underline;
}


.formulario-asistencia {
    margin-top: 10px;
    min-height: 50vh; 
    display: flex; 
    justify-content: center;
    align-items: center; 
    flex-direction: column; 
    padding: 80px 20px; 
}

.hidden {
    display: none !important; 
}


.visible {
    display: block !important;
}


#loading-spinner {
    margin-top: -140px !important; 
    text-align: center;
}


#loading-spinner p {
    font-weight: 600; 
    color: #5a4e45; 
    margin-top: 0px;
}


#mensajeConfirmacion h2 {
    font-size: 32px;
}

#mensajeConfirmacion p {
    font-size: 18px;
}


@media (max-width: 600px) {
    
   
    #mensajeConfirmacion {
        padding: 50px 10px !important; 
    }

    #mensajeConfirmacion h2 {
        font-size: 24px !important;
    }

   
    #mensajeConfirmacion p {
        font-size: 16px !important; 
        line-height: 1.5; 
        margin-top: 10px !important;
    }
    
    
    #mensajeConfirmacion a {
        padding: 8px 15px !important;
        font-size: 14px;
        margin-top: 20px !important;
    }

    .navbar-footer {
        display: none;
    }

    .contactanos h2 {
        text-align: center;
        font-size: 25px;
    }
}

.confirm-btn {
    padding: 10px 15px;
    background-color: #5a4e45; 
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-family: 'MontserratRegular', sans-serif;
    text-transform: uppercase;
}

.confirm-btn:hover {
    background-color: #7b6d63; 
}

#codigoConfirmacion {
    height: 40px; 
    line-height: 40px;
}

#codigoSection label {
    display: block !important;
    margin: 10px 0px; 
}

.ceremonia-flex.slide-right-banquete {
    transform: translateX(100px) !important; 
    transition: all 1.5s ease-out !important; 
}

.ceremonia-flex.slide-right-banquete.show {
    transform: translateX(0) !important;
}


/* formulario contacto */
.formulario-web {
    max-width: 800px; /* Ancho máximo del formulario */
    margin: 40px auto; /* Centrar el formulario */
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Borde redondeado */
    background-color: #f9f9f9; /* Color de fondo suave */
}

/* Contenedor para alinear Nombre, Apellidos y Email */
.campos-alineados {
    display: flex;
    flex-wrap: wrap; /* Permite que los campos bajen si no hay espacio */
    gap: 20px; /* Espacio entre los campos */
    margin-bottom: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que los campos se expandan */
    min-width: 200px; /* Ancho mínimo para cada campo */
}

.campo label, .campo-mensaje label {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--verde-claro);
}

.campo input[type="text"],
.campo input[type="email"],
.campo-mensaje textarea {
    padding: 10px;
    font-family: 'MontserratLight';
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Importante para que padding no afecte el ancho total */
    width: 100%; /* Asegura que los campos llenen su contenedor */
}

/* Estilo específico para el textarea (el cuadro de texto para escribir) */
.campo-mensaje textarea {
    resize: vertical; /* Permite redimensionar solo verticalmente */
    min-height: 100px;
}

/* Media Query para pantallas pequeñas: apilar campos */
@media (max-width: 600px) {
    .campos-alineados {
        flex-direction: column;
        gap: 0;
    }
    .campo-placeholder {
        display: none;
    }
}

form {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'MontserratLight';
    margin-bottom: 150px;
}

form h2 {
    font-weight: normal;
    font-size: 30px;
    margin-bottom: 1.5rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--verde-claro);
    border-radius: 0;
    font-size: 14px;
    margin-top: 0.5rem;
    box-sizing: border-box;
    border-radius: 7px; /* Modificacion textarea bordes redondeados */
}

select[name="ninos"],
textarea {
    width: 10%;
    padding: 0.75rem;
    border: 1px solid var(--verde-secundario);
    border-radius: 0;
    font-size: 14px;
    margin-top: 0.5rem;
    box-sizing: border-box;
}



input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
#codigoConfirmacion:focus {
  outline: none;
  border-color: #968a7f;
  color: #333;
  border: 2px solid var(--verde-claro);
  caret-color: #a3968a;
}

input[type="password"]:focus {
  -webkit-tap-highlight-color: transparent; 
  outline-color: #a3968a !important; 
  -webkit-focus-ring-color: #a3968a; 
}


#codigoConfirmacion:focus {
    outline: none; 
    border-color: #968a7f; 
    border: 1.4px solid #a3968a; 
}

input[type="password"]:focus,
#codigoConfirmacion:focus {
    -webkit-box-shadow: 0 0 0 2px #a3968a; 
    box-shadow: 0 0 0 2px #a3968a;
    -webkit-focus-ring-color: #a3968a;
}


textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 0.5rem;

}

input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--verde-secundario);
  border-radius: 50%;
  margin-right: 0.5rem;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

input[type="checkbox"] {
    border-radius: 4px;
  }

  
input[type="radio"]::before,
input[type="checkbox"]::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color:var(--verde-secundario);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

input[type="checkbox"]::before {
    border-radius: 2px;
}

input[type="radio"]:checked::before,
input[type="checkbox"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}

label {
    font-size: 16px;
    line-height: 1.6;
    display: inline-block;
    vertical-align: middle;
  }

#acompananteCampos {
    margin-top: 1rem;
    margin-bottom: 20px;
}

#mensajeConfirmacion {
    display: none;
    margin-top: 2rem;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #5a4e45;
    opacity: 0;
    transition: opacity 1s ease;
}

#mensajeConfirmacion.visible {
    display: block;
    opacity: 1;
}


.nombreLabel label:first-child {
    margin-top: 20px;
}

.transporteUtilizaras label:first-child {
    margin-bottom: 10px;
}

.llevoAcompañante {
    margin: 25px 0px;
}

button[type="submit"] {
    display: block;
    margin: 2rem auto 0;
    padding: 0.75rem 2rem;
    font-size: 16px;
    border: 1px solid var(--verde-principal);
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'MontserratLight';
}

#codigoConfirmacion:active {
    border: solid 1px var(--verde-principal);
}

button[type="submit"]:hover {
    background-color: var(--verde-secundario);
    color: #fff;
    font-family: 'MontserratLight';
}

.rotate-img img {
    rotate: calc(1deg);
}

.footer-simple {

    color: var(--marron-oscuro);         /* Tu color de texto */
    padding: 40px 20px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-family: 'Lora', serif; /* O la fuente que uses en títulos */
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-phones {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-phones a {
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-phones a:hover {
    color: var(--verde-principal); /* Cambio de color al pasar el ratón */
}

.footer-bottom {
    font-size: 0.85rem;
    border-top: 1px solid rgba(91, 71, 62, 0.1); /* Usando tu marron con transparencia */
    padding-top: 20px;
}

.footer-bottom .creador a {
    text-decoration: underline;
    font-weight: 600;
}



/* Faq's */

.faq-container {
    max-width: 800px;
    margin: 120px auto;
    padding: 20px;
    font-family: 'MontserratLight';
  }
  
  .faq-container h1 {
    text-align: center;
    font-size: 36px;
    font-family: 'Lora';
    color: var(--marron-oscuro);
    margin-bottom: 40px;
  }
  
  .faq-item {
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
  }
  
  .faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 20px;
    padding: 25px;
    letter-spacing: .5px;
    color: var(--marron-oscuro);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
  }
  
  .faq-question:hover {
    background-color: var(--verde-claro);
    border-radius: 5px;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 18px;
    padding: 0 25px;
    color: #444;
    transition: max-height 0.5s ease, padding 0.4s ease;
  }
  
  .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 25px;
  }
  
  .arrow {
    transition: transform 0.3s ease;
  }
  
  .faq-item.active .arrow {
    transform: rotate(180deg);
  }

  .faq-container h4 {
    color: rgb(124, 113, 103);
    margin-bottom: 10px;
  }
  

  /* Estilo para el botón del Hero */
.hero-button-container {
    margin-top: 30px;
    text-align: center;
    padding-bottom: 100px;
}

.btn-confirmacion {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(31, 71, 31,0.4); /* Tu verde principal */
    color: white; /* Texto en blanco para contraste */
    font-family: 'MontserratLight', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 50px; /* Bordes redondeados sutiles */
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}



/* --- SECCIÓN ITINERARIO --- */
.wedding-itinerary {
    padding: 80px 20px;
    background-color: transparent;
    text-align: center;
}

.title-itinerary {
    font-family: 'Lora', serif;
    color: var(--marron-oscuro);
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle-itinerary {
    color: var(--verde-principal);
    font-style: italic;
    margin-bottom: 50px;
}

/* --- LÍNEA DE TIEMPO --- */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

/* La línea punteada del mapa */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed var(--verde-secundario);
    transform: translateX(-50%);
}

.checkpoint {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkpoint-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--verde-claro);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid var(--verde-principal);
    z-index: 2;
}

.checkpoint-content {
    width: 40%;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--verde-claro);
    text-align: left;
}

/* Alternar lados (uno izquierda, otro derecha) */
.checkpoint:nth-child(odd) .checkpoint-content {
    margin-right: 60%;
}

.checkpoint:nth-child(even) .checkpoint-content {
    margin-left: 60%;
}

.checkpoint-content h3 {
    color: var(--marron-oscuro);
    font-size: 18px;
    margin-bottom: 5px;
}

.checkpoint-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Animación sutil para los iconos de viaje */
.checkpoint-icon {
    transition: transform 0.3s ease;
    cursor: default;
}

.checkpoint:hover .checkpoint-icon {
    transform: translateX(-50%) scale(1.2); /* Agranda el emoji al pasar el ratón */
}

/* Estilo especial para el destino final */
.final-destination .checkpoint-icon {
    background-color: var(--marron-oscuro);
    color: white;
    border-color: var(--marron-oscuro);
}

.final-destination .checkpoint-content {
    background-color: var(--verde-claro);
}

/* Efecto de "avión" recorriendo la línea (opcional) */
.timeline::after {
    content: '✈️';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
    font-size: 20px;
}

/* Forzar visibilidad del número de niños en móviles */
#ninos, 
select.select-asistencia {
    color: var(--marron-oscuro) !important; /* Fuerza el color de tu paleta */
    background-color: #ffffff !important;   /* Fondo blanco sólido */
    -webkit-appearance: none;               /* Quita estilos raros de iOS */
    appearance: none;
    padding: 10px;
    border: 1px solid var(--verde-secundario);
    border-radius: 5px;
    width: 20%;
    font-size: 16px; /* Evita que el iPhone haga zoom automático al pulsar */
}

/* Estilo para las opciones dentro del desplegable */
#ninos option {
    color: #000000;
    background-color: #ffffff;
}

#audio-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--verde-secundario);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;

    transition: transform 0.2s ease;
}

#audio-button:hover {
    transform: scale(1.08);
}

/* Estilo de los iconos */
#audio-button svg {
    width: 26px;
    height: 25px;
    fill: white;
}

/* =========================
   INDICADOR GALERÍA (PUNTITOS)
========================= */

.galeria-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}


/* =========================
   TEXTO SUTIL GALERÍA
========================= */

.gallery-hint {
    position: absolute;
    bottom: 12px; /* justo encima de los dots */
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'MontserratLight';
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

/* =========================
   MODAL ACCESO PRIVADO
========================= */

#accessGate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

@keyframes fadeInGate {
  to { opacity: 1; }
}

.access-box {
  background: #fff;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  font-family: 'MontserratLight';
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

@keyframes fadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.shake {
  animation: shakeAnim 0.4s ease;
}

@keyframes shakeAnim {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.access-box h2 {
  font-family: 'Lora';
  margin-bottom: 10px;
  color: var(--marron-oscuro);
}

.access-box p {
  font-size: 14px;
  margin-bottom: 20px;
}

#accessInput {
  width: 100%;
  font-family: 'MontserratLight';
  padding: 12px;
  border: 1px solid var(--verde-secundario);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 15px;
}

/* Botón efecto elegante */
#accessBtn {
  width: 40%;
  padding: 12px;
  border: none;
  background: var(--verde-principal);
  color: white;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#accessBtn:hover {
  background: var(--verde-secundario);
  transform: translateY(-2px);
}

.access-error {
  color: #b00020;
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
}

body.locked {
  overflow: hidden;
}

.access-error {
  color: #b00020;
  font-size: 13px;
  margin-top: 10px;
}

body.locked {
  overflow: hidden;
}

/* =========================
   AVISO CONFIRMACION BODA
========================= */

.aviso-boda {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 80%;           
  max-width: 700px;       
  background: var(--verde-claro);
  border: 1px solid var(--verde-secundario);
  color: var(--marron-oscuro);
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  z-index: 9998;
  opacity: 0;
  transition: all 0.4s ease;
}

.aviso-boda.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.aviso-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.aviso-boda p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

#cerrar-aviso {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--marron-oscuro);
  padding: 4px;
}