/* Configuración de Tailwind */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Fuentes personalizadas */
.font-monoton {
    font-family: 'Monoton', cursive;
    font-weight: normal;
    font-style: normal;
}

.font-orbitron {
    font-family: 'Orbitron', monospace;
    font-weight: 400;
}

@font-face {
  font-family: 'RetroStereoWide';
  src: url('fonts/RetroStereoWide.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-retrostereo {
  font-family: 'RetroStereoWide', 'Orbitron', Arial, sans-serif;
  letter-spacing: 0.08em;
  font-weight: normal;
  font-style: normal;
  text-transform: uppercase;
}

/* Variables de paleta con rosa neón real para títulos */
:root {
    --neon-pink: #FF5CFF; /* rosa neón legible */
    --neon-green: #BFBFBF; /* neutralizado */
    --neon-cyan: #E6E6E6; /* blanco tenue */
    --neon-purple: #8A8A8A; /* gris medio */
    --neon-orange: #D0D0D0; /* gris claro */
    --neon-yellow: #F2F2F2; /* casi blanco */
}

/* Efectos de texto neón - Versión mejorada para mejor legibilidad */
.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 
        0 0 2px var(--neon-pink),
        0 0 6px rgba(255,255,255,0.35),
        0 0 12px rgba(255,255,255,0.22);
    animation: neon-flicker-subtle 1.5s infinite alternate;
    font-weight: 700;
}

.neon-text-green {
    color: var(--neon-green);
    text-shadow: 
        0 0 2px var(--neon-green),
        0 0 6px rgba(255,255,255,0.25);
    animation: neon-flicker-subtle 1.8s infinite alternate;
    font-weight: 700;
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 
        0 0 2px var(--neon-cyan),
        0 0 6px rgba(255,255,255,0.3);
    animation: neon-flicker-subtle 1.2s infinite alternate;
    font-weight: 700;
}

.neon-text-yellow {
    color: var(--neon-yellow);
    text-shadow: 
        0 0 2px var(--neon-yellow),
        0 0 4px var(--neon-yellow),
        0 0 6px var(--neon-yellow),
        0 0 8px rgba(255, 255, 0, 0.8);
    animation: neon-flicker-subtle 1.6s infinite alternate;
    font-weight: 700;
}

/* Efectos alternativos más sutiles para mejor legibilidad */
.neon-text-pink-subtle {
    color: var(--neon-pink);
    text-shadow: 
        0 0 1px var(--neon-pink),
        0 0 2px var(--neon-pink),
        0 0 3px rgba(255, 92, 255, 0.6);
    font-weight: 600;
}

.neon-text-green-subtle {
    color: var(--neon-green);
    text-shadow: 
        0 0 1px var(--neon-green),
        0 0 2px var(--neon-green),
        0 0 3px rgba(57, 255, 20, 0.6);
    font-weight: 600;
}

.neon-text-cyan-subtle {
    color: var(--neon-cyan);
    text-shadow: 
        0 0 1px var(--neon-cyan),
        0 0 2px var(--neon-cyan),
        0 0 3px rgba(0, 255, 255, 0.6);
    font-weight: 600;
}

/* Animación de parpadeo neón - Versión sutil */
@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Nueva animación más sutil para mejor legibilidad */
@keyframes neon-flicker-subtle {
    0%, 100% {
        text-shadow: none;
    }
    50% {
        text-shadow: 
            0 0 2px currentColor,
            0 0 4px currentColor,
            0 0 6px currentColor,
            0 0 8px rgba(255, 255, 255, 0.3);
    }
}

/* Botón neón con efecto retro arcade */
.neon-button {
    box-shadow: 
        0 0 5px var(--neon-pink),
        0 0 10px var(--neon-pink),
        0 0 15px var(--neon-pink),
        inset 0 0 5px rgba(255, 92, 255, 0.3);
    animation: button-glow 2s infinite alternate;
    position: relative;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-pink),
        inset 0 0 10px rgba(255, 92, 255, 0.5);
}

@keyframes button-glow {
    0% {
        box-shadow: 
            0 0 5px var(--neon-pink),
            0 0 10px var(--neon-pink),
            0 0 15px var(--neon-pink),
            inset 0 0 5px rgba(255, 92, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 30px var(--neon-pink),
            inset 0 0 10px rgba(255, 92, 255, 0.5);
    }
}

/* Elementos decorativos de fondo */
.disco-ball {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff 0%, #ccc 30%, #999 70%, #666 100%);
    border-radius: 50%;
    animation: disco-spin 4s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes disco-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.neon-lights {
    position: absolute;
    top: 20%;
    left: 5%;
    width: 50px;
    height: 200px;
    background: linear-gradient(to bottom, var(--neon-pink), var(--neon-cyan), var(--neon-green));
    border-radius: 25px;
    animation: neon-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 92, 255, 0.8);
}

@keyframes neon-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.cassette-tape {
    position: absolute;
    bottom: 15%;
    left: 15%;
    width: 80px;
    height: 50px;
    background: linear-gradient(45deg, #333, #666, #999);
    border-radius: 8px;
    animation: cassette-bounce 2s ease-in-out infinite;
}

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

.skateboard {
    position: absolute;
    bottom: 25%;
    right: 20%;
    width: 120px;
    height: 20px;
    background: linear-gradient(90deg, var(--neon-orange), var(--neon-yellow));
    border-radius: 10px;
    animation: skate-roll 3s linear infinite;
}

@keyframes skate-roll {
    0% { transform: translateX(-100px) rotate(0deg); }
    100% { transform: translateX(100px) rotate(360deg); }
}

/* Indicador de scroll */
.scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--neon-cyan);
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

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

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Tarjetas de información del evento */
.event-info-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.event-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    border-color: var(--neon-pink);
}

/* Contenedor del mapa */
.map-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-green);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.map-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border-radius: 10px;
    border: 2px dashed var(--neon-green);
}

/* Moodboard */
.moodboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.moodboard-item {
    transition: transform 0.3s ease;
}

.moodboard-item:hover {
    transform: scale(1.05);
}

.moodboard-placeholder {
    height: 200px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.moodboard-placeholder:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

/* Contador regresivo */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-pink);
    border-radius: 15px;
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(255, 92, 255, 0.4);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 92, 255, 0.6);
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    color: var(--neon-pink);
    text-shadow: 0 0 4px var(--neon-pink);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 1.2rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ícono de regalo */
.gift-icon {
    font-size: 8rem;
    animation: gift-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--neon-green));
}

@keyframes gift-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(2deg);
}

.gallery-placeholder {
    height: 250px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.gallery-placeholder:hover::before {
    left: 100%;
}

.gallery-placeholder:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    transform: translateY(-10px);
}

/* Formulario RSVP - Asegurar interactividad completa */
#rsvp-form {
    position: relative;
    z-index: 20 !important;
    pointer-events: auto !important;
}

#rsvp-form input[type="text"],
#rsvp-form textarea {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 25 !important;
}

#rsvp-form input[type="text"]:focus,
#rsvp-form textarea:focus {
    box-shadow: 0 0 20px rgba(255, 92, 255, 0.6);
    transform: scale(1.02);
}

#rsvp-form input[type="radio"] {
    accent-color: var(--neon-pink);
    transform: scale(1.2);
    pointer-events: auto !important;
    position: relative;
    z-index: 25 !important;
}

#rsvp-form label {
    pointer-events: auto !important;
    position: relative;
    z-index: 25 !important;
}

#rsvp-form button {
    pointer-events: auto !important;
    position: relative;
    z-index: 25 !important;
}

/* Estados del botón RSVP */
#rsvp-submit-btn {
    transition: all 0.3s ease;
}

#rsvp-submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Botón cuando está completo (todos los campos llenos) */
#rsvp-submit-btn.complete {
    background: linear-gradient(135deg, #FF5CFF, #00FFFF);
    color: white;
    box-shadow: 0 0 20px rgba(255, 92, 255, 0.5);
}

#rsvp-submit-btn.complete:hover {
    background: linear-gradient(135deg, #FF7CFF, #20FFFF);
    box-shadow: 0 0 30px rgba(255, 92, 255, 0.7);
}

/* Botón cuando está enviando */
#rsvp-submit-btn.sending {
    background: #666;
    color: #ccc;
    cursor: not-allowed;
}

/* Animación del spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Mensaje de éxito */
#success-message {
    animation: success-fade-in 0.5s ease-in-out;
}

@keyframes success-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .moodboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .disco-ball,
    .neon-lights,
    .cassette-tape,
    .skateboard {
        display: none;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        grid-template-columns: 1fr;
    }
    
    .moodboard-grid {
        grid-template-columns: 1fr;
    }
    
    .gift-icon {
        font-size: 5rem;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Botones del gate de música (estilo sobrio) */
.walkman-btn {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.28);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.walkman-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* Variante sutil rosa y opaca para el botón Sí */
.walkman-btn--yes {
    background: rgba(255, 92, 255, 0.14);
    border-color: rgba(255, 92, 255, 0.35);
}
.walkman-btn--yes:hover {
    background: rgba(255, 92, 255, 0.2);
}

/* Control global audio bottom-right (sobrio) */
#global-audio-toggle {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    color: #EEE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#global-audio-toggle:hover {
    transform: translateY(-1px);
    background: rgba(0,0,0,0.7);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.global-audio-icon {
    font-size: 18px;
    line-height: 1;
}

/* Título del gate más legible */
#music-gate h1 {
    letter-spacing: 0.12em;
    line-height: 1.25;
}

/* Evitar scroll horizontal y ocultar barras de scroll */
html, body {
    overflow-x: hidden;
}
/* Ocultar scrollbar manteniendo scroll vertical */
body {
    scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Efectos de entrada */
@keyframes fade-in-up {
    from {
        opacity: 0.2;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* section {
    animation: fade-in-up 0.5s ease-out;
} */

/* Efecto de partículas de fondo */
@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Cursor personalizado */
body {
    cursor: url('pointer-rotated.png') 16 16, auto;
}

/* Fallbacks para diferentes elementos */
a, button, input[type="submit"], input[type="button"], .clickable {
    cursor: url('pointer-rotated.png') 16 16, pointer;
}

input[type="text"], input[type="email"], textarea, input[type="password"] {
    cursor: url('pointer-rotated.png') 16 16, text;
}

/* Elementos retro flotantes */
.retro-floating-item {
    position: absolute;
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 1;
    animation: float-retro 6s ease-in-out infinite;
    filter: drop-shadow(0 0 26px rgba(255, 92, 255, 0.6));
}

.retro-floating-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Cassette más grande */
.retro-item-1 {
    width: 450px;
    height: 450px;
}

@keyframes float-retro {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) rotate(5deg);
    }
    50% {
        transform: translateY(-12px) rotate(-4deg);
    }
    75% {
        transform: translateY(-30px) rotate(4deg);
    }
}

/* Posiciones específicas para cada elemento - distribuidos por toda la página */
.retro-item-1 { top: 180vh; left: -100px; animation-delay: 0s; } /* Entre hero y hero-banner */
.retro-item-2 { top: 280vh; right: -55px; animation-delay: 1s; } /* En hero-banner */
.retro-item-3 { top: 420vh; left: -45px; animation-delay: 2s; } /* En event-details */
.retro-item-4 { top: 520vh; right: -40px; animation-delay: 3s; } /* En countdown */
.retro-item-5 { top: 580vh; left: -40px; animation-delay: 4s; } /* En countdown */
.retro-item-6 { top: 650vh; right: -45px; animation-delay: 5s; } /* En personal-message */
.retro-item-7 { top: 720vh; left: -45px; animation-delay: 6s; } /* En personal-message */
.retro-item-8 { top: 800vh; right: -40px; animation-delay: 7s; } /* En rsvp */

/* Responsive para mobile */
@media (max-width: 768px) {
    .retro-floating-item {
        width: 150px;
        height: 150px;
        opacity: 0.6;
    }
    
    .retro-item-1 {
        top: 160vh;
        left: -20px;
        width: 200px;
        height: 200px;
    }
    .retro-item-2 { top: 260vh; right: -16px; }
    .retro-item-3 { top: 380vh; left: -18px; }
    .retro-item-4 { top: 480vh; right: -16px; }
    .retro-item-5 { top: 540vh; left: -18px; }
    .retro-item-6 { top: 600vh; right: -16px; }
    .retro-item-7 { top: 660vh; left: -18px; }
    .retro-item-8 { top: 740vh; right: -16px; }
}



/* Efecto de selección de texto */
::selection {
    background: var(--neon-pink);
    color: white;
}

::-moz-selection {
    background: var(--neon-pink);
    color: white;
} 

/* Fondo cuadrícula retro ochentera para Hero */
.hero-retro-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        /* Cuadrícula */
        repeating-linear-gradient(to right, rgba(255,255,255,0.08) 0 2px, transparent 2px 80px),
        repeating-linear-gradient(to top, rgba(255,255,255,0.08) 0 2px, transparent 2px 80px),
        /* Perspectiva */
        linear-gradient(to top, rgba(13,13,13,1) 0%, rgba(13,13,13,0.7) 40%, rgba(13,13,13,0.2) 80%, transparent 100%),
        /* Degradado radial para el desvanecido */
        radial-gradient(ellipse at center, rgba(80,0,120,0.7) 0%, rgba(13,13,13,1) 100%);
    background-size:
        80px 80px,
        80px 80px,
        100% 100%,
        100% 100%;
    background-position:
        0 60%,
        0 60%,
        0 0,
        0 0;
    background-repeat: repeat, repeat, no-repeat, no-repeat;
    pointer-events: none;
}

@media (max-width: 768px) {
  .hero-retro-bg {
    background-size:
      40px 40px,
      40px 40px,
      100% 100%,
      100% 100%;
    background-position:
      0 70%,
      0 70%,
      0 0,
      0 0;
  }
} 

/* Animación para brillitos grandes en el Hero */
.brillo-animado {
  transform-box: fill-box;
  transform-origin: center;
  animation: brillo-flotante 12s ease-in-out infinite alternate;
}
.brillo-2 { animation-delay: 0.7s; }
.brillo-3 { animation-delay: 1.2s; }
.brillo-4 { animation-delay: 1.8s; }
.brillo-5 { animation-delay: 2.3s; }
.brillo-6 { animation-delay: 2.9s; }
.brillo-7 { animation-delay: 3.5s; }
.brillo-8 { animation-delay: 4.1s; }
.brillo-9 { animation-delay: 4.7s; }
.brillo-10 { animation-delay: 5.3s; }
.brillo-11 { animation-delay: 5.9s; }
.brillo-12 { animation-delay: 6.5s; }
.brillo-13 { animation-delay: 7.1s; }
.brillo-14 { animation-delay: 7.7s; }

@keyframes brillo-flotante {
  0%   { transform: translate(0px, 0px) scale(1); }
  20%  { transform: translate(10px, -14px) scale(1.12); }
  40%  { transform: translate(-8px, 8px) scale(0.93); }
  60%  { transform: translate(12px, 13px) scale(1.09); }
  80%  { transform: translate(-10px, -8px) scale(1.05); }
  100% { transform: translate(0px, 0px) scale(1); }
} 

/* Fondo ochentero reutilizable para secciones (sin cuadrícula) */
.retro-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.06) 0%, #0d0d0d 80%, #000 100%),
        linear-gradient(to bottom, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.7) 80%, transparent 100%);
}

/* Brillitos decorativos para fondo de sección */
.section-brillitos {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Glow fuerte para títulos principales */
.retro-title-glow {
    text-shadow:
        0 0 10px rgba(255,255,255,0.4),
        0 0 26px rgba(255,255,255,0.22),
        0 0 52px rgba(255,255,255,0.12);
    animation: neon-flicker 2.5s infinite alternate;
}

/* Glow tenue para títulos del countdown */
.retro-title-glow-subtle {
    color: #FFE6FF;
    text-shadow: none;
    animation: neon-flicker-subtle 1.5s infinite alternate;
}

@keyframes neon-flicker-reverse {
    0%, 85% {
        text-shadow: none;
    }
    90%, 95% {
        text-shadow:
            0 0 0.3px #FF5CFF,
            0 0 0.8px #A7FFFF,
            0 0 1.5px #FF5CFF11;
    }
    100% {
        text-shadow: none;
    }
}

/* Glow fuerte para subtítulos */
.retro-subtitle-glow {
    text-shadow:
        0 0 6px rgba(255,255,255,0.28),
        0 0 16px rgba(255,255,255,0.18);
    animation: neon-flicker-subtle 2.2s infinite alternate;
}

/* Rosa neón legible para títulos de secciones (h2, h3) */
section h2,
section h3,
.section-title {
    color: var(--neon-pink);
    text-shadow:
        0 0 4px rgba(255, 92, 255, 0.55),
        0 0 10px rgba(255, 92, 255, 0.35),
        0 2px 14px rgba(0, 0, 0, 0.5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tarjetas ochenteras */
.retro-card {
    background: linear-gradient(135deg, rgba(30,0,50,0.85) 0%, rgba(0,0,0,0.7) 100%);
    border: 2.5px solid #9e9e9e;
    border-radius: 18px;
    box-shadow: 0 0 24px rgba(255,255,255,0.16), 0 0 48px rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
}
.retro-card:hover {
    box-shadow: 0 0 40px rgba(255,255,255,0.24), 0 0 80px rgba(255,255,255,0.14);
    border-color: #C0C0C0;
}

/* Inputs y textarea ochenteros */
.retro-input {
    background: rgba(0,0,0,0.7);
    border: 2px solid #9e9e9e;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 12px #FF5CFF44;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.retro-input:focus {
    border-color: #C0C0C0;
    box-shadow: 0 0 24px rgba(255,255,255,0.28);
}

/* Botón ochentero extra glow */
.retro-btn {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), var(--neon-green));
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(255,255,255,0.24), 0 0 32px rgba(255,255,255,0.16);
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    letter-spacing: 2px;
    transition: all 0.2s;
    animation: button-glow 2.2s infinite alternate;
}
.retro-btn:hover {
    box-shadow: 0 0 32px rgba(255,255,255,0.3), 0 0 64px rgba(255,255,255,0.2);
    background: linear-gradient(90deg, #f0f0f0, #cfcfcf, #e6e6e6);
    transform: scale(1.06) translateY(-2px);
} 

/* === Retro clásico (años 50-60) para secciones secundarias === */
.retro-classic-section {
  background: #23243a;
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.retro-classic-section.alt {
  background: #2d1e3a;
}
.retro-classic-title {
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #A7FFFF;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}
.retro-classic-subtitle {
  font-size: 1.1rem;
  color: #8A2BE2;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
}
.retro-classic-card {
  background: #181828;
  border: 1.5px solid #00FFFF;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px #0004;
  margin-bottom: 2rem;
  text-align: center;
}
.retro-classic-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #FF5CFF 0%, #00FFFF 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 8px #00FFFF44;
}
.retro-classic-banner {
  display: inline-block;
  background: #FF6B35;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3em 1.2em;
  border-radius: 8px;
  margin: 0.5em auto 1.5em auto;
  letter-spacing: 0.08em;
}
.retro-classic-btn {
  background: #00FFFF;
  color: #23243a;
  border: none;
  border-radius: 8px;
  padding: 0.8em 2em;
  font-size: 1.1rem;
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 1.2em;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #00FFFF44;
}
.retro-classic-btn:hover {
  background: #FF5CFF;
  color: #fff;
}
.retro-classic-divider {
  width: 80px;
  height: 4px;
  background: #FF6B35;
  border-radius: 2px;
  margin: 1.5em auto 2em auto;
} 

/* Filtro CRT/Glitch para imágenes ochenteras */
.filter-crt {
  filter: contrast(1.2) brightness(0.9) grayscale(0.08) saturate(1.2) drop-shadow(0 0 8px #00FFFF88);
  position: relative;
}
.filter-crt::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 4px);
  mix-blend-mode: screen;
}

/* Animación de glitch en títulos */
.glitch {
  position: relative;
  color: #fff;
  animation: glitch-skew 1.2s infinite linear alternate-reverse;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  color: #FF5CFF;
  z-index: 1;
  opacity: 0.7;
}
.glitch::after {
  color: #00FFFF;
  z-index: 2;
  opacity: 0.5;
  left: 2px;
  top: 2px;
}
@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(2deg, 1deg); }
  40% { transform: skew(-2deg, -1deg); }
  60% { transform: skew(1deg, -2deg); }
  80% { transform: skew(-1deg, 2deg); }
  100% { transform: skew(0deg); }
}

/* Animación de escaneo láser en cards/botones */
.laser-scan {
  position: relative;
  overflow: hidden;
}
.laser-scan::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, #00FFFF44 80%, transparent 100%);
  animation: laser-scan-move 2.5s infinite linear;
  pointer-events: none;
}
@keyframes laser-scan-move {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Animación spin lenta */
.animate-spin-slow {
  animation: disco-spin 8s linear infinite;
}

/* Parpadeo neón en íconos */
.neon-flicker-icon {
  animation: neon-flicker 2.5s infinite alternate;
}

/* Nuevo diseño responsive del countdown */
.countdown-grid {
    display: grid;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.countdown-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

/* Efectos de glow para hover */
.hover\:glow-pink:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.25), 0 0 40px rgba(255,255,255,0.15);
    border-color: #C0C0C0;
}

.hover\:glow-cyan:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.25), 0 0 40px rgba(255,255,255,0.15);
    border-color: #C0C0C0;
}

.countdown-number-new {
    display: block;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label-new {
    display: block;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Nueva animación del regalo con glow rosa */
.gift-icon-new {
    animation: gift-bounce-new 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 92, 255, 0.6));
}

@keyframes gift-bounce-new {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 92, 255, 0.6));
    }
    25% { 
        transform: translateY(-8px) rotate(3deg);
        filter: drop-shadow(0 0 15px rgba(255, 92, 255, 0.8));
    }
    75% { 
        transform: translateY(-4px) rotate(-2deg);
        filter: drop-shadow(0 0 12px rgba(255, 92, 255, 0.7));
    }
} 

/* Suave vaivén vertical para elementos destacados */
@keyframes bob-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-bob-slow {
  animation: bob-slow 3.5s ease-in-out infinite;
}

/* Host para posicionar polaroids */
.polaroid-host {
  position: relative;
  overflow: visible;
  z-index: 2; /* eleva toda la tarjeta para que la polaroid no quede debajo de otras */
}

/* Asegurar que la sección RSVP sea completamente interactiva */
section#rsvp {
  pointer-events: auto !important;
}

section#rsvp .container {
  pointer-events: auto !important;
  position: relative;
  z-index: 15 !important;
}

/* Contenedor de polaroid: marco blanco, sombra y pequeño borde inferior extra */
.polaroid {
  position: absolute;
  width: 140px;
  background: #fff;
  padding: 8px 8px 20px 8px; /* espacio extra abajo típico de polaroid */
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25);
  z-index: 5;
}
.polaroid img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 3px;
}

/* Pin redondo arriba simulando tachuela */
.polaroid-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #C0C0C0, #A0A0A0);
  border: 2px solid #808080;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  z-index: 6;
}

/* Posiciones por card */
.polaroid-bottom-left { bottom: -35px; left: -18px; }
.polaroid-bottom-right { bottom: -35px; right: -18px; }
.polaroid-top-left { top: -18px; left: -18px; }
.polaroid-top-right { top: -18px; right: -18px; }

@media (max-width: 768px) {
  .polaroid { width: 110px; }
  .polaroid img { height: 110px; }
}


/* Tamaños y separación más sutiles para flotantes locales */
section#countdown .retro-floating-item,
section#personal-message .retro-floating-item {
  opacity: 0.65;
}