:root {
  --bg: #f6f3ff;
  --surface: #ffffff;
  --text: #271f3c;
  --muted: #5f5678;
  --primary: #8f6fd6;
  --primary-dark: #6f4fc2;
  --ring: rgba(143, 111, 214, 0.26);
  --radius: 18px;
  --hero-overlay-top: rgba(26, 17, 46, 0.45);
  --hero-overlay-bottom: rgba(26, 17, 46, 0.64);
  --hero-text: #ece4ff;
  --memories-bg: #f0ebff;
  --media-start: #e6dcfb;
  --media-end: #d7e7ff;
  --placeholder-text: #473779;
  --icon-border: #dccff8;
  --recommend-border: #e7def8;
  --footer-border: #e9e0fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Playball", "Brush Script MT", cursive;
  color: var(--text);
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%238f6fd6' fill-opacity='0.09'%3E%3Cpath d='M62 68c9-9 23-9 32 0 4 4 7 10 8 16 1-6 4-12 8-16 9-9 23-9 32 0 9 9 9 23 0 32-4 4-10 7-16 8 6 1 12 4 16 8 9 9 9 23 0 32-9 9-23 9-32 0-4-4-7-10-8-16-1 6-4 12-8 16-9 9-23 9-32 0-9-9-9-23 0-32 4-4 10-7 16-8-6-1-12-4-16-8-9-9-9-23 0-32z'/%3E%3Ccircle cx='170' cy='60' r='10'/%3E%3Ccircle cx='184' cy='72' r='7'/%3E%3Ccircle cx='156' cy='72' r='7'/%3E%3Crect x='168' y='66' width='4' height='16' rx='2'/%3E%3Cpath d='M170 52c6-6 14-7 20-4' fill='none' stroke='%238f6fd6' stroke-opacity='0.09' stroke-width='2'/%3E%3Cpath d='M170 52c-6-6-14-7-20-4' fill='none' stroke='%238f6fd6' stroke-opacity='0.09' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: "Playball", "Brush Script MT", cursive;
  font-style: normal;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

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

.section {
  padding: 96px 0;
  position: relative;
}

.section::before,
.section::after {
  content: "✿";
  position: absolute;
  color: rgba(143, 111, 214, 0.18);
  font-size: 1rem;
  pointer-events: none;
}

.section::before {
  left: 16px;
  top: -4px;
}

.section::after {
  right: 16px;
  bottom: -4px;
}

.section-divider {
  text-align: center;
  margin: 8px 0 10px;
  padding: 4px 0;
}

.section-divider span {
  display: inline-block;
  font-size: 1rem;
  color: #8d6bb8;
  letter-spacing: 0.22em;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1100px, 92%);
  margin: 18px auto;
}

.logo {
  font-family: "Playball", "Brush Script MT", cursive;
  font-style: normal;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  font-size: 1.7rem;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-video-wrapper,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-top),
    var(--hero-overlay-bottom)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: min(900px, 92%);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.hero-text {
  color: var(--hero-text);
  max-width: 700px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px var(--ring);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.solid-secondary {
  background: var(--primary-dark);
  border-color: transparent;
  color: #fff;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--icon-border);
  color: var(--text);
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 15px 40px rgba(76, 40, 57, 0.1);
}

.event-lead {
  font-weight: 600;
  color: var(--text);
}

.countdown-card {
  margin: 22px 0;
  border: 1px solid var(--recommend-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.countdown-title {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Playball", cursive;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.7rem, 7.2vw, 4.8rem);
  color: #db7fb6;
}

.countdown-main {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}

.countdown-number {
  font-family: Inter, sans-serif;
  font-size: clamp(2.2rem, 5.7vw, 4.4rem);
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.countdown-number.accent {
  color: #db7fb6;
}

.countdown-unit {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.countdown-unit-label {
  font-size: clamp(0.84rem, 1.65vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
}

.countdown-separator {
  font-size: clamp(2.2rem, 5.7vw, 4.4rem);
  line-height: 1;
  font-weight: 500;
  color: #111;
  transform: translateY(-2px);
}

.countdown-ornament {
  position: relative;
  margin-top: 14px;
  min-height: 330px;
}

.countdown-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.countdown-arc-text {
  fill: #1f1636;
  letter-spacing: 0.25em;
  font-size: 28px;
}

.countdown-clock-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 14px;
  padding-top: 112px;
}

.countdown-side-label {
  display: inline-block;
  border-top: 3px solid #e3a8c8;
  border-bottom: 3px solid #e3a8c8;
  padding: 10px 18px;
  font-weight: 600;
  color: #2a213f;
  font-size: clamp(1.3rem, 3.4vw, 2.3rem);
  letter-spacing: 0.02em;
}

.countdown-clock {
  width: clamp(165px, 28vw, 240px);
  max-width: 100%;
  height: auto;
  display: block;
  justify-self: center;
}

.itinerary-timeline {
  margin-top: 12px;
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.itinerary-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #d98abf, #8d6bb8);
  opacity: 0.75;
}

.itinerary-item {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 2px 0;
}

.itinerary-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 0;
  margin-left: 0;
  background: #fff;
  border: 3px solid #c47ab1;
  box-shadow: 0 0 0 3px rgba(196, 122, 177, 0.14);
}

.itinerary-time {
  margin: 0 0 2px;
  color: #c47ab1;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  line-height: 1.2;
}

.itinerary-item h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.itinerario-image {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

.map-embed-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--recommend-border);
  margin-bottom: 18px;
}

.map-embed {
  width: 100%;
  height: 280px;
  display: block;
}

.rsvp {
  background: #fff;
}

.playlist {
  background: #fff;
  overflow: hidden;
}

.playlist .container {
  position: relative;
  isolation: isolate;
}

.playlist .container::before {
  content: "";
  position: absolute;
  inset: -36px -40px;
  background-image: url("/assets/music.png");
  background-repeat: repeat;
  background-size: 110px auto;
  background-position: 0 0;
  opacity: 0.1;
  transform: rotate(-9deg) scale(1.08);
  transform-origin: center;
  z-index: -1;
  pointer-events: none;
}

.rsvp-card {
  background: var(--surface);
  border: 1px solid var(--recommend-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 15px 40px rgba(76, 40, 57, 0.08);
}

.rsvp-status {
  margin-bottom: 14px;
  font-weight: 500;
}

.rsvp-form {
  display: grid;
  gap: 10px;
}

.rsvp-form label {
  font-weight: 600;
  color: var(--text);
}

.rsvp-form input {
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.amanecida-wrap {
  margin-top: 4px;
}

.amanecida-card {
  border: 1px solid var(--recommend-border);
  border-radius: 12px;
  background: #faf7ff;
  padding: 12px;
}

.amanecida-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.amanecida-title {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.amanecida-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

.amanecida-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
  cursor: pointer;
}

.rsvp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.rsvp-extra-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.playlist-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.playlist-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.playlist-link-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 0;
}

.playlist-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.spotify-link {
  background: #1db954;
}

.spotify-link:hover {
  background: #159a46;
}

.ytmusic-link {
  border-color: #ffb5b5;
  color: #7d2222;
}

.playlist-card {
  background: var(--surface);
  border: 1px solid var(--recommend-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 15px 40px rgba(76, 40, 57, 0.08);
}

.album-share {
  background: #fff;
}

.album-placeholder {
  margin-top: 14px;
  border: 1px dashed var(--icon-border);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-dark);
  background: #faf7ff;
}

.playlist-form {
  display: grid;
  gap: 10px;
}

.playlist-form label {
  font-weight: 600;
  color: var(--text);
}

.playlist-form input,
.playlist-form textarea {
  border: 1px solid var(--icon-border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 20, 48, 0.55);
  z-index: 20;
}

.modal-card {
  width: min(500px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(31, 18, 53, 0.25);
}

.media-placeholder {
  border-radius: var(--radius);
  min-height: 360px;
  background: linear-gradient(145deg, var(--media-start), var(--media-end));
  display: grid;
  place-items: center;
}

.placeholder-text {
  color: var(--placeholder-text);
  font-weight: 600;
}

.memories {
  background: var(--memories-bg);
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls-right {
  justify-content: flex-end;
  margin-bottom: 20px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--icon-border);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

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

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.recommend-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--recommend-border);
}

.footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--footer-border);
  background: #fff;
}

.floating-song-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background-color: #db7fb6;
  background-image: linear-gradient(
      rgba(39, 31, 60, 0.35),
      rgba(39, 31, 60, 0.35)
    ),
    url("https://i.pinimg.com/originals/b1/fe/60/b1fe60975021719437dca522302254ac.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(84, 37, 71, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-song-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.floating-song-btn.is-playing {
  box-shadow: 0 10px 28px rgba(70, 33, 100, 0.45);
}

@media (max-width: 1024px) {
  /* Recorte real: ocultamos el 10% superior del video en tablet/movil. */
  .hero-video {
    inset: auto 0 0 0;
    height: 110%;
    object-position: center top;
  }
}

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

  h1,
  h2,
  h3 {
    font-weight: 400;
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.9rem, 6.2vw, 2.35rem);
  }

  h3 {
    font-size: clamp(1.35rem, 5.1vw, 1.7rem);
  }

  .nav-links {
    display: none;
  }

  .slide img {
    height: 340px;
  }

  .countdown-clock-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    padding-top: 96px;
  }

  .countdown-main {
    justify-content: center;
    gap: 3px;
  }

  .countdown-unit {
    gap: 7px;
  }

  .countdown-side-label {
    padding: 7px 10px;
    font-size: clamp(0.98rem, 4.2vw, 1.2rem);
  }

  .countdown-clock {
    width: clamp(128px, 35vw, 165px);
  }

  .countdown-ornament {
    min-height: 320px;
  }

  .countdown-arc-text {
    font-size: 54px;
    letter-spacing: 0.16em;
  }

  .rsvp-actions .btn,
  .rsvp-extra-actions .btn,
  .playlist-links .btn,
  .playlist-form .btn {
    width: 100%;
    text-align: center;
  }

  .floating-song-btn {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 480px) {
  .countdown-card {
    padding: 14px 10px 16px;
  }

  .countdown-title {
    font-size: clamp(3rem, 13vw, 3.8rem);
    margin-bottom: 8px;
  }

  .countdown-main {
    grid-template-columns: minmax(56px, auto) auto minmax(56px, auto) auto minmax(56px, auto) auto minmax(56px, auto);
    justify-content: center;
    gap: 1px;
  }

  .countdown-number {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
    min-width: 2ch;
    text-align: center;
  }

  .countdown-separator {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .countdown-unit-label {
    letter-spacing: 0.04em;
    font-size: 0.74rem;
  }

  .countdown-ornament {
    min-height: 336px;
    margin-top: 12px;
  }

  .countdown-clock-row {
    padding-top: 122px;
    gap: 4px;
  }

  .countdown-side-label {
    width: min(120px, 30vw);
    text-align: center;
    padding: 6px 6px;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .countdown-clock {
    width: min(165px, 44vw);
  }

  .countdown-arc-text {
    font-size: 42px;
    letter-spacing: 0.14em;
  }

  .itinerary-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 2px 0;
  }

  .itinerary-timeline::before {
    left: 50%;
  }

  .itinerary-marker {
    width: 14px;
    height: 14px;
    margin-left: 0;
  }

  .itinerary-time {
    font-size: 0.82rem;
  }

  .itinerary-item h4 {
    font-size: 0.93rem;
  }
}
