* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bg {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at center, #ffffff 35%, #f3e4ea 100%);
  color: #333;
  padding-bottom: 0;
}

body {
  scroll-snap-type: none;
}

/* MENÚ */

.menu-toggle {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 1001;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.side-menu {
  position: fixed;
  top: 80px;
  left: 22px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transform: translateX(-140%);
  transition: transform 0.3s ease;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu a {
  text-decoration: none;
  color: #444;
  font-size: 15px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.side-menu a:hover {
  color: #c04a7b;
}

/* SECCIONES */

.screen-section {
  width: 100%;
  padding: 36px 16px 18px;
  display: block;
}

#inicio.screen-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section {
  gap: 20px;
  padding-top: 72px;
  padding-bottom: 28px;
}

.content-section {
  padding-top: 16px;
  padding-bottom: 12px;
}

/* CONTENEDORES */

.section-box,
.welcome-box {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  padding: 20px 24px 22px;
}

.wide-box {
  max-width: 1050px;
}

/* ===== HERO PERFECTO AUTO-CENTRADO ===== */

.hero-final {
  all: unset;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 40px 16px 10px;
  font-family: "Didot", serif;
}

.hero-scale {
  position: relative;
  width: 820px;
  height: 220px;
  transform: translateX(var(--hero-offset, -55px)) scale(var(--hero-scale, 1));
  transform-origin: top center;
  margin-bottom: calc((1 - var(--hero-scale, 1)) * -220px);
}

/* ELEMENTOS DEL HERO */

.line {
  position: absolute;
  color: #1f1f1f;
  line-height: 1;
}

.silvia {
  font-size: 100px;
  font-weight: 400;
  left: 120px;
  top: 0;
}

.amp {
  font-size: 50px;
  font-weight: 400;
  color: #666;
  left: 460px;
  top: 40px;
}

.jose {
  font-size: 100px;
  font-weight: 400;
  left: 585px;
  top: 0;
}

.hero-divider {
  position: absolute;
  left: 85px;
  top: 118px;
  width: 720px;
  height: 1px;
  background: #1f1f1f;
  opacity: 0.75;
}

.date-day {
  position: absolute;
  left: 239px;
  top: 150px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: #555;
}

.date-month {
  position: absolute;
  left: 407px;
  top: 150px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: #555;
  font-style: italic;
}

.date-year {
  position: absolute;
  left: 650px;
  top: 150px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: #555;
}

/* TIPOGRAFÍA GENERAL HOMOGÉNEA */

h1,
h2,
h3 {
  font-family: "Didot", "Playfair Display", serif;
  margin-top: 0;
  margin-bottom: 10px;
  color: #8a1835;
  letter-spacing: 0.5px;
}

p {
  font-family: "Playfair Display", serif;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
  font-size: 15.5px;
  margin-top: 0;
  margin-bottom: 12px;
}

li,
label,
input,
select,
textarea,
button,
.map-card p,
.dance-text,
.thanks-message p,
.thanks-caption,
.alert,
.carousel-counter {
  font-family: "Playfair Display", serif;
  font-weight: 300;
}

/* FORMULARIO */

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

label {
  font-size: 0.95rem;
  color: #444;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.btn-primary {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f18bb0, #c04a7b);
  color: white;
  cursor: pointer;
}

/* ALERTAS */

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.alert-success {
  background: #e3ffe9;
  color: #15793a;
}

/* CARRUSEL POLAROID */

.polaroid-carousel {
  margin-top: 22px;
  position: relative;
}

.polaroid-track {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polaroid-slide {
  position: absolute;
  width: 260px;
  background: white;
  padding: 12px 12px 26px;
  border-radius: 6px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.14);
  transition: all 0.4s ease;
  opacity: 0.4;
}

.polaroid-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.polaroid-slide.active {
  transform: scale(1);
  opacity: 1;
  z-index: 3;
}

.polaroid-slide.left {
  transform: translateX(-160px) scale(0.85) rotate(-6deg);
}

.polaroid-slide.right {
  transform: translateX(160px) scale(0.85) rotate(6deg);
}

.polaroid-slide.hidden-left {
  transform: translateX(-300px) scale(0.72) rotate(-10deg);
  opacity: 0;
  z-index: 1;
}

.polaroid-slide.hidden-right {
  transform: translateX(300px) scale(0.72) rotate(10deg);
  opacity: 0;
  z-index: 1;
}

.polaroid-dots {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.polaroid-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d7c1c8;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.polaroid-dots .dot.active {
  background: #b76e79;
  transform: scale(1.2);
}

/* CARRUSEL PRO */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  z-index: 5;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.carousel-arrow.left {
  left: -10px;
}

.carousel-arrow.right {
  right: -10px;
}

.polaroid-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-counter {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #777;
}

/* RSVP */

#rsvp {
  min-height: auto !important;
  padding-bottom: 120px !important;
  margin-bottom: 40px !important;
  position: relative;
}

#rsvp::after {
  display: none !important;
  content: none !important;
}

#rsvp .section-box {
  margin-bottom: 0;
  overflow: visible !important;
  padding-bottom: 120px !important;
  min-height: auto !important;
}

#rsvp .form {
  overflow: visible !important;
  margin-bottom: 0 !important;
}

#transportBlock {
  margin-top: 10px;
  margin-bottom: 6px;
}

.section-box {
  overflow: visible;
}

/* UBICACIONES */

.locations-grid-compact {
  margin: 26px auto 0;
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px;
  align-items: stretch;
}

.map-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(192, 74, 123, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  padding: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.map-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.09);
  border-color: rgba(192, 74, 123, 0.28);
}

.map-card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.map-card-header {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.map-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b76e79;
  font-weight: 600;
  margin-bottom: 6px;
}

.map-card h3 {
  margin: 0 0 4px;
  font-family: "Didot", "Playfair Display", serif;
  font-size: 1rem;
  line-height: 1.12;
  color: #2c2c2c;
}

.map-card p {
  margin: 0;
  color: #666;
  font-size: 0.82rem;
}

.map-preview {
  position: relative;
  z-index: 1;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f7f7f7;
  min-height: 120px;
  margin-top: 8px;
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}

.map-card-footer {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #c04a7b;
  font-weight: 600;
}

/* LOGIN */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  padding: 36px 32px;
  text-align: center;
  animation: loginFadeUp 0.9s ease forwards;
}

.login-header h1 {
  font-family: "Didot", serif;
  font-size: 36px;
  font-weight: 400;
  margin: 0;
  color: #2c2c2c;
}

.login-header p {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 3px;
  color: #777;
}

.login-title {
  font-family: "Didot", "Playfair Display", serif;
  margin-top: 24px;
  margin-bottom: 18px;
  font-size: 18px;
  color: #8a1835;
  position: relative;
}

.login-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(
    to right,
    transparent,
    #8a1835,
    transparent
  );
  opacity: 0.6;
}

.login-form input {
  text-align: center;
  font-size: 0.95rem;
}

.login-form .btn-primary {
  width: 100%;
  margin-top: 14px;
}
.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  text-align: center;
  padding-right: 46px;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-left: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  color: #8a1835;
}
@keyframes loginFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LET'S DANCE */

.dance-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(138, 24, 53, 0.15);
  text-align: center;
}

.dance-title {
  font-family: "Didot", "Playfair Display", serif;
  font-size: 28px;
  color: #8a1835;
  margin-bottom: 10px;
}

.dance-text {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 16px;
}

.dance-input input {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(138, 24, 53, 0.2);
  text-align: center;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.dance-input input:focus {
  border-color: #8a1835;
  box-shadow: 0 0 0 3px rgba(138, 24, 53, 0.08);
}

.dance-videos {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.dance-videos video {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition: transform 0.25s ease;
}

.dance-videos video:hover {
  transform: scale(1.04);
}
.dance-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

/* GRACIAS */

.thanks-card {
  padding-bottom: 40px;
}

.thanks-message {
  text-align: center;
  margin-top: 8px;
}

.thanks-message p {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.7;
}
.thanks-message .highlight {
  color: #8a1835;
  font-weight: 600;
}

.thanks-message strong {
  color: #8a1835;
  font-weight: 600;
}

.thanks-final {
  margin-top: 18px;
  font-family: "Didot", "Playfair Display", serif;
  font-size: 1.1rem;
  color: #8a1835;
}

.thanks-image-block {
  margin-top: 26px;
  text-align: center;
}

.thanks-image {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.thanks-caption {
  max-width: 380px;
  margin: 12px auto 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  font-style: italic;
}
.thanks-actions {
  margin-top: 34px;
  padding-top: 8px;
  display: flex;
  justify-content: center;
}

.thanks-button {
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  text-decoration: none;
}
/* RESPONSIVE */

@media (max-width: 800px) {
  .hero-final {
    padding: 28px 10px 0;
  }

  .section-box {
  padding-bottom: 24px;
}
  .welcome-box {
    padding: 18px 18px 20px;
  }

  .polaroid-track {
    height: 340px;
  }

  .polaroid-slide {
    width: 210px;
    padding: 10px 10px 22px;
  }

  .polaroid-slide img {
    height: 240px;
  }

  .polaroid-slide.left {
    transform: translateX(-120px) scale(0.82) rotate(-6deg);
  }

  .polaroid-slide.right {
    transform: translateX(120px) scale(0.82) rotate(6deg);
  }

  .polaroid-slide.hidden-left {
    transform: translateX(-220px) scale(0.7) rotate(-10deg);
  }

  .polaroid-slide.hidden-right {
    transform: translateX(220px) scale(0.7) rotate(10deg);
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .carousel-arrow.left {
    left: -4px;
  }

  .carousel-arrow.right {
    right: -4px;
  }

  #rsvp {
    padding-bottom: 90px !important;
    margin-bottom: 20px;
  }

  #rsvp .section-box {
    min-height: 0 !important;
    padding-bottom: 90px !important;
  }

  .dance-videos {
    flex-direction: column;
    align-items: center;
  }

  .dance-videos video {
    width: 80%;
    height: auto;
  }
}

@media (max-width: 640px) {
  .locations-grid-compact {
    max-width: 100%;
    grid-template-columns: 1fr !important;
  }

  .map-card {
    aspect-ratio: auto;
    min-height: 280px;
  }

  .map-preview {
    min-height: 160px;
  }

  .map-preview iframe {
    min-height: 160px;
  }
}
/* ===== HERO ANIMATION ===== */

.hero-scale .line {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s ease forwards;
}

/* delay escalonado */
.silvia {
  animation-delay: 0.2s;
}

.amp {
  animation-delay: 0.5s;
}

.jose {
  animation-delay: 0.8s;
}

/* línea */
.hero-divider {
  opacity: 0;
  transform: scaleX(0.6);
  animation: heroLine 1s ease forwards;
  animation-delay: 1.1s;
}

/* fecha */
.date-day,
.date-month,
.date-year {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 1.3s;
}

/* KEYFRAMES */

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

@keyframes heroLine {
  to {
    opacity: 0.75;
    transform: scaleX(1);
  }
}
/* REGALO / CUENTA */

.gift-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(192, 74, 123, 0.15);
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  text-align: center;
}

.gift-text {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #777;
}

.gift-account {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: #8a1835;
  font-weight: 500;
}
h1,
h2 {
  font-size: 30px;
}
.btn-reset-rsvp {
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: #8a1835;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-reset-rsvp:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}