@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/weezerfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(to bottom, #fff, #fdf6f2);
  color: #333;
}

/* Hero header (portada) */
header {
  background-image: url('../galeria/portada.jpg');
  background-size: cover;
  background-position: center top;
  height: 80vh;
  min-height: 500px;
  max-height: 900px;
}

/* Contenido secciones */
section.content {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
}

/* Títulos principales */
h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5em;
  text-align: center;
  color: #a30023;
}

/* Botón general (lista de regalos, WhatsApp, etc.) */
.gift-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #213547;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

/* Tipografías en párrafos */
p {
  font-family: 'Century Gothic', sans-serif;
}

/* Nuestra historia - justificado centrado visual */
.nuestra-historia p {
  text-align: justify;
  text-align-last: center;
}

/* Separadores decorativos */
.section-separator img {
  width: 100%;
  display: block;
  /* Nota: si tus separadores se deforman, elimina la altura forzada */
  /* height: auto; */
  object-fit: fill;
  margin: 0;
}

/* ===== Contador ===== */
.seccion-contador {
  background-color: #030b60;
  padding: 35px 20px 25px;
  text-align: center;
  color: white;
}

.faltan-texto {
  font-family: 'Great Vibes', cursive;
  font-size: 2.7em;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px #000;
}

.bloque-contador {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 1.6em;
  font-family: 'Century Gothic', sans-serif;
  flex-wrap: wrap;
  text-shadow: 1px 1px 2px #000;
  margin-top: 5px;
}

.bloque-contador span {
  display: block;
  font-size: 1.4em;
  line-height: 1.1;
}

.bloque-contador small {
  font-size: 0.75em;
  margin-top: 1px;
}

/* ===== Carrusel/Galería ===== */
.carousel-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel {
  display: flex;
  gap: 10px;
  scroll-snap-align: start;
  padding: 10px 0;
  width: max-content;
}

.carousel img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
  scroll-snap-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.carousel img:hover {
  transform: scale(1.03);
}

/* ===== Timeline alterna (línea al centro, tarjetas alternas) ===== */
.timeline.alt {
  position: relative;
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 20px 0;
}
.timeline.alt::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #d7d7d7;
}

/* Item */
.timeline.alt .timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-start; /* por defecto lado izquierdo: ODD a la IZQUIERDA */
  margin: 40px 0;
}

/* Alternar lados */
.timeline.alt .timeline-item:nth-child(even) {
  justify-content: flex-end; /* lado derecho: EVEN a la DERECHA */
}

/* Punto central y conector */
.timeline.alt .timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #af3e2b;
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 2px #d7d7d7; /* aro fino */
}
.timeline.alt .timeline-connector {
  position: absolute;
  top: 50%;
  height: 2px;
  background: #d7d7d7;
  width: 60px;
}
.timeline.alt .timeline-item:nth-child(odd) .timeline-connector {
  right: 50%;
  margin-right: 2px;
}
.timeline.alt .timeline-item:nth-child(even) .timeline-connector {
  left: 50%;
  margin-left: 2px;
}

/* Tarjeta */
.timeline.alt .timeline-content {
  width: calc(50% - 70px); /* 70 = espacio para conector */
  background: #faf8f6;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* Título con ícono alineado */
.timeline.alt .timeline-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.timeline.alt .timeline-title img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.timeline.alt .timeline-content h3 {
  margin: 0;
  font-family: 'Great Vibes', cursive;
  color: #af3e2b;
  font-size: 1.9em;
  line-height: 1;
}

/* Texto y mapa */
.timeline.alt .timeline-content p {
  margin: 6px 0;
  font-family: 'Century Gothic', sans-serif;
}
.timeline.alt .map-icon {
  width: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ===== Modal de imágenes ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.modal-prev,
.modal-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  user-select: none;
  z-index: 10000;
}
.modal-prev { left: 0; }
.modal-next { right: 0; }
.modal-prev:hover,
.modal-next:hover { color: #f1f1f1; }

/* ===== Responsive ===== */
@media screen and (max-width: 600px) {
  /* Timeline alt en móviles: línea a la izquierda, tarjetas al 100% */
  .timeline.alt::before { left: 24px; transform: none; }
  .timeline.alt .timeline-item { justify-content: flex-start; margin: 26px 0; }
  .timeline.alt .timeline-content { width: 100%; margin-left: 50px; }
  .timeline.alt .timeline-item:nth-child(even) .timeline-content { margin-left: 50px; }
  .timeline.alt .timeline-connector { left: 24px; width: 26px; }
  .timeline.alt .timeline-dot { left: 24px; }
  .timeline.alt .timeline-title img { width: 26px; height: 26px; }
  .timeline.alt .timeline-content h3 { font-size: 1.6em; }

  /* Contador */
  .faltan-texto { font-size: 2.4em; }
  .bloque-contador { font-size: 1.25em; gap: 12px; }
  .bloque-contador span { font-size: 1.2em; }
  .bloque-contador small { font-size: 0.7em; }

  /* Carrusel */
  .carousel img { width: 80vw; }
}

/* ===== Mobile refinements: single column on the LEFT, compact spacing ===== */
@media (max-width: 640px) {
  .timeline.alt { padding: 6px 0; }

  /* Línea al lado izquierdo */
  .timeline.alt::before { left: 24px !important; right: auto; transform: none; }

  /* Cada item forzado a la izquierda y más compacto */
  .timeline.alt .timeline-item {
    justify-content: flex-start !important;
    margin: 16px 0;
  }

  /* Punto y conector alineados a la izquierda */
  .timeline.alt .timeline-dot {
    left: 24px !important;
    width: 12px; height: 12px;
    border-width: 2px;
  }
  .timeline.alt .timeline-connector {
    left: 24px !important;
    right: auto;
    width: 26px;
  }
  .timeline.alt .timeline-item:nth-child(odd) .timeline-connector,
  .timeline.alt .timeline-item:nth-child(even) .timeline-connector {
    left: 24px !important; right: auto;
  }

  /* Tarjeta ocupa el ancho, respetando la línea y conector */
  .timeline.alt .timeline-content {
    width: 100%;
    margin-left: 50px;
    margin-right: 0;
    padding: 14px 16px;
  }

  /* Tipografías un poquito más pequeñas para que respire */
  .timeline.alt .timeline-title img { width: 24px; height: 24px; }
  .timeline.alt .timeline-content h3 { font-size: 1.35rem; }
  .timeline.alt .timeline-content p  { font-size: 0.98rem; }
}
