header {
    background: #e3c3b9;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

header p {
    font-size: 2rem;
    font-family: "Italianno", cursive;
	font-style: normal;
    color: #a55448;
	margin-bottom: 5px;
    margin-top: 5px;
}

#mini-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #e3c3b9;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.7rem;
    font-family: "Italianno", cursive;
	font-style: normal;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
}

.header-link {
  display: block;          /* que se comporte como un contenedor */
  text-decoration: none;   /* quita el subrayado */
  color: inherit;          /* hereda el color de texto normal */
}

body {
	font-family: "Tinos", serif;
	font-weight: 400;
	font-style: italic;
    margin: 0;
    padding: 0;
    background: #f9f6f2;
    color: #333;
}

/* Emojis rectos aunque el texto esté en cursiva */
.emoji {
  font-style: normal !important;
}

body.scrolled #mini-header {
    display: block;
}


section {
    padding: 2rem 8rem;
}

/* para que al clicar enlaces internos lleve al sitio correcto */
section[id] {
  scroll-margin-top: 118px; /* ajusta a la altura de tu mini-header + nav, poner 80 para que caiga debajo de los corazones */
}


@media (max-width: 1450px) {
	section {
		padding: 2rem 4rem;
	}
}
@media (max-width: 768px) {
	section {
		padding: 2rem;
	}
}

h2 {
    color: #b56b65;
	font-family: "Italianno", cursive;
	font-style: normal;
	font-size: 2.2rem;
}

section h2 {
	margin-top: 19px;
	margin-bottom: 19px;
}

@media (min-width: 769px) {
  .extra-margin {
    margin-right: 60px;
    margin-left: 60px;
  }
}

a {
    color: #b56b65;
    text-decoration: none;
    font-weight: bold;
}
.infos {
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.datos-basicos {
  flex: 0 1 38%;
  min-width: 200px;
}

.como-llegar {
  flex: 0 1 60%;
  min-width: 250px;
}

.datos-basicos p,
.como-llegar p {
  margin: 6px 0;
}

@media (max-width: 768px) {
  .info-ceremonia {
    flex-direction: column;
  }

  .datos-basicos,
  .como-llegar {
    flex: 1 1 100%;
  }
}

.mapa-foto-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* FOTO – se mantiene entera, sin deformarse ni recortarse */
.foto-lugar {
  max-height: 466px;
  flex: 0 0 auto;
}

.foto-lugar img {
  height: auto;
  max-height: 466px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* MAPA – ancho máximo y alineado a la derecha */
.map-container {
  max-width: 60%;
  flex: 1 1 auto;
  margin-left: auto; /* Esto empuja el mapa a la derecha */
}

.map-container iframe {
  width: 100%;
  height: 466px;
  border: 0;
}


@media (max-width: 768px) {
  .mapa-foto-wrap {
    flex-direction: column;
  }
  .foto-lugar, .map-container {
    width: 100%;
    max-width: none;
  }
}
.foto-lugar.centrada {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* === CARRUSEL CENTRADO EN ESCRITORIO === */
.carrusel-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px; 
}

.carrusel-wrap .glide {
  max-width: 700px;   /* ajusta a gusto: 600–800 va bien */
  width: 100%;
}

.carrusel-wrap .glide,
.carrusel-wrap .glide__track {
  margin: 0;
  padding: 0;
}
.carrusel-wrap .glide__slides {
  align-items: center;
}

.carrusel-wrap .glide__slide img {
  display: block;
}


.boton-calendario-romantico {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #ffd6da;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}

.boton-calendario-romantico:hover {
  background-color: #fff0f5; /* más claro al hacer hover */
}

.boton-calendario-romantico svg {
  transition: transform 0.5s ease;
}

.boton-calendario-romantico:hover svg:first-child {
  transform: rotate(-15deg);
}

.boton-calendario-romantico:hover svg:last-child {
  transform: rotate(15deg);
}

.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.heart-divider .line {
  flex: 1;
  height: 1px;
  background-color: #ddd;
}

.heart-divider .hearts {
  position: relative;
  width: 1.4rem;
  height: 1.5rem;
}

.heart-divider .heart {
  position: absolute;
  font-size: 1.5rem;
  line-height: 1;
}

.heart-divider .back {
  color: #e6e6e6;
  left: 0.5rem;
  top: 0.05rem;
  z-index: 1;
}

.heart-divider .front {
  color: #e94b5f; /* Rojo bonito */
  left: 0;
  top: 0;
  z-index: 2;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.5);
}

//
.form-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.form-wrap iframe {
  width: 100%;
  max-width: 720px;  /* ideal en escritorio */
  height: 900px;     /* ajusta según preguntas */
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.icono-alojamiento {
  display: block;
  margin: 0 auto 20px;
  width: 50%;
  max-width: 200px;
  height: auto;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #f0e7e2;
    font-size: 0.9rem;
}

#cuenta-atras {
    text-align: center;
    padding: 2rem;
}

#timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #b56b65;
}

/* Aviso Modal */
.modal-aviso {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: none; /* inicialmente oculto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.6s ease;
  overflow-y: auto;
  padding: 20px 0;
}

.modal-aviso.show {
  display: flex;
  opacity: 1;
}

.aviso-contenido {
  background-color: white;
  padding: 2rem;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  text-align: center;
  font-size: 1.1rem;
}

.aviso-contenido button {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  background-color: #e94b5f;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-family: inherit;
  letter-spacing: 0.5px;
  margin-top: 16px;
}

.aviso-contenido button:hover {
  background-color: #d63a4c;
  transform: scale(1.05);
}

/* Aviso save the date */
.save-title {
	margin-top: 16px;
	margin-bottom: 1rem;
}

.save-names {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin: 0.5rem 0;
}

.save-date {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.2rem;
}


/* === NAV GENERAL === */
#section-nav {
  position: fixed;
  top: 55px;
  left: 0;
  right: 0;
  background-color: white;
  padding: 10px 20px;
  gap: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0.95;
  z-index: 999;
  flex-wrap: wrap;
  justify-content: center;
  display: flex; /* VISIBILIDAD NORMAL DE ESCRITORIO */
}

/* === BOTÓN HAMBURGUESA === */
#burger-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  color: #eee;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  transition: transform 0.5s ease;
}
#burger-btn.open {
  transform: translateY(-50%) rotate(90deg) scale(1.2);
}

/* === MODO MÓVIL === */
@media (max-width: 768px) {
  #burger-btn {
    display: block;
  }

  #section-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-height: 0;
	width: 50%;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  #section-nav.open {
    max-height: 400px; /* Ajusta a lo que necesites según el contenido */
    opacity: 0.95;
  }

  #section-nav.open a {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    animation: fadeSlideIn 0.5s ease forwards;
  }

  #section-nav.open a:nth-child(1) { animation-delay: 0.05s; }
  #section-nav.open a:nth-child(2) { animation-delay: 0.1s; }
  #section-nav.open a:nth-child(3) { animation-delay: 0.15s; }
  #section-nav.open a:nth-child(4) { animation-delay: 0.2s; }
  #section-nav.open a:nth-child(5) { animation-delay: 0.25s; }
  #section-nav.open a:nth-child(6) { animation-delay: 0.3s; }
  #section-nav.open a:nth-child(7) { animation-delay: 0.35s; }
  #section-nav.open a:nth-child(8) { animation-delay: 0.4s; }
}


/* === ANIMACIÓN DE ENLACES === */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

