:root {
  --forest: #10291f;
  --forest2: #183d2c;
  --emerald: #286448;
  --mint: #dce9d9;
  --ivory: #faf6ed;
  --gold: #c6a56b;
  --gold-light: #ead8ad;
  --text: #344338;

  --serif: "Cormorant Garamond", serif;
  --cinzel: "Cinzel", serif;
  --script: "Great Vibes", cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ivory);
  color: var(--text);
  font-family: var(--serif);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* CARGA */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--forest);
  color: var(--gold-light);
  transition: opacity .8s ease, visibility .8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-gem {
  font-size: 55px;
  animation: gemPulse 1.5s infinite;
}

.loader-line {
  width: 70px;
  height: 1px;
  background: var(--gold);
  animation: loaderLine 1.5s ease-in-out infinite;
}

/* PORTADA */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 70px 20px 55px;
  color: var(--ivory);

  background:
    linear-gradient(rgba(8, 27, 19, .45), rgba(8, 27, 19, .78)),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=2000&q=85")
    center / cover no-repeat;
}

.forest-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(40, 100, 72, .25), transparent 65%),
    linear-gradient(90deg, rgba(8, 25, 18, .35), rgba(8, 25, 18, .1));
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(680px, 100%);
  text-align: center;
  padding: 25px 15px;
  animation: heroAppear 1.5s ease both;
}

.hero-pretitle,
.eyebrow {
  font-family: var(--cinzel);
  letter-spacing: 4px;
  font-size: 11px;
  color: var(--gold-light);
}

.hero-title-wrap {
  margin-top: 28px;
}

.hero-title-wrap h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(42px, 8vw, 78px);
  color: var(--gold-light);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

.gold-line {
  display: block;
  width: 110px;
  height: 1px;
  margin: 14px auto;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.hero-invitation {
  margin-top: 20px;
  font-family: var(--cinzel);
  font-size: 14px;
  letter-spacing: 6px;
}

.hero-name {
  margin-top: 5px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(76px, 13vw, 125px);
  line-height: 1.2;
  color: var(--gold-light);
  text-shadow: 0 4px 25px rgba(0, 0, 0, .4);
}

.hero-date {
  margin-top: 15px;
  font-family: var(--cinzel);
  letter-spacing: 5px;
  font-size: 15px;
}

.hero-flourish {
  margin-top: 25px;
  color: var(--gold);
  letter-spacing: 12px;
  font-size: 20px;
}

.hero-scroll {
  margin-top: 55px;
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold-light);
}

.scroll-arrow {
  display: block;
  font-size: 28px;
  color: var(--gold-light);
  animation: arrowBounce 1.7s infinite;
}

.hero-frame {
  position: absolute;
  z-index: 2;
  inset: 18px;
  border: 1px solid rgba(234, 216, 173, .35);
  pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
  content: "✧";
  position: absolute;
  color: var(--gold-light);
  font-size: 23px;
  text-shadow: 0 0 15px var(--gold);
}

.hero-frame::before {
  top: -12px;
  left: -8px;
}

.hero-frame::after {
  bottom: -12px;
  right: -8px;
}

.hero-bottom-glow {
  position: absolute;
  z-index: 2;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(198, 165, 107, .18), transparent 70%);
  pointer-events: none;
}

/* MÉRIDA */

.merida-container {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 0;
  width: min(38vw, 440px);
  height: 90%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.merida-character {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 12px 25px rgba(0, 0, 0, .5))
    drop-shadow(0 0 18px rgba(198, 165, 107, .2));
  animation: meridaFloat 5s ease-in-out infinite;
}

/* FLORES */

.hero-flowers {
  position: absolute;
  z-index: 5;
  top: -35px;
  left: -35px;
  width: clamp(160px, 26vw, 340px);
  height: auto;
  transform: rotate(180deg);
  opacity: .95;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25));
  animation: flowerDrift 7s ease-in-out infinite;
}

.section-flower {
  position: absolute;
  width: 190px;
  opacity: .8;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(198, 165, 107, .2));
}

.flower-top {
  top: -35px;
  left: -35px;
  transform: rotate(180deg);
}

.flower-bottom {
  right: -35px;
  bottom: -45px;
}

.rsvp-flower {
  position: absolute;
  top: -35px;
  left: -40px;
  width: 200px;
  transform: rotate(180deg);
  opacity: .65;
  pointer-events: none;
}

/* DIAMANTES */

.hero-diamonds {
  position: absolute;
  z-index: 6;
  top: 7%;
  left: 50%;
  display: block;
  width: clamp(180px, 28vw, 340px);
  max-height: 150px;
  height: auto;
  object-fit: contain;
  transform: translateX(-50%);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  filter:
    drop-shadow(0 0 5px rgba(255, 245, 210, .85))
    drop-shadow(0 0 16px rgba(234, 216, 173, .75));
  animation: diamondSparkle 3s ease-in-out infinite;
}

.rsvp-diamonds {
  display: block;
  position: relative;
  z-index: 1;
  width: min(230px, 60%);
  height: auto;
  margin: 35px auto 0;
  opacity: 1;
  visibility: visible;
  filter: drop-shadow(0 0 12px rgba(234, 216, 173, .5));
  animation: diamondSparkle 3s ease-in-out infinite;
}

/* LUCIÉRNAGAS */

.floating-particles,
.firefly-layer,
.footer-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.firefly {
  position: absolute;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: #f8e7b6;
  box-shadow:
    0 0 5px 2px rgba(255, 231, 174, .65),
    0 0 15px 5px rgba(234, 216, 173, .35);
  opacity: 0;
  animation: fireflyFloat var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* SECCIONES */

.section {
  position: relative;
  padding: 95px 22px;
  text-align: center;
  overflow: hidden;
}

.intro-section {
  background: radial-gradient(ellipse at top, #fffdf7, var(--ivory) 70%);
}

.section-frame {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(198, 165, 107, .18);
  pointer-events: none;
}

.section-frame::before,
.section-frame::after {
  content: "✧";
  position: absolute;
  color: rgba(198, 165, 107, .6);
  font-size: 17px;
}

.section-frame::before {
  top: -9px;
  left: -7px;
}

.section-frame::after {
  bottom: -9px;
  right: -7px;
}

.dark-frame {
  border-color: rgba(234, 216, 173, .24);
}

.dark-frame::before,
.dark-frame::after {
  color: var(--gold-light);
}

.section-corner {
  position: absolute;
  color: rgba(198, 165, 107, .55);
  font-size: 22px;
}

.corner-one {
  top: 30px;
  right: 35px;
}

.corner-two {
  bottom: 30px;
  left: 35px;
}

.eyebrow {
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.script-title {
  position: relative;
  z-index: 1;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(43px, 7vw, 66px);
  color: var(--forest2);
  margin-bottom: 15px;
}

.gem-divider {
  position: relative;
  z-index: 1;
  color: var(--gold);
  letter-spacing: 10px;
  margin: 24px auto;
  font-size: 20px;
  animation: gemPulse 3s ease-in-out infinite;
}

/* PRESENTACIÓN */

.intro-text {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 18px auto;
  font-size: 21px;
  line-height: 1.7;
  color: var(--text);
}

.parents-block {
  position: relative;
  z-index: 1;
  margin: 42px auto 30px;
}

.parents-block p {
  font-size: 19px;
  font-style: italic;
  margin-bottom: 22px;
}

.parents-block h3 {
  font-family: var(--cinzel);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest2);
  letter-spacing: 2px;
}

.ampersand {
  display: block;
  margin: 7px;
  color: var(--gold);
  font-family: var(--script);
  font-size: 32px;
}

.invitation-highlight {
  position: relative;
  z-index: 1;
  margin: 30px auto 0;
  font-family: var(--script);
  font-size: 34px;
  color: var(--emerald);
}

/* CUENTA REGRESIVA */

.countdown-section {
  position: relative;
  isolation: isolate;
  color: var(--ivory);
  background:
    linear-gradient(rgba(16, 41, 31, .94), rgba(16, 41, 31, .96)),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1600&q=80")
    center / cover;
}

.countdown-section > *:not(.section-frame):not(.firefly-layer) {
  position: relative;
  z-index: 3;
}

.countdown-section .script-title {
  color: var(--gold-light);
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px auto 25px;
}

.count-item {
  width: 115px;
  padding: 18px 8px;
  border: 1px solid rgba(198, 165, 107, .55);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(5px);
  animation: countFloat 4s ease-in-out infinite;
}

.count-item:nth-child(2) { animation-delay: .3s; }
.count-item:nth-child(3) { animation-delay: .6s; }
.count-item:nth-child(4) { animation-delay: .9s; }

.count-item span {
  display: block;
  font-family: var(--cinzel);
  font-size: 34px;
  color: var(--gold-light);
}

.count-item small {
  display: block;
  margin-top: 7px;
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 2px;
}

.countdown-note {
  margin: 20px auto 30px;
  font-size: 19px;
  font-style: italic;
  color: var(--mint);
}

.calendar-ornament {
  color: var(--gold-light);
  font-size: 25px;
  margin: 20px auto;
  animation: gemPulse 3s infinite;
}

/* CALENDARIO */

.elegant-calendar {
  width: min(390px, 100%);
  margin: 35px auto 30px;
  padding: 30px 25px;
  border: 1px solid rgba(198, 165, 107, .7);
  background: linear-gradient(145deg, #173a2a, #10291f);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
  color: var(--ivory);
  position: relative;
}

.elegant-calendar::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(198, 165, 107, .25);
  pointer-events: none;
}

.calendar-top-ornament,
.calendar-bottom-ornament {
  color: var(--gold);
  letter-spacing: 7px;
  font-size: 17px;
}

.calendar-top-ornament {
  margin-bottom: 13px;
}

.calendar-bottom-ornament {
  margin-top: 18px;
}

.calendar-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--gold-light);
}

.calendar-heading h3 {
  font-family: var(--script);
  font-size: 48px;
  font-weight: 400;
}

.calendar-heading span {
  font-size: 17px;
}

.calendar-year {
  margin: 3px 0 25px;
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 3px;
  text-align: center;
  align-items: center;
}

.calendar-grid > span {
  min-height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ivory);
}

.calendar-grid .calendar-day {
  font-family: var(--cinzel);
  font-size: 10px;
  color: var(--gold);
}

.calendar-grid .empty {
  visibility: hidden;
}

.calendar-grid .calendar-special {
  position: relative;
  width: 34px;
  height: 34px;
  min-height: 34px;
  justify-self: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  box-shadow:
    0 0 0 3px rgba(198, 165, 107, .18),
    0 0 18px rgba(234, 216, 173, .55);
  animation: gemPulse 2.5s infinite;
}

.calendar-event {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(198, 165, 107, .4);
}

.calendar-star {
  color: var(--gold-light);
  font-size: 22px;
}

.calendar-event p {
  margin-top: 8px;
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
}

.calendar-event h4 {
  margin: 8px 0;
  font-family: var(--script);
  font-size: 34px;
  font-weight: 400;
  color: var(--gold-light);
}

.calendar-hour {
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ivory);
}

/* BOTONES */

.outline-button,
.gold-button {
  display: inline-block;
  padding: 14px 25px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  text-decoration: none;
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .35s ease;
}

.outline-button:hover {
  background: var(--gold);
  color: var(--forest);
  box-shadow: 0 0 22px rgba(198, 165, 107, .35);
  transform: translateY(-3px);
}

.gold-button {
  color: var(--forest);
  background: var(--gold);
  border-color: var(--gold);
}

.gold-button:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(198, 165, 107, .25);
}

/* RECEPCIÓN */

.reception-section {
  background: var(--ivory);
}

.venue-card {
  position: relative;
  width: min(550px, 100%);
  margin: 35px auto 0;
  padding: 40px 25px;
  border: 1px solid rgba(198, 165, 107, .65);
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 12px 40px rgba(16, 41, 31, .08);
}

.venue-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(198, 165, 107, .22);
  pointer-events: none;
}

.venue-symbol {
  display: block;
  color: var(--gold);
  font-size: 38px;
  margin-bottom: 20px;
}

.venue-label {
  color: var(--gold);
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 3px;
  margin: 18px 0 8px;
}

.venue-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--forest2);
}

.venue-divider {
  display: block;
  width: 65px;
  height: 1px;
  margin: 20px auto;
  background: var(--gold);
}

.venue-address,
.venue-reference {
  margin-top: 9px;
  font-size: 18px;
}

.venue-reference {
  font-style: italic;
}

.venue-card .gold-button {
  margin-top: 28px;
}

.reception-note {
  max-width: 520px;
  margin: 30px auto 0;
  font-size: 21px;
  font-style: italic;
  color: var(--emerald);
}

/* DRESS CODE */

.dress-section {
  background: linear-gradient(145deg, #f3eee2, #fffdf8);
}

.dress-icons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 65px;
  margin: 35px auto 25px;
}

.dress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  transition: transform .4s ease;
}

.dress-item:hover {
  transform: translateY(-8px);
}

.dress-medallion {
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 165, 107, .85);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .8), rgba(234, 216, 173, .13));
  box-shadow:
    inset 0 0 0 5px rgba(198, 165, 107, .08),
    0 8px 25px rgba(16, 41, 31, .08);
  position: relative;
}

.dress-medallion::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(198, 165, 107, .35);
  border-radius: 50%;
}

.dress-svg {
  width: 65px;
  height: 85px;
  overflow: visible;
  filter: drop-shadow(0 3px 7px rgba(198, 165, 107, .2));
}

.dress-item span {
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--forest2);
}

.dress-code-text {
  font-family: var(--cinzel);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--forest2);
}

.dress-note {
  max-width: 460px;
  margin: 25px auto 0;
  color: var(--emerald);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
}

.dress-note span {
  color: var(--gold);
  padding: 0 7px;
}

/* RSVP: ESTILOS ORIGINALES CONSERVADOS */

.rsvp-section {
  position: relative;
  background: var(--forest);
  color: var(--ivory);
}

.rsvp-section .script-title {
  color: var(--gold-light);
}

.rsvp-intro {
  max-width: 440px;
  margin: 0 auto 30px;
  font-size: 20px;
  color: var(--mint);
}

.rsvp-form {
  position: relative;
  z-index: 2;
  width: min(480px, 100%);
  margin: 0 auto;
  text-align: left;
}

.rsvp-form label {
  display: block;
  margin: 17px 0 7px;
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold-light);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(198, 165, 107, .55);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, .07);
  color: white;
  font-family: var(--serif);
  font-size: 17px;
}

.rsvp-form select option {
  color: var(--forest);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(198, 165, 107, .12);
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: rgba(250, 246, 237, .55);
}

.rsvp-submit {
  width: 100%;
  margin-top: 25px;
}

.rsvp-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.form-feedback {
  min-height: 25px;
  margin-top: 15px;
  text-align: center;
  color: var(--gold-light);
  font-size: 17px;
}

/* PIE DE PÁGINA */

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 65px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, #183d2c, #0b2018 75%);
  color: var(--ivory);
}

.footer > *:not(.footer-frame):not(.footer-particles) {
  position: relative;
  z-index: 3;
}

.footer-frame {
  position: absolute;
  z-index: 1;
  inset: 16px;
  border: 1px solid rgba(198, 165, 107, .35);
  pointer-events: none;
}

.footer-frame::before,
.footer-frame::after {
  content: "✧";
  position: absolute;
  color: var(--gold-light);
  font-size: 23px;
}

.footer-frame::before {
  top: -12px;
  left: -8px;
}

.footer-frame::after {
  bottom: -12px;
  right: -8px;
}

.footer .gem-divider {
  margin-top: 0;
}

.footer-script {
  font-family: var(--script);
  font-size: 35px;
  color: var(--gold-light);
}

.footer-name-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 8px auto 18px;
}

.footer-name {
  font-family: var(--script);
  font-size: clamp(65px, 12vw, 95px);
  font-weight: 400;
  color: var(--gold-light);
  text-shadow: 0 0 25px rgba(234, 216, 173, .3);
  animation: finalNameAppear 2s ease both;
}

.footer-name-line {
  width: clamp(25px, 10vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-message {
  max-width: 450px;
  margin: 12px auto;
  font-size: 18px;
}

.footer-star {
  display: block;
  margin: 20px;
  color: var(--gold);
  animation: gemPulse 2s infinite;
}

.footer small {
  font-family: var(--cinzel);
  letter-spacing: 4px;
  color: var(--gold-light);
}

.footer-last-phrase {
  margin-top: 30px;
  font-family: var(--script);
  font-size: 25px;
  color: var(--gold-light);
  opacity: .8;
}

/* MÚSICA */

.music-button {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  background: var(--forest);
  font-size: 23px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.music-button.playing {
  animation: musicRotate 4s linear infinite;
}

/* APARICIÓN AL DESPLAZARSE */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMACIONES */

@keyframes heroAppear {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes meridaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes flowerDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 5px 8px; }
}

@keyframes diamondSparkle {
  0%, 100% {
    opacity: .75;
    filter: drop-shadow(0 0 5px rgba(255, 245, 210, .45));
  }
  50% {
    opacity: 1;
    filter:
      drop-shadow(0 0 10px rgba(255, 245, 210, .95))
      drop-shadow(0 0 24px rgba(234, 216, 173, .7));
  }
}

@keyframes gemPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

@keyframes countFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes musicRotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes fireflyFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 15px, 0) scale(.5);
  }
  20% {
    opacity: .9;
  }
  50% {
    opacity: .55;
    transform: translate3d(25px, -45px, 0) scale(1.2);
  }
  80% {
    opacity: .85;
  }
  100% {
    opacity: 0;
    transform: translate3d(-15px, -100px, 0) scale(.5);
  }
}

@keyframes loaderLine {
  0%, 100% { transform: scaleX(.35); opacity: .5; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes finalNameAppear {
  from {
    opacity: 0;
    transform: translateY(25px);
    letter-spacing: 8px;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0;
  }
}

/* RESPONSIVE */

@media (max-width: 700px) {

  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 100px;
  }

  .hero-content {
    padding-top: 55px;
  }

  .hero-title-wrap h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .hero-name {
    font-size: 90px;
  }

  .merida-container {
    right: 50%;
    transform: translateX(50%);
    width: min(78vw, 350px);
    height: 47%;
    opacity: .92;
  }

  .hero-scroll {
    margin-top: 35px;
  }

  .hero-flowers {
    width: 175px;
    top: -20px;
    left: -30px;
  }

  .hero-diamonds {
    top: 22px;
    width: 190px;
  }

  .hero-frame {
    inset: 10px;
  }

  .section {
    padding: 75px 20px;
  }

  .intro-text {
    font-size: 19px;
  }

  .count-item {
    width: 42%;
    max-width: 135px;
  }

  .count-item span {
    font-size: 29px;
  }

  .section-flower {
    width: 130px;
  }

  .rsvp-flower {
    width: 135px;
  }

  .dress-icons {
    gap: 35px;
  }

  .dress-medallion {
    width: 110px;
    height: 110px;
  }

  .dress-svg {
    width: 60px;
    height: 78px;
  }

  .elegant-calendar {
    padding: 25px 16px;
  }

  .calendar-grid {
    gap: 6px 2px;
  }

  .calendar-grid > span {
    font-size: 15px;
  }

  .calendar-grid .calendar-day {
    font-size: 9px;
  }

  .footer {
    padding: 55px 20px;
  }
}

@media (max-width: 380px) {
  .hero-name {
    font-size: 78px;
  }

  .hero-pretitle,
  .eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .calendar-grid {
    gap: 5px 0;
  }

  .calendar-grid > span {
    min-height: 30px;
    font-size: 14px;
  }

  .calendar-grid .calendar-special {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .dress-medallion {
    width: 98px;
    height: 98px;
  }

  .dress-icons {
    gap: 25px;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.glam-signature {
    text-align: center;
    margin-top: 35px;
    padding: 22px 10px;
    border-top: 1px solid rgba(198, 165, 107, 0.35);
}

.glam-signature span {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 3px;
    color: #ead8ad;
}

.glam-signature strong {
    display: block;
    margin: 7px 0 2px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 29px;
    letter-spacing: 5px;
    color: #c6a56b;
}

.glam-signature small {
    display: block;
    font-size: 8px;
    letter-spacing: 3px;
    color: #dce9d9;
}

.glam-credit {
    text-align: center;
    padding: 18px 10px;
    color: #c6a56b;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.9;
}