/* ============================================
   BODA CATA Y MAURO - Wedding Invitation
   Sistema UX: hand-drawn, paper, warm orange, green accents
   Inspirado en moodboard Cata & Mauro
   ============================================ */

:root {
  /* Paleta principal */
  --orange-main: #c75b39;
  --orange-warm: #b84a2a;
  --orange-light: #e07a5a;
  --green-dark: #3d5a4c;
  --green-accent: #5a8f7a;
  --green-soft: #7cb49a;
  --green-muted: rgba(93, 143, 122, 0.15);
  
  /* Papel y fondos */
  --paper: #faf6f0;
  --paper-warm: #f5efe6;
  --paper-dark: #ebe3d8;
  /* Semi-transparentes para mostrar textura de fondo */
  --paper-translucent: rgba(250, 246, 240, 0.6);
  --paper-warm-translucent: rgba(245, 239, 230, 0.6);
  --paper-dark-translucent: rgba(235, 227, 216, 0.65);
  /* Hero: blanco puro, funde a transparente en el espacio inferior */
  --gradient-hero: linear-gradient(180deg, #fff 0%, #fff 88%, rgba(255,255,255,0) 100%);
  /* Invitation: fondo muy sutil, máximo 20% de opacidad */
  --gradient-invitation: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  /* Degradados suaves, sin cortes: transparente en los bordes */
  --gradient-paper: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  --gradient-paper-warm: linear-gradient(
    180deg,
    rgba(250, 246, 240, 0) 0%,
    rgba(250, 246, 240, 0.2) 25%,
    rgba(245, 239, 230, 0.38) 50%,
    rgba(250, 246, 240, 0.2) 75%,
    rgba(250, 246, 240, 0) 100%
  );
  --gradient-paper-card: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(250, 246, 240, 0.2) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  
  /* Texto */
  --text-dark: #2d2a26;
  --text-soft: #5c544c;
  --text-on-green: #fff;
  
  /* Sombras y profundidad */
  --shadow-paper: rgba(45, 42, 38, 0.08);
  --shadow-lifted: rgba(45, 42, 38, 0.12);
  --shadow-pinned: rgba(199, 91, 57, 0.2);
  
  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Tonos de elegancia */
  --champagne: #f7efe3;
  --blush: #e8bdb0;
  --gold: #c9a96e;
  --gold-muted: rgba(201, 169, 110, 0.18);

  /* Estrella decorativa - modificar aquí tamaño y animación */
  --estrella-size: 36px;
  --estrella-opacity: 0.35;
  --estrella-duration: 25s;
  --estrella-duration-fast: 18s;
  --estrella-duration-slow: 32s;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .observe, .hero-stars .star, .polaroid-card, .bodas-card,
  .datos-column, .dresscode-illustration, .cta-floating,
  .countdown-item, .section-title, .hero-decorative-line,
  .dresscode-photo, .datos-image-placeholder, .estrella {
    animation: none !important;
    transform: none !important;
  }
  .estrella-track { visibility: hidden; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url('imagenes/LogoAnillor.png') 16 16, auto;
  padding-bottom: 5rem;
  /* Textura de papel fija (old paper) */
  background-image: url('imagenes/old-paper-texture.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ============ ESTRELLA DECORATIVA (imagen cruzando la pantalla) ============ */
.estrella-track {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.estrella {
  position: absolute;
  width: var(--estrella-size);
  height: var(--estrella-size);
  background: url('imagenes/estrella2.png') center / contain no-repeat;
  opacity: var(--estrella-opacity);
  animation-fill-mode: backwards;
}

/* Posición inicial: fuera de pantalla (valor negativo del width) */
.estrella-ltr { transform: translateX(calc(-1 * var(--estrella-size))); }
.estrella-rtl { transform: translateX(var(--estrella-size)); }

.estrella-1 { top: 8%; left: 0; animation: estrellaLtr var(--estrella-duration) linear 0s infinite; }
.estrella-2 { top: 18%; right: 0; animation: estrellaRtl var(--estrella-duration) linear 2s infinite; }
.estrella-3 { top: 28%; left: 0; animation: estrellaLtr var(--estrella-duration) linear 5s infinite; }
.estrella-4 { top: 38%; right: 0; animation: estrellaRtl var(--estrella-duration) linear 1s infinite; }
.estrella-5 { top: 48%; left: 0; animation: estrellaLtr var(--estrella-duration) linear 7s infinite; }
.estrella-6 { top: 58%; right: 0; animation: estrellaRtl var(--estrella-duration) linear 3s infinite; }
.estrella-7 { top: 68%; left: 0; animation: estrellaLtr var(--estrella-duration) linear 4s infinite; }
.estrella-8 { top: 78%; right: 0; animation: estrellaRtl var(--estrella-duration) linear 6s infinite; }
.estrella-9 { top: 88%; left: 0; animation: estrellaLtr var(--estrella-duration) linear 2s infinite; }
.estrella-10 { top: 95%; right: 0; animation: estrellaRtl var(--estrella-duration) linear 8s infinite; }
.estrella-11 { top: 42%; left: 0; animation: estrellaLtr var(--estrella-duration) linear 9s infinite; }
.estrella-12 { top: 72%; right: 0; animation: estrellaRtl var(--estrella-duration) linear 4.5s infinite; }

.estrella-fast { animation-duration: var(--estrella-duration-fast) !important; }
.estrella-slow { animation-duration: var(--estrella-duration-slow) !important; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes estrellaLtr {
    0% {
      transform: translateX(-100%) rotate(0deg);
    }
    100% {
      transform: translateX(calc(100vw + 100%)) rotate(720deg);
    }
  }

  @keyframes estrellaRtl {
    0% {
      transform: translateX(100%) rotate(0deg);
    }
    100% {
      transform: translateX(calc(-100vw - 100%)) rotate(-720deg);
    }
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ CARDS - Bordes irregulares tipo papel rasgado ============ */
.paper-card {
  background: var(--gradient-paper-card);
  padding: 2rem;
  position: relative;
  box-shadow: 
    2px 2px 0 var(--shadow-paper),
    4px 4px 0 var(--shadow-paper),
    6px 6px 0 var(--shadow-lifted);
  /* Bordes irregulares simulados con border-radius */
  border-radius: 2px 18px 4px 20px / 20px 4px 18px 2px;
}

/* Section base */
.section {
  padding: 1.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section { padding: 1.5rem 2rem; }
}

/* Títulos de sección con banner verde (moodboard) */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--orange-warm);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  letter-spacing: 0.01em;
}

/* Línea decorativa ondulada bajo títulos */
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--green-accent), transparent);
  opacity: 0.7;
  border-radius: 2px;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .section-title.visible::after {
    animation: titleLineGrow 0.6s ease-out backwards;
  }
}

@keyframes titleLineGrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 0.7;
  }
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--text-soft);
  text-align: center;
  margin-bottom: 3rem;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem 1rem;
  background: var(--gradient-invitation);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Eyebrow: fecha pequeña en mayúsculas */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

/* Nombres: pieza central del héroe */
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--orange-warm);
  line-height: 1.05;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  word-break: break-word;
  hyphens: auto;
}

/* Ampersand con color acento */
.hero-amp {
  font-style: normal;
  color: var(--green-accent);
  font-weight: 300;
  margin: 0 0.1em;
}

/* Tagline: serif elegante, presencia sin doodle */
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.hero-tagline2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 0.25rem;
}

/* Nombre del invitado en páginas personalizadas */
.hero-guest-name {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.5rem 0;
}
.marcogif{
  max-width: 500px;
}
.hero-text {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-soft);
  font-style: italic;
}

/* Línea decorativa ondulada */
.hero-decorative-line {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--green-accent), transparent);
  margin: 2rem auto;
  border-radius: 2px;
  opacity: 0.7;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-decorative-line {
    animation: linePulse 2.5s ease-in-out infinite;
  }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.6; transform: scaleX(0.9); }
  50% { opacity: 0.85; transform: scaleX(1.1); }
}



@media (prefers-reduced-motion: no-preference) {
  .hero-accent-shape { animation: float 4s ease-in-out infinite; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* Estrellas dispersas en fondo */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-stars .star {
  position: absolute;
  font-size: 0.9rem;
  color: var(--green-accent);
  opacity: 0.35;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stars .star { animation: twinkle 3s ease-in-out infinite; }
  .star-1 { left: 8%; top: 15%; animation-delay: 0s; }
  .star-2 { right: 12%; top: 25%; animation-delay: 0.5s; }
  .star-3 { left: 25%; bottom: 20%; animation-delay: 1s; }
  .star-4 { right: 8%; bottom: 30%; animation-delay: 1.5s; }
  .star-5 { left: 45%; top: 8%; animation-delay: 2s; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* Placeholder de video - estilo tarjeta con bordes irregulares */
.hero-video-placeholder {
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(
    145deg,
    rgba(235, 227, 216, 0) 0%,
    rgba(235, 227, 216, 0.3) 40%,
    rgba(235, 227, 216, 0.15) 70%,
    rgba(235, 227, 216, 0) 100%
  );
  
  border-radius: 4px 12px 6px 14px / 14px 6px 12px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Observe - scroll reveal */
.observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.observe.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .observe { opacity: 1; transform: none; }
}

/* ============ INVITATION - Polaroid tipo clavado en papel ============ */
.invitation {
  background: var(--gradient-invitation);
}

.invitation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation-photo-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.invitation-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.polaroid-card {
 background: linear-gradient(135deg, rgba(199, 91, 57, 0.06) 0%, rgba(249, 246, 240, 0.5) 50%, rgba(199, 91, 57, 0.04) 100%);
  padding: 0.75rem 0.75rem 1.5rem;
  border-radius: 12px 28px 8px 24px / 24px 12px 28px 8px;
  box-shadow: 
    2px 2px 4px var(--shadow-paper),
    4px 4px 8px var(--shadow-lifted),
    0 8px 0 var(--shadow-pinned);
  max-width: 600px;
  /* Inclinación sutil tipo polaroid clavada */
  transform: rotate(-0.5deg);
  border: 1px solid rgba(45, 42, 38, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
  .polaroid-card.visible {
    animation: polaroidSlide 0.8s ease-out forwards, polaroidFloat 5s ease-in-out 1s infinite;
  }
}

@keyframes polaroidSlide {
  0% {
    opacity: 0;
    transform: translateX(-20px) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-0.5deg);
  }
}

@keyframes polaroidFloat {
  0%, 100% { transform: translateX(0) rotate(-0.5deg) translateY(0); }
  50% { transform: translateX(0) rotate(-0.5deg) translateY(-6px); }
}

.polaroid-photo-wrapper {
  background: linear-gradient(
    180deg,
    rgba(235, 227, 216, 0) 0%,
    rgba(235, 227, 216, 0.35) 30%,
    rgba(235, 227, 216, 0.25) 70%,
    rgba(235, 227, 216, 0) 100%
  );
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.polaroid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  text-align: center;
}

.invitation-greeting {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--orange-warm);
  margin-bottom: 0.25rem;
}

.invitation-subline {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.invitation-message {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.rsvp-notice {
  
  margin: 0 auto;
  
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 300;
  color: var(--orange-warm);
  line-height: 1.8;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg,
    rgba(199, 91, 57, 0.06) 0%,
    rgba(249, 246, 240, 0.5) 50%,
    rgba(199, 91, 57, 0.04) 100%
  );
  border-top: 1px solid rgba(199, 91, 57, 0.2);
  border-bottom: 1px solid rgba(199, 91, 57, 0.2);
  position: relative;
}
.newtext{
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 800;
  color: var(--orange-warm);
  line-height: 1.8;
  letter-spacing: 0.01em;
 
}

.rsvp-notice::before,
.rsvp-notice::after {
  content: '✦';
  display: block;
  font-size: 0.85rem;
  color: var(--orange-main);
  opacity: 0.5;
  margin-bottom: 0.1rem;
}

.rsvp-notice::after {
  margin-bottom: 0;
  margin-top: 0.75rem;
}

/* ============ DRESSCODE ============ */
.dresscode {
  background: var(--gradient-paper-warm);
}

/* Grid 2 columnas: texto + fotos de ejemplo */
.dresscode-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .dresscode-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.dresscode-content {
  margin-bottom: 0;
}

.dresscode-block {
  margin-bottom: 1.5rem;
}

.dresscode-block h3 {
  font-size: 1.2rem;
  color: var(--orange-warm);
  margin-bottom: 0.5rem;
}

.dresscode-block p {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.dresscode-highlight {
  color: var(--green-accent) !important;
  font-size: 0.95rem;
}

/* Enlace externo - estilo botón naranja irregular (moodboard) */
.dresscode-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--orange-main);
  color: #fff !important;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 2px 2px 0 var(--shadow-pinned);
  /* Bordes irregulares tipo papel/etiqueta */
  border-radius: 8px 24px 12px 28px / 28px 8px 24px 12px;
}

.dresscode-btn:hover {
  background: var(--orange-warm);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Fotos de ejemplo */
.dresscode-photos {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.dresscode-photo--single {
  aspect-ratio: 4/5;
}

.dresscode-photo--single img {
  object-position: 0% center;
  animation: dresscode-pan 10s ease-in-out infinite;
}

@keyframes dresscode-pan {
  0%   { object-position: 0% center; }
  50%  { object-position: 100% center; }
  100% { object-position: 0% center; }
}

@media (prefers-reduced-motion: reduce) {
  .dresscode-photo--single img {
    animation: none;
    object-position: 50% center;
  }
}

.dresscode-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(
    145deg,
    rgba(235, 227, 216, 0) 0%,
    rgba(235, 227, 216, 0.3) 40%,
    rgba(235, 227, 216, 0.15) 70%,
    rgba(235, 227, 216, 0) 100%
  );
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 4px 12px 6px 14px / 14px 6px 12px 4px;
  overflow: hidden;
  border: 2px dashed var(--orange-main); 
  display: flex;
  align-items: center;
  justify-content: center;
}

.dresscode-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dresscode-photo span {
  position: relative;
  z-index: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
  padding: 0.5rem;
}

.dresscode-photo img[src]:not([src=""]) {
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .dresscode-photo:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 8px 20px var(--shadow-lifted);
  }
}

.gifs-marco .dresscode-illustration {
  background-image: url('imagenes/fondomarco.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gifs-solo {
  grid-template-columns: 1fr !important;
}

.dresscode-cards {
  display: grid;
  gap: 1.5rem;
  max-width: 450px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .dresscode-cards { grid-template-columns: 1fr 1fr; }
}

/* Tarjetas de ilustración - papel rasgado */
.dresscode-illustration {
  background: var(--gradient-paper-card);
  padding: 2rem;
  border-radius: 2px 16px 6px 18px / 18px 6px 16px 2px;
 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dresscode-illustration:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .dresscode-illustration:hover { transform: none; }
}

.dresscode-illustration p {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--orange-warm);
  text-align: center;
}

/* ============ CUANDO (Countdown) ============ */
.cuando {
  background: var(--gradient-paper);
}

.cuando-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cuando-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}

.cuando-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.cuando-mapa {
  flex: 1;
  display: flex;
  align-items: center;
}

.cuando-mapa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 16px 6px 14px / 14px 6px 16px 4px;
  display: block;
}

.cuando-countdown {
  text-align: center;
}

.countdown-label {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--orange-warm);
  margin-bottom: 1rem;
}
.logoanillo{
  width: 200px;
 
  object-fit: cover;
}
/* Countdown en tarjetas estilo papel */
.countdown-display {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 40%, rgba(245, 239, 230, 0.2) 70%, rgba(255, 255, 255, 0) 100%);
  padding: 0.5rem 0rem;
  border-radius: 8px 24px 6px 20px / 20px 6px 24px 8px;
  min-width: 50px;
  box-shadow: 2px 2px 6px var(--shadow-paper);
  border: 1px solid var(--gold-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .countdown-item {
    animation: countdownFloat 3s ease-in-out infinite;
  }
  .countdown-item:nth-child(1) { animation-delay: 0s; }
  .countdown-item:nth-child(2) { animation-delay: 0.2s; }
  .countdown-item:nth-child(3) { animation-delay: 0.4s; }
  .countdown-item:nth-child(4) { animation-delay: 0.6s; }
}

@keyframes countdownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--orange-warm);
  line-height: 1;
}

.countdown-unit {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: lowercase;
}

.cuando-info {
  text-align: left;
}

.cuando-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.cuando-icon { flex-shrink: 0; }

/* ============ BODAS - Tarjetas con bordes irregulares ============ */
.bodas {
  background: var(--gradient-paper-warm);
}

.bodas-cards {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .bodas-cards { grid-template-columns: 1fr 1fr; }
}

.bodas-card {
  background: var(--gradient-paper-card);
  padding: 2rem;
  position: relative;
  border-radius: 4px 20px 6px 18px / 18px 6px 20px 4px;
  box-shadow: 2px 2px 6px var(--shadow-paper);
  border: 2px dashed var(--orange-main); 
}

.bodas-card::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 6px 22px 8px 20px / 20px 8px 22px 6px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bodas-card.visible::before {
  opacity: 0.4;
}

@media (prefers-reduced-motion: no-preference) {
  .bodas-card {
    animation: cardFloat 4s ease-in-out infinite;
  }
  .bodas-card:nth-child(1) { animation-delay: 0s; }
  .bodas-card:nth-child(2) { animation-delay: 0.5s; }
  .bodas-card:hover {
    animation-play-state: paused;
  }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.bodas-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.bodas-card-icon img {
  width: 100%;
  height: 370px;
  object-fit: contain;
  display: block;
}

.bodas-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--orange-warm);
  margin-bottom: 1rem;
}

.bodas-card ul { list-style: none; }

.bodas-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.bodas-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--green-accent);
  font-weight: bold;
}

/* ============ DATOS RANDOM ============ */
.datos {
  background: var(--gradient-paper);
}

.datos-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .datos-grid { grid-template-columns: 1fr 1fr; }
}

.datos-column ul {
  opacity: 0;
  transform: translateY(16px);
}

.datos-column.visible ul {
  animation: staggerReveal 0.5s ease forwards;
}

.datos-column.visible ul li {
  opacity: 0;
  animation: itemReveal 0.4s ease forwards;
}

.datos-column.visible ul li:nth-child(1) { animation-delay: 0.1s; }
.datos-column.visible ul li:nth-child(2) { animation-delay: 0.2s; }
.datos-column.visible ul li:nth-child(3) { animation-delay: 0.3s; }

@keyframes staggerReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes itemReveal {
  to { opacity: 1; }
}

/* Placeholders de imagen - bordes tipo nube/manual */
.datos-image-placeholder {
    position: relative;
    /* aspect-ratio: 4 / 3; */
    height: 500px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: linear-gradient(180deg, rgba(235, 227, 216, 0) 0%, rgba(235, 227, 216, 0.3) 35%, rgba(235, 227, 216, 0.2) 65%, rgba(235, 227, 216, 0) 100%);
    border-radius: 8px 24px 12px 20px / 20px 12px 24px 8px;
    display: flex;
    /* border: 2px dashed var(--orange-main); */
    align-items: center;
    justify-content: center;
    text-align: center;
    /* padding: 1rem; */
    margin-bottom: 1.5rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.datos-image-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.datos-image-placeholder span { position: relative; z-index: 0; }

.datos-image-placeholder img[src]:not([src=""]) { z-index: 1; }

.datos-image-placeholder img[src]:not([src=""]) ~ span { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .datos-image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--shadow-lifted);
  }
}

.datos-list { list-style: none; }

.datos-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.datos-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--green-accent);
  font-weight: bold;
}

/* ============ CANCIÓN ============ */
.cancion {
  background: var(--gradient-paper-warm);
}

.cancion-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 1rem;
}

@media (min-width: 480px) {
  .cancion-form { flex-direction: row; }
}

.song-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--orange-main);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    rgba(255, 255, 255, 0.3) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  color: var(--text-dark);
}

.song-input::placeholder { color: var(--text-soft); }

.song-input:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px var(--green-muted);
}

/* Botón Sugerir - acento verde (moodboard) */
.song-submit {
  padding: 0.75rem 1.5rem;
  background: var(--green-accent);
  color: #fff;
  border: none;
  /* Bordes irregulares */
  border-radius: 10px 26px 8px 22px / 22px 10px 26px 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.song-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.song-submit:active { transform: scale(0.96); }

@media (prefers-reduced-motion: no-preference) {
  .song-submit:focus-visible {
    box-shadow: 0 0 0 3px var(--green-muted);
  }
  .song-submit.ripple { animation: bounceBtn 0.4s ease; }
}

@keyframes bounceBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.song-feedback {
  text-align: center;
  color: var(--green-accent);
  font-size: 0.95rem;
}

/* ============ CTA FLOTANTE (moodboard: botones irregulares, márgenes) ============ */
.cta-floating {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 340px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background: var(--green-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow-pinned);
  transition: background 0.2s ease, transform 0.2s ease;
  /* Bordes irregulares tipo papel/etiqueta */
  border-radius: 12px 28px 8px 24px / 24px 12px 28px 8px;
}

.cta-floating:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  .cta-floating {
    animation: ctaFloat 2.5s ease-in-out infinite;
  }
  .cta-floating:hover {
    animation-play-state: paused;
  }
}

@keyframes ctaFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scale(1);
    box-shadow: 0 4px 16px var(--shadow-pinned);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) scale(1.03);
    box-shadow: 0 12px 24px var(--shadow-pinned);
  }
}

/* ============================================================
   SOBRE ANIMADO — Overlay de apertura
   ============================================================ */

/* El overlay es transparente: el fondo lo da .sobre-bg */
.sobre-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
}

/* Fondo oscuro independiente — se desvanece al abrir */
.sobre-bg {
  position: absolute;
  inset: 0;
  background: #2C1810;
  transition: opacity 1s ease 0.3s;
  pointer-events: none;
}

.sobre-overlay.opening .sobre-bg { opacity: 0; }

/* Estrellas de fondo generadas por JS */
.sobre-bg-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.8s ease 0.3s;
}

.sobre-overlay.opening .sobre-bg-stars { opacity: 0; }

.sobre-star {
  position: absolute;
  background: #C0522A;
  transform: rotate(45deg);
  animation: sobre-star-pasar linear infinite;
}

@keyframes sobre-star-pasar {
  0%   { transform: rotate(45deg) translateX(0);      opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: rotate(45deg) translateX(-120vw); opacity: 0; }
}

/* Escena: 600×800 base (ambas mitades apiladas), escala por JS */
.sobre-scene {
  position: relative;
  width: 600px;
  height: 800px;
  cursor: pointer;
  transform-origin: center center;
  justify-self: center;
  align-self: center;
  flex-shrink: 0;
}

/* Las dos mitades del sobre — apiladas en el mismo lugar */
.sobre-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 800px;
  overflow: hidden;
  will-change: transform, opacity;
}

/* sobre-izquierda detrás, sobre-derecha encima tapándola */
.sobre-flap-left  { z-index: 1; transform-origin: center center; }
.sobre-flap-right { z-index: 2; transform-origin: right center;
                    transition: transform 1.3s cubic-bezier(0.76, 0, 0.24, 1),
                                opacity  0.9s ease 0.3s; }

.sobre-flap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 800px;
}

/* Texto destinatario sobre el flap derecho */
.sobre-destinatario {
  position: absolute;
  bottom: 90px;
  right: 28px;
  z-index: 5;
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: #7a2e10;
  line-height: 1.6;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}

.sobre-destinatario p {
  margin: 0;
  font-size: 28px;
}

/* Estado abierto: derecha se va a la derecha, izquierda crece y se desvanece */
.sobre-scene.open .sobre-flap-right { transform: translateX(130%) rotateY(-15deg); opacity: 0; }
.sobre-scene.open .sobre-flap-left  { animation: sobre-iz-expand 1s ease-in 0.2s forwards; }

@keyframes sobre-iz-expand {
  0%   { transform: scale(1);   opacity: 1; }
  55%  { transform: scale(7);   opacity: 0.7; }
  100% { transform: scale(12);  opacity: 0; }
}

/* Sombra proyectada */
.sobre-shadow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
  transition: opacity 0.8s ease 0.3s;
  pointer-events: none;
}

.sobre-overlay.opening .sobre-shadow { opacity: 0; }

/* Hint "· Toca para abrir ·" */
.sobre-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #A0785A;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: sobrePulse 2s ease-in-out infinite;
  transition: opacity 0.3s;
  cursor: pointer;
  user-select: none;
  z-index: 2;
}

@keyframes sobrePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sobre-hint { animation: none; opacity: 0.7; }
  .sobre-flap,
  .sobre-shadow { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   SOBRE V2 — Variación: página emerge del sobre (clic)
   Para activar: USE_V2_ENVELOPE = true en app.js
   Para volver a V1: USE_V2_ENVELOPE = false
═══════════════════════════════════════════════════════════ */
.sobre-v2-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  will-change: transform;
}

/* La "carta" — ocupa todo el espacio sobre el sobre */
.sobre-v2-letter {
  flex: 1;
  background: #fdf8f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.sobre-v2-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 300;
  color: var(--orange-warm, #c7573a);
  opacity: 0.65;
  line-height: 1;
}

.sobre-v2-hint-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--orange-warm, #c7573a);
  letter-spacing: 0.1em;
  opacity: 0.55;
  animation: sobrePulse 2.2s ease-in-out infinite;
}

/* Sobre en la parte inferior del overlay */
.sobre-v2-env {
  position: relative;
  width: 100%;
  height: clamp(130px, 22vh, 200px);
  flex-shrink: 0;
  background: #e8dcc8;
}

.sobre-v2-env-wings {
  position: absolute;
  inset: 0;
}
.sobre-v2-env-wings::before,
.sobre-v2-env-wings::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: #dfd3bd;
}
.sobre-v2-env-wings::before {
  left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.sobre-v2-env-wings::after {
  right: 0;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.sobre-v2-env-base {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  z-index: 2;
  filter: drop-shadow(0 -3px 5px rgba(0,0,0,0.06));
}
.sobre-v2-env-base::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ede1ce;
  clip-path: polygon(50% 0%, 0 100%, 100% 100%);
}

/* Flap superior — se abre al hacer clic */
.sobre-v2-env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  z-index: 4;
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  filter: drop-shadow(0 5px 6px rgba(0,0,0,0.08));
}
.sobre-v2-env-flap::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f0e8d8;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Flap abierto */
.sobre-v2-overlay.v2-open .sobre-v2-env-flap {
  transform: rotateX(-180deg);
  z-index: 0;
}

/* El overlay completo sube (la "carta" emerge) */
.sobre-v2-overlay.v2-sliding {
  animation: v2-rise 0.7s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes v2-rise {
  to { transform: translateY(-100vh); }
}

/* Sobre decorativo fijo al fondo, aparece tras la animación */
.sobre-v2-deco {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(70px, 11vh, 110px);
  z-index: 50;
  pointer-events: none;
  background: #e8dcc8;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.sobre-v2-deco::before,
.sobre-v2-deco::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: #dfd3bd;
}
.sobre-v2-deco::before {
  left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.sobre-v2-deco::after {
  right: 0;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.sobre-v2-deco.visible {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .sobre-v2-env-flap { transition: none; }
  .sobre-v2-overlay.v2-sliding { animation: none; }
}
