/* =========================
   RESET / BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1f1f1f;
  background: transparent;
  line-height: 1.6;
}

:root {
  --dark-brown: #2d241d;
  --text-soft: #5a5048;
  --link-brown: #7b5d46;
  --cream: beige;
  --cream-white: #faf9f5;
  --green-soft: #c9c5b1;
  --green-dark: #787569;
  --charcoal: #4f4d46;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background-image: url("img/imagen_elegida.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 24, 18, 0.22);
}

.topbar {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
}

.brand {
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

.menu a:hover {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  color: white;
  padding: 40px 20px 90px;
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.95;
}

.hero-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-date {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.hero-buttons {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

/* =========================
   BOTONES
========================= */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.btn-primary {
  background: white;
  color: #1f1f1f;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* =========================
   CONTENEDORES / SECCIONES
========================= */

main,
.section,
.section.alt,
.intro,
.rsvp,
.container,
.container.narrow,
.contenido-sobre-fondo {
  background: transparent;
}

.section {
  padding: 100px 20px;
  position: relative;
  z-index: 2;
}

.container {
  width: min(1100px, 92%);
  margin: 20px auto;
}

.container.narrow {
  width: min(760px, 92%);
}
.comoLlegar{
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark-brown);
}

.section h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark-brown);
}

/* =========================
   FONDOS
========================= */

.fondo-bienvenida {
  background-color: var(--cream);
  margin: 0;
  padding: 90px 20px;
  width: 100%;
}

.fondo-bienvenida #info {
  padding: 0;
  margin: 0;
}

.fondo-transporte {
  background-color: var(--green-soft);
  margin: 0;
  padding: 90px 20px;
  width: 100%;
}

.fondo-alojamientos {
  background-color: var(--green-dark);
  margin: 0;
  padding: 90px 20px;
  width: 100%;
}

.fondo-playlist {
  background-color: var(--charcoal);
  margin: 0;
  padding: 90px 20px;
  width: 100%;
}

.fondo-crisydiego {
  background-color: lightgray;
  margin: 0;
  padding: 90px 20px;
  width: 100%;
}

/* =========================
   GALERÍA
========================= */

.galeria-elegante {
  position: relative;
  width: 100%;
  max-width: 1050px;
  height: 620px;
  margin: 0 auto;
  overflow: visible;
}

.galeria-elegante .galeria_slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 62%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease,
    filter 0.9s ease;
  pointer-events: none;
}

.galeria-elegante .galeria_slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.galeria-elegante .galeria_slide.active {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  filter: none;
}

.galeria-elegante .galeria_slide.prev {
  opacity: 0.28;
  transform: translateX(-90%) scale(0.78);
  z-index: 1;
  filter: blur(0.4px);
}

.galeria-elegante .galeria_slide.next {
  opacity: 0.28;
  transform: translateX(-5%) scale(0.78);
  z-index: 1;
  filter: blur(0.4px);
}

.galeria-elegante .galeria_slide.hidden-slide {
  opacity: 0;
  transform: translateX(-50%) scale(0.7);
  z-index: 0;
}

.galeria-elegante .navegator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 250, 242, 0.35);
  box-shadow: 0 8px 25px rgba(50, 35, 20, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  color: var(--dark-brown);
  font-size: 0;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.galeria-elegante .navegator img {
  width: 26px;
  height: 26px;
  display: block;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .galeria-elegante .navegator:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(255, 250, 242, 0.85);
  }

  .galeria-elegante .navegator:hover img {
    opacity: 1;
  }
}

.galeria-elegante .navegator:focus {
  outline: none;
}

.galeria-elegante .anterior {
  left: 13%;
}

.galeria-elegante .siguiente {
  right: 13%;
}

.galeria-dots {
  position: absolute;
  left: 50%;
  bottom: -42px;
  transform: translateX(-50%);
  display: flex;
  gap: 11px;
  z-index: 6;
}

.galeria-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(120, 117, 105, 0.55);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.galeria-dot.active {
  background: #8f1d3b;
  transform: scale(1.2);
}

/* =========================
   TARJETAS INFORMACIÓN
========================= */
.historia-texto {
  max-width: 1100px;
  margin-bottom: 80px;
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--dark-brown);
}

.historia-texto p {
  margin-bottom: 40px;
  font-size: 1.15rem;
  line-height: 1.8;
}
.cards {
  display: grid;
  grid-template-columns: 600px 600px;
  gap: 0;
  justify-content: center;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.card,
.info-block,
.single-card,
#formularioUnico {
  background: rgba(255, 255, 255, 0.78);
  margin-top: 20px;
  border-radius: 0;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(30, 24, 18, 0.08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.card.ceremonia,
.card.banquete {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: var(--cream-white);
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card.ceremonia {
  transform: translateX(-70px);
}

.card.banquete {
  transform: translateX(70px);
}

.card-fotoceremonia,
.card-fotobanquete {
  width: 100%;
  height: 450px;
  border-radius: 0;
  overflow: hidden;
}

.card-fotoceremonia img,
.card-fotobanquete img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   TEXTOS TARJETAS
========================= */

.card h3,
.info-block h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--dark-brown);
}

.card p,
.info-block p,
.single-card p,
.rsvp-text {
  color: var(--text-soft);
}

.card p.hora {
  color: var(--link-brown);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.card a,
.info-block a {
  display: inline-block;
  margin-top: 14px;
  color: var(--link-brown);
  text-decoration: none;
  font-weight: 600;
}

.info-block h3 + a {
  margin-top: 2px;
}

.card a:hover,
.info-block a:hover {
  text-decoration: underline;
}

/* =========================
   TRANSPORTE / ALOJAMIENTO
========================= */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-grid-hoteles {
  grid-template-columns: repeat(3, 1fr);
}

.info-block-centrado {
  grid-column: 1 / -1;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.info-block-centrado-uber-cabify{
  grid-column: 1 / -1;
  width: calc(50% - 12px); /* mitad del ancho de fila menos medio gap (24px/2) */
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .info-block-centrado-uber-cabify {
    width: 100%;
  }
}
@media (min-width: 901px) {
  .info-block-centrado.ancho-columna {
    width: 538px;
    max-width: 538px;
  }
}

.info-block-centrado p {
  margin-top: 26px;
}

.info-block-centrado p:first-of-type {
  margin-top: 0;
}

.info-block-centrado a {
  margin-top: 4px;
}

.estrellas {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.85rem;
  color: #c9a13b;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* =========================
   RSVP
========================= */

.rsvp-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.form-row + .form-row {
  margin-top: 16px;
}

.formulario_input,
.formulario_select {
  width: 100%;
  height: 56px;
  border: 1px solid #ddd2c7;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2a2a2a;
  outline: none;
}

.formulario_select {
  color-scheme: light;
}

.formulario_input:focus,
.formulario_select:focus {
  border-color: #b89b84;
  box-shadow: 0 0 0 4px rgba(184, 155, 132, 0.12);
}

.formulario_button {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--dark-brown);
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s ease;
}

.formulario_button:hover {
  background: #43362d;
}

/* =========================
   COUNTDOWN
========================= */

#countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
}

.countdown-number,
.countdown-separator,
.countdown-label {
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  color: white;
}

.countdown-number {
  font-size: 2rem;
}

.countdown-separator {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  align-self: center;
}

.countdown-label {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: lowercase;
}

.cuenta-atras {
  margin: 30px 0;
  padding: 2px;
}

/* =========================
   SCROLL INDICATOR
========================= */

.scroll {
  margin-top: 70px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s 1.6s forwards;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollLine 1.8s 1.8s infinite;
}

@keyframes scrollLine {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   PLAYLIST / SPOTIFY
========================= */

.playlist-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.playlist-info {
  width: 350px;
  height: 400px;
  margin-left: 250px;
  margin-top: 30px;
  background: var(--cream);
  padding: 30px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
}

.text_spotify {
  max-width: 100%;
  text-align: center;
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--dark-brown);
}

.text_spotify p {
  font-size: 1.3rem;
  line-height: 1.6;
}

.spotify-cta-wrapper {
  display: flex;
  justify-content: center;
}

.spotify-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1ed760;
  color: #000;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  transition: 0.25s ease;
}

.spotify-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.spotify-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 185, 84, 0.25);
}

.playlist-preview {
  width: 350px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  margin-right: 250px;
  margin-top: 29px;
  opacity: 0.8;
  border-radius: 0;
  overflow: hidden;
}

.playlist-preview iframe {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 0;
}

/* =========================
   FUENTES
========================= */

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/dmsans/v17/rP2Wp2ywxg089UriCZaSExdy3sGt9zz86D3wyKK58UfivUw4aw.woff2") format("woff2");
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .cards {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    max-width: 95%;
    gap: 40px;
  }

  .card.ceremonia,
  .card.banquete {
    transform: none;
  }

  .info-grid-hoteles {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .playlist-info {
    margin-left: 80px;
  }

  .playlist-preview {
    margin-right: 80px;
  }
}

@media (max-width: 900px) {
  .cards,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 22px 20px;
    flex-direction: column;
    gap: 16px;
  }

  .menu {
    gap: 16px;
  }

  .galeria-elegante {
    height: 480px;
    overflow: hidden;
  }

  .galeria-elegante .galeria_slide {
    width: 78%;
  }

  .galeria-elegante .galeria_slide.prev {
    transform: translateX(-125%) scale(0.75);
  }

  .galeria-elegante .galeria_slide.next {
    transform: translateX(25%) scale(0.75);
  }

  .galeria-elegante .anterior {
    left: 18px;
  }

  .galeria-elegante .siguiente {
    right: 18px;
  }

  .playlist-layout {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .playlist-info,
  .playlist-preview {
    width: 90%;
    max-width: 340px;
    margin-left: 0;
    margin-right: 0;
  }

  .playlist-info {
    padding: 1.5rem 1.2rem;
  }

  .playlist-preview iframe {
    width: 100%;
    height: 300px;
  }

  .spotify-cta {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .text_spotify p {
    font-size: 1.3rem;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {
  .hero {
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    min-height: 80svh;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 20px 16px 50px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 75px 18px;
  }

  #formularioUnico {
    padding: 24px;
  }

  .card-fotoceremonia,
  .card-fotobanquete {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .galeria-elegante {
    height: 420px;
  }

  .galeria-elegante .galeria_slide {
    width: 88%;
  }

  .galeria-elegante .galeria_slide.prev,
  .galeria-elegante .galeria_slide.next {
    opacity: 0;
  }

  #countdown {
    gap: 8px;
  }

  .countdown-item {
    min-width: 52px;
  }

  .countdown-number {
    font-size: 1.45rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }
}