:root {
  --kiss-distance: 280px;
  --bg-cream: #f8f2ea;
  --bg-soft: #f4e4d6;
  --rose: #b76e79;
  --gold: #b68b4c;
  --brown: #5b4033;
  --card: rgba(255, 250, 245, 0.94);
  --soft-border: #ead8cb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg-cream);
  color: var(--brown);
}

/* ----------------------------- */
/* PANTALLA INICIAL */
/* ----------------------------- */
.intro-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #fff6ef 0%, #f8e8da 35%, #f3dfcf 100%);
  position: relative;
  overflow: hidden;
}

.scene {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 100vh;
  margin: 0 auto;
}

.character {
  position: absolute;
  bottom: 18px;
  width: 320px;
  max-width: 34vw;
  height: auto;
  z-index: 3;
  transition: transform 1.9s ease-in-out, filter 0.6s ease, opacity 0.6s ease;
}

.groom {
  left: 2%;
}

.bride {
  right: 2%;
}

.groom.move-center {
  transform: translateX(var(--kiss-distance)) scale(1.03);
}

.bride.move-center {
  transform: translateX(calc(var(--kiss-distance) * -1)) scale(1.03);
}

.character.kissing {
  filter: drop-shadow(0 0 18px rgba(255, 214, 221, 0.9));
}

/* SOBRE */
.envelope-area {
  position: absolute;
  left: 50%;
  bottom: 55px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.envelope-area.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.mini-envelope {
  position: relative;
  width: 250px;
  height: 165px;
  margin: 0 auto 18px;
}

.mini-envelope-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 115px;
  background: #f0d4b6;
  border: 2px solid #d3ae87;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.mini-envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 105px;
  background: #f6e1cb;
  border: 2px solid #d3ae87;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 1;
}

.open-btn {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: none;
  background: linear-gradient(135deg, #d8909e, #b76e79);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.open-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.envelope-text {
  font-size: 17px;
  color: #6e5144;
  font-weight: 500;
}

/* BESO / CORAZÓN */
.kiss-heart {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translateX(-50%) scale(0.2);
  font-size: 70px;
  opacity: 0;
  z-index: 6;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.kiss-heart.show {
  opacity: 1;
  transform: translateX(-50%) scale(1.2);
}

/* DESTELLO */
.flash {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.5s ease;
}

.flash.active {
  opacity: 0.95;
}

.intro-screen.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* ----------------------------- */
/* INVITACIÓN */
/* ----------------------------- */
.hidden {
  display: none;
}

.invitation.show {
  display: block;
  animation: fadeUp 1s ease;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 248, 241, 0.65), rgba(255, 248, 241, 0.72)),
    radial-gradient(circle at top, #fff8f2 0%, #f6e6d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  padding: 50px 35px;
  border-radius: 26px;
  text-align: center;
  max-width: 760px;
  width: 100%;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.10);
}

.small-text {
  font-size: 18px;
  margin-bottom: 12px;
  color: #7d6559;
}

.hero-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  color: #8b5e3c;
  margin-bottom: 14px;
}

.subtitle {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--rose);
  font-weight: 600;
}

.date-main {
  font-size: 25px;
  color: var(--brown);
  font-weight: 700;
  margin-bottom: 6px;
}

.hour-main {
  font-size: 20px;
  color: #7b5a45;
}

.content-section {
  padding: 60px 20px 90px;
}

.card {
  max-width: 950px;
  margin: 0 auto 28px;
  background: var(--card);
  padding: 38px 28px;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--soft-border);
}

.card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  margin-bottom: 18px;
  color: #8b5e3c;
}

.card h3 {
  color: var(--rose);
}

.card p {
  font-size: 18px;
  line-height: 1.8;
}

/* COUNTDOWN */
.countdown-text {
  margin-bottom: 18px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 15px;
}

.count-box {
  background: #f9efe6;
  border: 1px solid #ead8cb;
  border-radius: 18px;
  padding: 22px 10px;
}

.count-box span {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: #8b5e3c;
  margin-bottom: 6px;
}

.count-box small {
  font-size: 15px;
  color: #7b5a45;
  font-weight: 600;
}

/* DETALLES */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.detail-item {
  background: #f8eee5;
  border-radius: 18px;
  padding: 24px 18px;
  border: 1px solid #ebd9cc;
}

.detail-item h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.address {
  margin-bottom: 18px;
}

/* MAPAS */
.map-block {
  margin-top: 28px;
  padding-top: 8px;
}

.map-block + .map-block {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #ead8cb;
}

.map-block h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.map-container {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 18px;
  margin: 18px 0 10px;
  border: 1px solid #ead8cb;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* INFORMACIÓN */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.info-item {
  background: #f8eee5;
  border-radius: 18px;
  padding: 24px 18px;
  border: 1px solid #ebd9cc;
}

.info-item h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

/* BOTONES */
.main-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #b68b4c, #9a7440);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-btn:hover {
  transform: scale(1.04);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* CARRUSEL DE FOTOS */
.photo-carousel-card {
  overflow: hidden;
}

.carousel {
  width: 100%;
  overflow: hidden;
  margin-top: 26px;
  border-radius: 22px;
  padding: 10px 0;
  background: #f8eee5;
  border: 1px solid #ead8cb;
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scrollCarousel 65s linear infinite;
}

.carousel-track img {
  width: 230px;
  height: 310px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(91, 64, 51, 0.16);
  border: 4px solid #fffaf5;
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scrollCarousel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}



/* VIDEO PROPUESTA */
.proposal-card {
  text-align: left;
}

.proposal-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
}

.proposal-video {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 32px rgba(91, 64, 51, 0.22);
  border: 6px solid #fffaf5;
  margin: 0 auto;
}

.proposal-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.proposal-text h2 {
  text-align: left;
  margin-bottom: 18px;
}

.proposal-text p {
  text-align: left;
  margin-bottom: 16px;
}



/* ----------------------------- */
/* RESPONSIVE */
/* ----------------------------- */
@media (max-width: 1100px) {
  :root {
    --kiss-distance: 220px;
  }

  .character {
    width: 270px;
    max-width: 35vw;
  }
}

@media (max-width: 900px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --kiss-distance: 78px;
  }

  .scene {
    height: 100vh;
    min-height: 620px;
  }

  .character {
    width: 175px;
    max-width: 43vw;
    bottom: 145px;
  }

  .groom {
    left: -8px;
  }

  .bride {
    right: -8px;
  }

  .groom.move-center {
    transform: translateX(78px) scale(1.02);
  }

  .bride.move-center {
    transform: translateX(-78px) scale(1.02);
  }

  .envelope-area {
    bottom: 28px;
    width: 100%;
    padding: 0 10px;
  }

  .mini-envelope {
    width: 205px;
    height: 140px;
  }

  .mini-envelope-body {
    height: 98px;
  }

  .mini-envelope-top {
    height: 92px;
  }

  .open-btn {
    font-size: 13px;
    padding: 12px 16px;
  }

  .envelope-text {
    font-size: 14px;
    padding: 0 12px;
  }

  .kiss-heart {
    top: 38%;
    font-size: 48px;
  }

  .hero {
    min-height: auto;
    padding: 60px 16px 40px;
  }

  .hero-card {
    padding: 35px 22px;
  }

  .hero-card h1 {
    font-size: 38px;
  }

  .subtitle {
    font-size: 22px;
  }

  .date-main {
    font-size: 22px;
  }

  .hour-main {
    font-size: 18px;
  }

  .card {
    padding: 28px 18px;
  }

  .card h2 {
    font-size: 28px;
  }

  .card p {
    font-size: 16px;
  }

  .details-grid,
  .countdown-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-container {
    height: 250px;
  }
}

@media (max-width: 520px) {
  .scene {
    min-height: 640px;
  }

  .character {
    width: 142px;
    max-width: 42vw;
    bottom: 160px;
  }

  .groom {
    left: 2px;
  }

  .bride {
    right: 2px;
  }

  .groom.move-center {
    transform: translateX(58px) scale(1.02);
  }

  .bride.move-center {
    transform: translateX(-58px) scale(1.02);
  }

  .kiss-heart {
    top: 39%;
    font-size: 42px;
  }

  .hero-card h1 {
    font-size: 32px;
  }

  .small-text {
    font-size: 15px;
  }

  .subtitle {
    font-size: 20px;
  }

  .date-main {
    font-size: 20px;
  }

  .hour-main {
    font-size: 17px;
  }

  .card h2 {
    font-size: 24px;
  }

  .details-grid {
  grid-template-columns: 1fr;
}

.countdown-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.count-box {
  padding: 10px 4px;
  border-radius: 12px;
}

.count-box span {
  font-size: 20px;
  margin-bottom: 2px;
}

.count-box small {
  font-size: 10px;
}

  .count-box span {
    font-size: 32px;
  }

  .detail-item h3,
  .info-item h3,
  .map-block h3 {
    font-size: 20px;
  }

  .main-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
  }

  .map-container {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .character {
    width: 150px;
    max-width: 40vw;
    bottom: 140px;
  }

  .hero-card h1 {
    font-size: 32px;
  }

  .small-text {
    font-size: 15px;
  }

  .subtitle {
    font-size: 20px;
  }

  .date-main {
    font-size: 20px;
  }

  .hour-main {
    font-size: 17px;
  }

  .card h2 {
    font-size: 24px;
  }

  .details-grid,
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .count-box span {
    font-size: 32px;
  }

  .detail-item h3,
  .info-item h3,
  .map-block h3 {
    font-size: 20px;
  }

  .main-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
  }

  .map-container {
    height: 220px;
  }
}


















@media (max-width: 768px) {
  .proposal-card {
    text-align: center;
  }

  .proposal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proposal-video {
    max-width: 280px;
  }

  .proposal-text h2,
  .proposal-text p {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .proposal-video {
    max-width: 245px;
    border-radius: 22px;
  }
}