/* Reset muy básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #5f7b6b73;
  color: #333333;
}



.page {
  max-width: 480px;
  margin: 0 auto;
  background-color: #f8f6f4;
}

/* Colores base */
:root {
  --green: #5f7b6b;
  --green-dark: #4c6456;
  --beige: #dbcba3;
  --white: #ffffff;
}

/* Secciones generales */
.section {
  min-height: 400px;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section-inner {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.section-white {
  background-color: var(--white);
}

.section-green {
  background-color: var(--green);
  color: #ffffff;
}

.section-beige {
  background-color: var(--beige);
  color: #ffffff;
}

/* Hero / cabecera */
.hero {
  background-color: var(--green);
  color: #ffffff;
  padding: 24px 16px 40px;
}

.hero-content {
  text-align: center;
  margin-top: 24px;
}

.hero-date {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin-top: 8px;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

/* Audio bar */
.audio-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

#audio-volume {
  flex: 1;
}

.icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.icon-large {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.icon-small {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hidden {
  display: none;
}

/* Cuenta regresiva */
.countdown {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.countdown-item {
  flex: 1;
}

.count-value {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
}

.count-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Títulos de secciones */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-top: 8px;
}

.section-subtitle {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #555555;
}

.section-overline {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-text {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-note {
  margin-top: 20px;
  font-size: 0.85rem;
  font-style: italic;
}

/* Icono círculo */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.icon-circle,
.icon-circle svg {
  pointer-events: none;
}

/* Estilos para timeline del itinerario */
.timeline {
  margin-top: 32px;
  text-align: left;
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-time {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 60px;
  flex-shrink: 0;
}

.timeline-content h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Estilos para hashtag de Instagram */
.hashtag {
  margin-top: 20px;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Detalles */
.details-list {
  margin-top: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.detail-label {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-line {
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  margin-left: 12px;
}

/* Ubicación */
.location-note {
  margin-top: 28px;
}

.location-title {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--green);
  color: #ffffff;
  width: 100%;
}

.section-green .btn-primary {
  background-color: #ffffff;
  color: var(--green-dark);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  width: 100%;
}

.btn-secondary-white {
  background-color: var(--white);
  border: 1.5px solid var(--green);
  color: var(--green);
  width: 100%;
}

.btn-secondary-white:hover {
  background-color: var(--green);
  color: var(--white);
}

.btn-outline {
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
}

/* Sección RSVP */
.section-rsvp .btn {
  max-width: 280px;
}

/* Footer */
#gracias .section-title {
  letter-spacing: 0.18em;
}

/* Tipografías cuerpo */
body,
.section-text,
.count-label {
  font-family: "Montserrat", sans-serif;
}

/* Animación de aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pequeña mejora para pantallas más grandes */
@media (min-width: 768px) {
  .page {
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
  }
}

/* Botones de modals en la sección detalles */
.modal-buttons {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-light {
  background-color: #ffffff;
  color: var(--green-dark);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-green .btn-light {
  background-color: #ffffff;
  color: var(--green-dark);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- MODALS ---------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 18px 18px;
  margin: 0 24px;
  max-width: 380px;
  text-align: center;
  z-index: 51;

  /* NUEVO — tamaño uniforme */
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.iconos {
  display: flex;
  align-items: center;
  gap: 12px; /* separación entre los íconos */
}

/* Modal más grande para el formulario */
.modal-dialog-form {
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-align: center;
}

.modal-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 52;
}

/* Estilos del formulario RSVP */
.rsvp-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
  font-family: "Montserrat", sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
  background-color: var(--green);
  color: white;
  font-weight: 500;
  padding: 12px 20px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mensajes del formulario */
.form-message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Mejoras mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 20px 14px;
  }

  .countdown-item {
    padding: 0 4px;
  }

  .count-value {
    font-size: 1.2rem;
  }

  .modal-dialog {
    margin: 0 16px;
  }

  .modal-dialog-form {
    margin: 16px;
    max-height: 85vh;
  }
}


/* ---- Carousel (Fotos) ---- */
.section-photo {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  min-height: 400px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  background: transparent;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  z-index: 3;
  transition: background 0.2s ease, transform 0.2s ease;
}


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

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

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.carousel-dot.is-active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* RSVP deadline text */
.rsvp-deadline {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--white);
  font-style: italic;
  font-family: "Montserrat", sans-serif;
}

/* Regalo section text */
.regalo-text {
  margin-top: 16px;
  margin-bottom: -8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
}
