/* ============================================================
   JUANA XV — Invitación Digital Elegante
   style.css
   ============================================================ */

/* ── Importar fuentes ── */
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Poppins:wght@300;400;500&display=swap");

/* ── Variables de color ── */
:root {
  --cream: #fdf6f0;
  --blush: #f9ece8;
  --rose: #e8b4b8;
  --rose-light: #f5d5d8;
  --rose-dark: #c9848a;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --gold-dark: #a07c45;
  --text-dark: #4a3540;
  --text-mid: #7a5a62;
  --text-light: #b08090;
  --white: #ffffff;
  --shadow: rgba(180, 120, 130, 0.15);
  --shadow-gold: rgba(180, 140, 80, 0.2);
}

/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}
/* ============================================================
   scroll automtatico
   ============================================================ */
html,
body {
  overflow: hidden;
  scroll-behavior: smooth;
}

body.scroll-libre {
  overflow: auto;
}
/* ============================================================
   OPENING CINEMATOGRÁFICO
   ============================================================ */
.opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(
    160deg,
    #fde8ec 0%,
    #fdf0f5 40%,
    #fdf6f0 70%,
    #fef9f0 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

.opening.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#sparkle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.opening-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fade-line {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.opening-deco {
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  color: var(--gold);
}

.top-deco {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.opening-subtitle {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-top: 1rem;
}

.opening-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(5rem, 18vw, 9rem);
  color: var(--rose-dark);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(200, 130, 140, 0.25);
}

.opening-xv {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.6em;
  color: var(--gold);
  text-transform: uppercase;
}

.opening-date {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 3vw, 1rem);
  letter-spacing: 0.35em;
  color: var(--text-mid);
  text-transform: uppercase;
}

.btn-ingresar {
  margin-top: 1.5rem;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-ingresar:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 24px var(--shadow-gold);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-hidden {
  opacity: 0;
  pointer-events: none;
}

.main-visible {
  opacity: 1;
  pointer-events: auto;
}
.main-hidden.revealed {
  opacity: 1;
  pointer-events: auto;
}

/* ── Secciones generales ── */
.section {
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.section-label {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ── Fade-in al hacer scroll ── */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(175deg, #fdeef2 0%, var(--cream) 60%);
  text-align: center;
  padding: 4rem 1.5rem;
}

/* Fondo floral decorativo */
.hero-bg-flowers {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse 300px 200px at 10% 20%,
      rgba(232, 180, 184, 0.22) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 250px 180px at 90% 80%,
      rgba(201, 168, 110, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 200px 150px at 80% 15%,
      rgba(232, 180, 184, 0.15) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 180px 120px at 15% 85%,
      rgba(245, 213, 216, 0.2) 0%,
      transparent 70%
    );
  pointer-events: none;
}

/* Textura floral con SVG inline */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='20' cy='20' r='4' fill='%23e8b4b8' opacity='0.18'/%3E%3Ccircle cx='60' cy='10' r='2.5' fill='%23c9a96e' opacity='0.13'/%3E%3Ccircle cx='100' cy='30' r='3.5' fill='%23e8b4b8' opacity='0.14'/%3E%3Ccircle cx='10' cy='70' r='3' fill='%23c9a96e' opacity='0.1'/%3E%3Ccircle cx='80' cy='80' r='4' fill='%23e8b4b8' opacity='0.16'/%3E%3Ccircle cx='40' cy='100' r='2' fill='%23c9a96e' opacity='0.12'/%3E%3Ccircle cx='110' cy='100' r='3' fill='%23f5d5d8' opacity='0.2'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  width: 100%;
}

.hero-badge {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.hero-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(5.5rem, 22vw, 10rem);
  color: var(--rose-dark);
  line-height: 1;
  text-shadow: 0 6px 40px rgba(200, 130, 140, 0.22);
  margin-bottom: 0.5rem;
}

.hero-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-day,
.hero-month,
.hero-year {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.1em;
}

.hero-sep {
  color: var(--gold);
  font-size: 0.8rem;
}

.hero-tagline {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  color: var(--text-mid);
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
}

.hero-divider {
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ============================================================
   2. CUENTA REGRESIVA
   ============================================================ */
.countdown-section {
  background: linear-gradient(170deg, var(--blush) 0%, var(--cream) 100%);
  text-align: center;
}

.countdown-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  min-width: 80px;
  box-shadow:
    0 8px 32px var(--shadow),
    0 0 0 1px rgba(201, 169, 110, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
}

.count-num {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  color: var(--rose-dark);
  line-height: 1;
  min-width: 2.2ch;
  text-align: center;
  transition: transform 0.3s ease;
}

.count-label {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.countdown-dot {
  font-size: 0.7rem;
  color: var(--gold-light);
  margin: 0 0.2rem;
}

@media (max-width: 380px) {
  .countdown-dot {
    display: none;
  }
  .countdown-card {
    min-width: 70px;
    padding: 1rem 0.8rem;
  }
}

/* ============================================================
   3. INFORMACIÓN DEL EVENTO
   ============================================================ */
.event-section {
  background: var(--cream);
  text-align: center;
}

.event-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 48px var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.15);
}

.event-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.event-time {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.event-time strong {
  font-family: "Playfair Display", serif;
  color: var(--rose-dark);
  font-size: 1.1rem;
}

.event-divider-thin {
  width: 50px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-light),
    transparent
  );
  margin: 0 auto 1rem;
}

.event-venue {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.event-address {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Botón dorado reutilizable */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 4px 18px var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow-gold);
  filter: brightness(1.08);
}

.map-wrapper {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.15);
}

/* ============================================================
   4. DRESS CODE
   ============================================================ */
.dresscode-section {
  background: linear-gradient(175deg, var(--cream) 0%, var(--blush) 100%);
  text-align: center;
}

.dresscode-tag {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.5rem, 9vw, 4rem);
  color: var(--rose-dark);
  margin-bottom: 1rem;
}

.dresscode-desc {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 2rem;
}

.dresscode-img-wrap {
  display: flex;
  justify-content: center;
}

.dresscode-img {
  width: min(340px, 80vw);
  height: auto;
  object-fit: contain;

  /* sacamos el cuadro */
  border-radius: 0;
  box-shadow: none;
  background: none;

  transition: transform 0.4s ease;
}

.dresscode-img:hover {
  transform: scale(1.03);
}
.logo-autor {
  animation: heartbeat 4s ease-in-out infinite;
}
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  /* primer latido */
  5% {
    transform: scale(1.12);
  }
  10% {
    transform: scale(1);
  }

  /* segundo latido */
  15% {
    transform: scale(1.12);
  }
  20% {
    transform: scale(1);
  }

  /* pausa larga */
  100% {
    transform: scale(1);
  }
}
/* ============================================================
   5. REGALOS
   ============================================================ */
.gifts-section {
  background: var(--cream);
  text-align: center;
}

.gifts-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 12px 48px var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.15);
}

.gifts-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.gifts-text {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.alias-box {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--rose-light) 0%,
    var(--gold-light) 100%
  );
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-dark);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 18px var(--shadow-gold);
}

.gifts-thanks {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================================
   6. FRASE FINAL
   ============================================================ */
.closing-section {
  background: linear-gradient(170deg, var(--blush) 0%, #fde8ec 100%);
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-inner {
  padding: 2rem 1.5rem;
  max-width: 520px;
}

.closing-top {
  font-size: 0.8rem;
  letter-spacing: 0.6em;
  color: var(--gold);
  margin-bottom: 2rem;
}

.closing-main {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.8rem, 11vw, 5rem);
  color: var(--rose-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.closing-sub {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}

.closing-signature {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.closing-name {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  color: var(--rose-dark);
  display: block;
  margin-top: 0.3rem;
}

/* ============================================================
   7. CONFIRMACIÓN
   ============================================================ */
.confirm-section {
  background: var(--cream);
  text-align: center;
  padding-bottom: 6rem;
}

.btn-confirm-main {
  background: linear-gradient(135deg, var(--rose-dark) 0%, #b06070 100%);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 6px 28px rgba(180, 100, 120, 0.3);
}

.btn-confirm-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(180, 100, 120, 0.4);
  filter: brightness(1.06);
}

/* Formulario */
.form-wrapper {
  margin-top: 2.5rem;
  animation: fadeUp 0.7s ease forwards;
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 16px 56px var(--shadow);
  border: 1px solid rgba(201, 169, 110, 0.15);
  text-align: left;
}

.form-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--rose-light);
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.radio-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  color: var(--text-mid);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--rose-dark);
  width: 16px;
  height: 16px;
}

.btn-send {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* Mensaje de éxito */
.success-msg {
  margin-top: 2rem;
  animation: fadeUp 0.7s ease forwards;
}

.success-inner {
  background: linear-gradient(
    135deg,
    var(--rose-light) 0%,
    var(--gold-light) 100%
  );
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 380px;
  margin: 0 auto;
  box-shadow: 0 12px 40px var(--shadow);
}

.success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.success-inner h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.success-inner p {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--text-mid);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-dark);
  padding: 1.8rem 1rem;
  text-align: center;
}

.footer p {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--rose-light);
  text-transform: uppercase;
}

/* ============================================================
   FONDO ARTÍSTICO ACUARELA (parallax)
   ============================================================ */

/* Capa fija que actúa como lienzo debajo de todo el contenido */
#bg-watercolor {
  position: fixed;

  top: -30vh;
  left: 0;
  width: 100%;
  height: 160vh;

  z-index: -2;

  background-image: url("img/img1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  will-change: transform;
  transform: translateY(0) scale(1.25);
  transition: transform 0.05s linear;
}
/* Overlay crema semitransparente encima de la imagen */
#bg-watercolor::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Degradado crema suave: muy opaco arriba, algo más liviano abajo */
  background: linear-gradient(
    170deg,
    rgba(253, 246, 240, 0) 0%,
    rgba(249, 236, 232, 0) 35%,
    rgba(253, 246, 240, 0) 65%,
    rgba(253, 240, 245, 0) 100%
  );
}

/* Secciones con fondo propio ahora usan transparencia parcial
   para dejar respirar la textura artística */
body {
  background: transparent; /* el fixed bg-watercolor toma el rol */
}

.hero {
  background: linear-gradient(
    175deg,
    rgba(253, 238, 242, 0) 0%,
    rgba(253, 246, 240, 0) 100%
  ) !important;
}

.countdown-section {
  background: linear-gradient(
    170deg,
    rgba(249, 236, 232, 0) 0%,
    rgba(253, 246, 240, 0) 100%
  ) !important;
}

.event-section {
  background: rgba(253, 246, 240, 0) !important;
}

.dresscode-section {
  background: linear-gradient(
    175deg,
    rgba(253, 246, 240, 0) 0%,
    rgba(249, 236, 232, 0) 100%
  ) !important;
}

.gifts-section {
  background: rgba(253, 246, 240, 0) !important;
}

.closing-section {
  background: linear-gradient(
    170deg,
    rgba(249, 236, 232, 0) 0%,
    rgba(253, 232, 236, 0) 100%
  ) !important;
}

.confirm-section {
  background: rgba(253, 246, 240, 0) !important;
}

/* Las tarjetas internas mantienen fondo blanco sólido para legibilidad */
.event-card,
.gifts-card,
.form-card,
.success-inner,
.countdown-card {
  background: rgba(255, 255, 255, 0) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   CRÉDITO FIJO — @patriciabeltranfotografia
   ============================================================ */

.credit-badge {
  position: fixed;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 8888;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;

  /* Fondo semitransparente suave */
  background: rgba(253, 246, 240, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 50px;
  padding: 0.42rem 0.9rem 0.42rem 0.6rem;
  box-shadow:
    0 4px 20px rgba(180, 120, 130, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.06);

  /* Transición hover */
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.credit-badge:hover {
  background: rgba(253, 246, 240, 0.96);
  border-color: rgba(201, 169, 110, 0.55);
  box-shadow:
    0 8px 32px rgba(180, 120, 130, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.credit-ig-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--rose-dark);
  transition: color 0.3s ease;
  /* Gradiente rosa→dorado en hover via filter */
}

.credit-badge:hover .credit-ig-icon {
  color: var(--gold-dark);
}

.credit-text {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.credit-badge:hover .credit-text {
  color: var(--gold-dark);
}

/* En móvil muy pequeño: ocultar el texto, mostrar solo el ícono */
@media (max-width: 360px) {
  .credit-text {
    display: none;
  }
  .credit-badge {
    padding: 0.5rem;
  }
  .credit-ig-icon {
    width: 17px;
    height: 17px;
  }
}

/* ============================================================
   SCROLL INDICATOR (opcional estético)
   ============================================================ */
.hero::after {
  content: "↓";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--gold);
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.6;
  z-index: 2;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .countdown-card {
    min-width: 100px;
    padding: 1.6rem 1.4rem;
  }
  .section {
    padding: 6rem 2rem;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 7rem 3rem;
  }
  .event-card,
  .gifts-card,
  .form-card {
    padding: 3rem 2.5rem;
  }
}
/* ======================
   CARRUSEL INFINITO XV
====================== */

.carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: infiniteScroll 25s linear infinite;
}

.carousel-img {
  width: 280px;
  height: 380px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* LOOP REAL */
@keyframes infiniteScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50%));
  }
}
.story-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.story-text {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 2rem;
  text-align: center;
}
