:root {
  --granate: #6b2d3d;
  --dorado: #c4a66a;
  --crema: #fdfaf7;
  --text-main: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e8e0d9;
  --max-width: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  background: var(--crema);
  line-height: 1.65;
}

header {
  background: var(--granate);
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover { color: var(--dorado); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  text-align: center;
  color: var(--dorado);
  margin-bottom: 0.4rem;
}

.amp { color: var(--dorado); font-size: 0.65em; vertical-align: middle; margin: 0 0.15em; }

.subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--granate);
  margin-bottom: 1.4rem;
  text-align: center;
}

p, li { font-size: 1.1rem; text-align: center; max-width: 520px; margin: 0.5rem auto; }

.divider {
  width: 80px;
  height: 1px;
  background: var(--dorado);
  margin: 3rem auto;
  border: none;
}

/* Mapa */
.map-container {
  margin: 2rem auto 0;
  height: 440px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107, 45, 61, 0.08);
  border: 1px solid var(--border);
}

.map-container iframe { width: 100%; height: 100%; border: none; }

/* Formulario */
.form-container {
  max-width: 480px;
  margin: 2rem auto 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(107, 45, 61, 0.08);
  overflow: hidden;
}

.form-container iframe { width: 100%; height: 800px; border: none; }

/* Lista de opciones */
ul.options { 
  list-style: none; 
  padding: 0; 
  max-width: 520px; 
  margin: 2rem auto; 
}

ul.options li {
  background: white;
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

ul.options a {
  color: var(--granate);
  text-decoration: none;
  font-weight: 500;
}

ul.options a:hover { text-decoration: underline; }

/* Timeline vertical */
.timeline-vertical {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem 1rem;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 3px;
  background: var(--dorado);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 80px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--granate);
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(107, 45, 61, 0.2);
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  text-align: center;
}

.timeline-date {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--granate);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.timeline-photo {
  max-width: 80%; /* reducido para que no se vean tan grandes */
  height: auto;
  border-radius: 8px;
  margin: 1rem auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: block;
}

.timeline-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 0.8rem 0 0.4rem;
  font-style: italic;
}

/* Carrusel - versión ajustada para que las fotos no obliguen scroll vertical */
.photo-carousel {
  overflow: hidden;
  margin: 2rem auto;
  max-width: 100%;
  padding: 1rem 0;
  height: 320px; /* altura fija para que no se expanda */
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--dorado) var(--crema);
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
  background: var(--crema);
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--dorado);
  border-radius: 4px;
}

.carousel-track img {
  flex: 0 0 280px; /* ancho fijo para que quepan 2-3 fotos visibles */
  height: 280px; /* altura fija para evitar scroll vertical */
  object-fit: contain; /* muestra la foto completa sin cortar */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(107, 45, 61, 0.15);
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.05);
}

.intro-carrusel {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 680px;
  margin: 2rem auto 1.5rem;
  text-align: center;
}

/* Media queries */
@media (max-width: 600px) {
  .carousel-track img {
    flex: 0 0 220px;
    height: 220px;
  }
  .photo-carousel {
    height: 260px; /* más pequeña en móvil */
  }
  .timeline-photo {
    max-width: 90%;
  }
  main { padding: 2rem 1rem 4rem; }
  nav ul { gap: 1.5rem; flex-direction: column; }
  .map-container { height: 340px; }
  .form-container iframe { height: 950px; }
  .timeline-vertical::before { left: 20px; }
  .timeline-item { padding-left: 50px; }
  .timeline-dot { left: -10px; top: 15px; }
}