/* =============================================
   Invitación Boda Civil - Diseño WOW / Cósmico
   Turquesa · Blanco · Rosado · Fucsia · Gris
   ============================================= */

:root {
    --turquesa: #1ed0d5;
    --turquesa-dark: #11b5b0;
    --turquesa-light: rgba(30, 208, 213, 0.15);
    --rosado: #ff6eb4;
    --rosado-dark: #e0559a;
    --rosado-light: rgba(255, 110, 180, 0.15);
    --fucsia: #d946ef;
    --blanco: #ffffff;
    --gris-claro: #f0f0f8;
    --gris: #8b8ba3;
    --gris-oscuro: #535454;
    --texto: #e8e8f0;
    --cosmos-bg: #0a0a1a;
    --sombra: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glow-turquesa: 0 0 30px rgba(30, 208, 213, 0.5);
    --glow-rosado: 0 0 40px rgba(255, 110, 180, 0.4);
    --radio: 20px;
    --transicion: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--texto);
    background: var(--cosmos-bg);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(217, 70, 239, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(30, 208, 213, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 110, 180, 0.08) 0%, transparent 60%);
}

/* Partículas canvas — visible detrás del carrusel y secciones */
.particles-layer {
    position: fixed;
    inset: 0;
    z-index: 35;
    pointer-events: none;
    opacity: 1;
    contain: strict;
}

.particles-layer.particles-hidden {
    visibility: hidden;
    opacity: 0;
}

/* Loader */
.loader-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--cosmos-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-heart {
    font-size: 3rem;
    color: var(--rosado);
    animation: heartbeat 1s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); filter: drop-shadow(var(--glow-rosado)); }
}

/* ===== PANTALLA DE ENTRADA ===== */
.entry-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(217, 70, 239, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 208, 213, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(255, 110, 180, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 50%, #0a1628 100%);
    animation: auroraShift 8s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(20deg); }
}

.cosmic-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb 12s ease-in-out infinite;
}

.orb-1 {
    width: 380px; height: 380px;
    background: var(--fucsia);
    opacity: 0.55;
    top: 10%; left: 10%;
}

.orb-2 {
    width: 480px; height: 480px;
    background: var(--turquesa);
    opacity: 0.45;
    bottom: 10%; right: 5%;
    animation-delay: -4s;
}

.orb-3 {
    width: 320px; height: 320px;
    background: var(--rosado);
    opacity: 0.5;
    top: 50%; left: 50%;
    animation-delay: -8s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

.entry-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.entry-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 280px; height: 280px;
    border: 1px solid rgba(255, 110, 180, 0.3);
    border-radius: 50%;
    animation: ringPulse 3s ease infinite;
}

.entry-ring-2 {
    width: 340px; height: 340px;
    border-color: rgba(30, 208, 213, 0.2);
    animation-delay: -1.5s;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.entry-sub {
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--turquesa);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.entry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    font-weight: 600;
    color: var(--blanco);
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.entry-date {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.entry-btn {
    background: linear-gradient(135deg, var(--turquesa), var(--fucsia));
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transicion);
    animation: fadeInUp 1s ease 0.8s both;
    box-shadow: var(--glow-turquesa), var(--glow-rosado);
}

.entry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(30, 208, 213, 0.6), 0 0 60px rgba(217, 70, 239, 0.4);
}

.pulse-btn { animation: fadeInUp 1s ease 0.8s both, pulseGlow 2s ease infinite 1.5s; }

@keyframes pulseGlow {
    0%, 100% { box-shadow: var(--glow-turquesa); }
    50% { box-shadow: 0 0 60px rgba(255, 110, 180, 0.6); }
}

.entry-hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    animation: fadeInUp 1s ease 1s both;
}

.entry-fade-leave-active { transition: opacity 1s ease, transform 1s ease; }
.entry-fade-leave-to { opacity: 0; transform: scale(1.05); }

/* Glow text */
.glow-text {
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.35),
        0 0 40px rgba(30, 208, 213, 0.45),
        0 0 60px rgba(255, 110, 180, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.85);
}

.glow-text-sm {
    text-shadow:
        0 0 15px rgba(30, 208, 213, 0.5),
        0 1px 6px rgba(0, 0, 0, 0.75);
}

/* Main content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
    position: relative;
    z-index: 40;
}

.main-content.app-visible {
    opacity: 1;
}

/* Música flotante */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(30, 208, 213, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transicion);
    box-shadow: var(--glow-turquesa);
}

.music-toggle:hover {
    background: var(--turquesa);
    transform: scale(1.1);
}

/* ===== HERO / CARRUSEL ===== */
.hero-section {
    position: relative;
    width: 100%;
    background: transparent;
    contain: layout style;
}

.hero-glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.75), transparent);
    z-index: 2;
    pointer-events: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    max-height: 900px;
    overflow: hidden;
    perspective: 1400px;
    contain: layout style paint;
    perspective-origin: 50% 45%;
    background: transparent;
}

/* Capas de efecto detrás del carrusel */
.hero-effects-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 25%, rgba(217, 70, 239, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 88% 70%, rgba(30, 208, 213, 0.25) 0%, transparent 48%),
        radial-gradient(ellipse at 50% 45%, rgba(255, 110, 180, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 15%, rgba(30, 208, 213, 0.15) 0%, transparent 40%);
    animation: heroBgPulse 9s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    0% { opacity: 0.85; filter: hue-rotate(0deg); }
    100% { opacity: 1; filter: hue-rotate(12deg); }
}

.hero-starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 25% 65%, rgba(30, 208, 213, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 40% 15%, rgba(255, 110, 180, 0.85), transparent),
        radial-gradient(1px 1px at 55% 80%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 70% 35%, rgba(217, 70, 239, 0.8), transparent),
        radial-gradient(1px 1px at 85% 55%, rgba(30, 208, 213, 0.75), transparent),
        radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 92% 12%, rgba(255, 110, 180, 0.7), transparent);
    background-size: 100% 100%;
    animation: starfieldTwinkle 6s ease-in-out infinite alternate;
}

@keyframes starfieldTwinkle {
    0% { opacity: 0.4; }
    100% { opacity: 0.75; }
}

/* Orbes ambientales detrás del carrusel */
.carousel-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: floatOrb 10s ease-in-out infinite;
}

.ambient-orb-1 {
    width: 420px; height: 420px;
    background: var(--fucsia);
    opacity: 0.6;
    top: 0; left: -8%;
}

.ambient-orb-2 {
    width: 520px; height: 520px;
    background: var(--turquesa);
    opacity: 0.5;
    bottom: -5%; right: -10%;
    animation-delay: -3s;
}

.ambient-orb-3 {
    width: 360px; height: 360px;
    background: var(--rosado);
    opacity: 0.55;
    top: 35%; left: 50%;
    animation-delay: -6s;
}

.ambient-orb-4 {
    width: 280px; height: 280px;
    background: var(--turquesa);
    opacity: 0.45;
    top: 60%; left: 5%;
    animation-delay: -2s;
}

.ambient-orb-5 {
    width: 340px; height: 340px;
    background: var(--fucsia);
    opacity: 0.4;
    top: 10%; right: 15%;
    animation-delay: -5s;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Escena 3D de la foto */
.carousel-3d-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    z-index: 1;
}

.carousel-photo-frame {
    position: relative;
    width: min(90vw, 920px);
    height: min(68vh, 640px);
    transform-style: preserve-3d;
    animation: floatFrame3d 7s ease-in-out infinite;
}

@keyframes floatFrame3d {
    0%, 100% { transform: translateY(0) rotateX(6deg) rotateY(-4deg); }
    33% { transform: translateY(-12px) rotateX(4deg) rotateY(5deg); }
    66% { transform: translateY(8px) rotateX(8deg) rotateY(-2deg); }
}

.carousel-photo-tilt {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.carousel-photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    transform: translateZ(60px);
    background: #0a0a1a;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.75),
        0 0 80px rgba(30, 208, 213, 0.35),
        0 0 120px rgba(255, 110, 180, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #0a0a1a;
}

.carousel-media-3d {
    transform-origin: center center;
    animation: kenBurns3d ease-out forwards;
    will-change: transform;
}

@keyframes kenBurns3d {
    0% {
        transform: scale(1) translateZ(0) rotate(0deg);
    }
    100% {
        transform: scale(1.14) translateZ(25px) rotate(0.5deg);
    }
}

.carousel-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 42%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.08) 58%,
        transparent 70%
    );
    background-size: 250% 100%;
    animation: shineSweep 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shineSweep {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -100% 0; }
}

.carousel-frame-glow {
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--turquesa), var(--rosado), var(--fucsia));
    opacity: 0.35;
    z-index: -1;
    filter: blur(12px);
    animation: frameGlowPulse 3s ease-in-out infinite;
}

@keyframes frameGlowPulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

.carousel-photo-shadow {
    position: absolute;
    bottom: -18%;
    left: 8%;
    right: 8%;
    height: 22%;
    background: radial-gradient(ellipse, rgba(30, 208, 213, 0.25) 0%, transparent 70%);
    transform: rotateX(75deg) translateZ(-30px);
    filter: blur(20px);
    opacity: 0.7;
    pointer-events: none;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 0.02) 0%,
        rgba(10, 10, 26, 0.12) 40%,
        rgba(10, 10, 26, 0.45) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.carousel-overlay-light {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 26, 0.02) 0%,
        rgba(10, 10, 26, 0.2) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--blanco);
    z-index: 110;
    width: 90%;
    max-width: 800px;
    padding: 1.25rem 1.5rem;
    background: radial-gradient(ellipse at center, rgba(10, 10, 26, 0.72) 0%, transparent 75%);
    border-radius: 24px;
}

.hero-subtitle {
    font-weight: 300;
    font-size: clamp(0.8rem, 2vw, 1rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--turquesa);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-date { font-size: clamp(1rem, 2.5vw, 1.3rem); opacity: 0.85; }

.carousel-indicators-custom {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 110;
}

.indicator-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transicion);
    padding: 0;
}

.indicator-dot.active,
.indicator-dot:hover {
    background: var(--turquesa);
    border-color: var(--turquesa);
    box-shadow: var(--glow-turquesa);
    transform: scale(1.3);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicion);
    font-size: 1.3rem;
}

.carousel-nav:hover {
    background: var(--turquesa);
    box-shadow: var(--glow-turquesa);
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

.scroll-indicator {
    position: fixed;
    bottom: 32px;
    left: 28px;
    z-index: 160;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: rgba(10, 10, 26, 0.72);
    backdrop-filter: blur(14px);
    border: 2px solid rgba(30, 208, 213, 0.55);
    border-radius: 999px;
    cursor: pointer;
    color: #ffffff;
    padding: 0.85rem 1.15rem 0.75rem;
    transition: var(--transicion);
    box-shadow:
        0 0 24px rgba(30, 208, 213, 0.45),
        0 8px 32px rgba(0, 0, 0, 0.45);
    animation: scrollHintPulse 2.2s ease-in-out infinite;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 2px solid rgba(255, 110, 180, 0.35);
    animation: scrollRingPulse 2.2s ease-in-out infinite;
    pointer-events: none;
}

.scroll-indicator:hover {
    color: var(--turquesa);
    border-color: var(--turquesa);
    transform: translateY(3px) scale(1.04);
    box-shadow:
        0 0 36px rgba(30, 208, 213, 0.65),
        0 12px 40px rgba(0, 0, 0, 0.5);
}

.scroll-indicator-text {
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 1;
    text-shadow: 0 0 12px rgba(30, 208, 213, 0.6);
}

.scroll-indicator-arrow {
    font-size: 2.2rem;
    line-height: 1;
    animation: scrollBounce 1.4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(30, 208, 213, 0.8));
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.9; }
    50% { transform: translateY(12px); opacity: 1; }
}

@keyframes scrollHintPulse {
    0%, 100% {
        box-shadow:
            0 0 24px rgba(30, 208, 213, 0.45),
            0 8px 32px rgba(0, 0, 0, 0.45);
    }
    50% {
        box-shadow:
            0 0 40px rgba(255, 110, 180, 0.5),
            0 0 50px rgba(30, 208, 213, 0.55),
            0 12px 36px rgba(0, 0, 0, 0.5);
    }
}

@keyframes scrollRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

/* Mensaje del momento en carrusel */
.carousel-mensaje {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    text-align: center;
    width: 90%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 26, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radio);
    animation: fadeInUp 0.8s ease;
}

.carousel-momento-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--turquesa);
    margin-bottom: 0.35rem;
}

.carousel-momento-texto {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-style: italic;
}

.fade-slide-enter-active,
.fade-slide-leave-active {
    transition: opacity 0.5s ease;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fade-slide-enter-from,
.fade-slide-leave-to {
    opacity: 0;
}

/* ===== SECCIONES ===== */
.event-details {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.35) 0%, rgba(18, 18, 42, 0.4) 50%, rgba(26, 10, 46, 0.45) 100%);
    position: relative;
    z-index: 60;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--blanco);
    margin-bottom: 1rem;
    position: relative;
    z-index: 62;
}

.section-text {
    color: var(--gris);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 62;
}

.section-divider { margin-bottom: 1.5rem; }

.divider-spark {
    font-size: 1.8rem;
    color: var(--fucsia);
    animation: sparkle 2s ease infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Glass cards — por encima de las partículas */
.glass-card {
    position: relative;
    z-index: 65;
    background: rgba(10, 10, 26, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radio);
    transition: var(--transicion);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(30, 208, 213, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--glow-turquesa);
}

.detail-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
}

.detail-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--turquesa), var(--fucsia));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: var(--glow-turquesa);
}

.detail-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--blanco);
    margin-bottom: 0.5rem;
}

.detail-card p { color: var(--gris); margin-bottom: 0.25rem; }
.detail-card small { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* Tarjeta confirmación — enlace al buscador */
.detail-card-action {
    border: none;
    cursor: pointer;
    text-align: center;
    color: inherit;
    font: inherit;
    display: block;
}

.detail-card-action:hover {
    border-color: rgba(30, 208, 213, 0.5);
}

.detail-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    background: rgba(30, 208, 213, 0.15);
    border: 1px solid rgba(30, 208, 213, 0.35);
    color: var(--turquesa);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transicion);
}

.detail-card-action:hover .detail-card-cta {
    background: var(--turquesa);
    color: #fff;
    box-shadow: var(--glow-turquesa);
}

/* Tarjeta lugar — enlace a Google Maps */
.detail-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.detail-card-link:hover {
    border-color: rgba(30, 208, 213, 0.5);
    transform: translateY(-6px);
    box-shadow: var(--glow-turquesa);
}

.detail-maps-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    background: rgba(30, 208, 213, 0.15);
    border: 1px solid rgba(30, 208, 213, 0.35);
    color: var(--turquesa);
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-card-link:hover .detail-maps-cta {
    background: var(--turquesa);
    color: #fff;
}

html.is-mobile .detail-card-link:hover {
    transform: none;
}

/* Banner búsqueda de nombre */
.buscar-nombre-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radio);
    background: linear-gradient(135deg, rgba(30, 208, 213, 0.18), rgba(217, 70, 239, 0.12));
    border: 2px solid rgba(30, 208, 213, 0.35);
    box-shadow: 0 0 30px rgba(30, 208, 213, 0.15);
    position: relative;
    z-index: 65;
    animation: buscarBannerPulse 3s ease-in-out infinite;
}

@keyframes buscarBannerPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(30, 208, 213, 0.15); }
    50% { box-shadow: 0 0 45px rgba(255, 110, 180, 0.25); }
}

.buscar-nombre-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--turquesa), var(--fucsia));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--glow-turquesa);
}

.buscar-nombre-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--blanco);
    margin-bottom: 0.2rem;
}

.buscar-nombre-texto {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin: 0;
}

#buscar-invitado {
    scroll-margin-top: 24px;
}

.search-box-prominent {
    position: relative;
    z-index: 65;
}

.search-box-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--turquesa);
    margin-bottom: 0.65rem;
    letter-spacing: 0.02em;
}

.search-box-prominent .input-group {
    border: 2px solid rgba(30, 208, 213, 0.4);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(30, 208, 213, 0.12);
    transition: var(--transicion);
}

.search-box-prominent .input-group:focus-within {
    border-color: var(--turquesa);
    box-shadow: 0 0 32px rgba(30, 208, 213, 0.3);
}

/* ===== RSVP (dentro de Detalles del evento) ===== */
.rsvp-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(26, 10, 46, 0.4) 0%, rgba(10, 10, 26, 0.45) 100%);
    position: relative;
    z-index: 60;
}

.rsvp-card {
    position: relative;
    z-index: 65;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--turquesa), var(--fucsia), var(--rosado)) 1;
}

/* Guía para invitados */
.guia-invitado {
    position: relative;
    z-index: 65;
    background: rgba(30, 208, 213, 0.12);
    border: 1px solid rgba(30, 208, 213, 0.2);
    border-radius: var(--radio);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.guia-titulo {
    font-weight: 600;
    color: var(--turquesa);
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.guia-titulo i { margin-right: 0.4rem; }

.guia-pasos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guia-pasos li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.guia-pasos li span {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--turquesa), var(--fucsia));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.guia-pasos li strong { color: var(--turquesa); }

@media (max-width: 575.98px) {
    .guia-pasos li { font-size: 0.85rem; }
}

.search-box .input-group-text {
    background: rgba(30, 208, 213, 0.15);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
    color: var(--turquesa);
}

.search-box .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    color: var(--blanco);
    padding: 0.85rem 1rem;
}

.search-box .form-control::placeholder { color: rgba(255,255,255,0.3); }
.search-box .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--turquesa);
    box-shadow: 0 0 0 3px rgba(30, 208, 213, 0.15);
    color: white;
}

.btn-clear {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    color: var(--gris);
}

.search-loading {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    color: var(--gris);
}

.results-list {
    list-style: none;
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radio);
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
}

.result-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: var(--transicion);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--blanco);
}

.result-item:hover { background: rgba(30, 208, 213, 0.1); }

.result-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-confirmed { font-size: 0.75rem; color: var(--turquesa); }

.no-results { text-align: center; color: var(--gris); padding: 1.5rem; }

.selected-guest {
    background: rgba(255, 110, 180, 0.1);
    border: 1px solid rgba(255, 110, 180, 0.2);
    border-radius: var(--radio);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--blanco);
    margin-bottom: 1.25rem;
}

.selected-guest i { color: var(--rosado); font-size: 1.3rem; }

.btn-group-asistencia { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn-asistencia {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radio);
    background: rgba(255,255,255,0.05);
    color: var(--gris);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transicion);
}

.btn-asistencia:hover { border-color: var(--turquesa); color: var(--turquesa); }
.btn-asistencia.active { background: var(--turquesa); border-color: var(--turquesa); color: white; box-shadow: var(--glow-turquesa); }
.btn-asistencia.decline.active { background: var(--rosado); border-color: var(--rosado); box-shadow: var(--glow-rosado); }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--turquesa), var(--turquesa-dark));
    border: none;
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transicion);
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-turquesa);
}

.btn-primary-custom:disabled { opacity: 0.5; }

.btn-outline-custom {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--gris);
    background: transparent;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    transition: var(--transicion);
}

.btn-outline-custom:hover {
    border-color: var(--turquesa);
    color: var(--turquesa);
}

.form-label { color: rgba(255,255,255,0.7); font-weight: 500; font-size: 0.9rem; }

.form-select, .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--blanco);
    border-radius: 12px;
}

.form-select:focus, .form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--turquesa);
    box-shadow: 0 0 0 3px rgba(30, 208, 213, 0.15);
    color: white;
}

.form-select option { background: #1a1a2e; color: white; }

.success-message { text-align: center; padding: 2rem 1rem; }

.success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rosado), var(--fucsia));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.25rem;
    animation: heartbeat 1.5s ease infinite;
    box-shadow: var(--glow-rosado);
}

.success-message h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--blanco);
    margin-bottom: 0.5rem;
}

.success-message p { color: var(--gris); }

/* Footer */
.footer-section {
    background: rgba(0, 0, 0, 0.35);
    padding: 3rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 60;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--blanco);
    margin-bottom: 0.25rem;
}

.footer-date { font-size: 0.9rem; color: var(--gris); margin-bottom: 0.75rem; }
.footer-hearts { color: var(--rosado); font-size: 1.3rem; }

/* Transiciones */
.slide-up-enter-active, .slide-up-leave-active { transition: all 0.4s ease; }
.slide-up-enter-from, .slide-up-leave-to { opacity: 0; transform: translateY(20px); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Foto invitación — miniatura fija superior izquierda */
.foto-invitacion {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 5100;
    pointer-events: none;
}

.foto-invitacion-frame {
    width: 118px;
    height: 118px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(30, 208, 213, 0.4),
        0 0 48px rgba(255, 110, 180, 0.25);
    background: #0a0a1a;
    animation: fotoInvitacionFloat 5s ease-in-out infinite;
}

.foto-invitacion-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.foto-invitacion-badge {
    position: absolute;
    bottom: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--turquesa), var(--rosado));
    color: white;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@keyframes fotoInvitacionFloat {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-5px); }
}

.carousel-slide-empty {
    position: absolute;
    inset: 0;
    background: transparent;
}

/* Responsive */
@media (max-width: 767.98px) {
    .foto-invitacion {
        top: 14px;
        left: 14px;
    }
    .foto-invitacion-frame {
        width: 86px;
        height: 86px;
        border-radius: 12px;
    }
    .foto-invitacion-badge {
        width: 20px;
        height: 20px;
        font-size: 0.5rem;
        bottom: 5px;
        right: 5px;
    }
    .carousel-container { height: 75vh; min-height: 420px; }
    .carousel-photo-frame {
        width: min(94vw, 920px);
        height: min(58vh, 520px);
    }
    .carousel-photo-inner { transform: none; }
    .carousel-nav { width: 40px; height: 40px; }
    .carousel-nav.prev { left: 10px; }
    .carousel-nav.next { right: 10px; }
    .entry-ring { width: 220px; height: 220px; }
    .entry-ring-2 { width: 270px; height: 270px; }
    .btn-group-asistencia { flex-direction: column; }
    .music-toggle { bottom: 16px; right: 16px; width: 46px; height: 46px; }
    .scroll-indicator {
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.75rem 1.25rem 0.65rem;
    }
    .scroll-indicator:hover {
        transform: translateX(-50%) translateY(3px) scale(1.04);
    }
    .buscar-nombre-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.15rem;
    }
    .event-details { padding: 3rem 0; }
}

@media (max-width: 575.98px) {
    .carousel-container { height: 70vh; min-height: 380px; }
    .hero-content { bottom: 22%; }
}

/* ===== OPTIMIZACIÓN MÓVIL — fluidez ===== */
html.is-mobile .hero-starfield,
html.is-mobile .ambient-orb-4,
html.is-mobile .ambient-orb-5,
html.reduce-motion .hero-starfield {
    display: none !important;
}

html.is-mobile .carousel-container {
    perspective: none;
}

html.is-mobile .carousel-photo-frame {
    animation: none !important;
    transform: none !important;
}

html.is-mobile .carousel-photo-tilt {
    transform: none !important;
    transition: none !important;
}

html.is-mobile .carousel-media-3d {
    animation: none !important;
    transform: none !important;
    will-change: auto;
}

html.is-mobile .carousel-shine,
html.is-mobile .carousel-frame-glow,
html.is-mobile .carousel-photo-shadow {
    display: none !important;
}

html.is-mobile .carousel-photo-inner {
    transform: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 208, 213, 0.2);
}

html.is-mobile .hero-effects-bg {
    animation: none;
    opacity: 0.7;
}

html.is-mobile .ambient-orb {
    filter: blur(40px);
}

html.is-mobile .orb {
    filter: blur(35px);
}

html.is-mobile .aurora-bg {
    animation: none;
}

html.is-mobile .entry-ring,
html.is-mobile .entry-ring-2 {
    animation: none;
}

html.is-mobile .foto-invitacion-frame {
    animation: none !important;
}

html.is-mobile .scroll-indicator::before {
    display: none;
}

html.is-mobile .scroll-indicator {
    animation: scrollBounce 1.4s ease-in-out infinite;
}

html.is-mobile .buscar-nombre-banner {
    animation: none;
}

html.is-mobile .glass-card,
html.is-mobile .music-toggle,
html.is-mobile .carousel-nav,
html.is-mobile .carousel-mensaje,
html.is-mobile .hero-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.is-mobile .detail-card-action:hover,
html.is-mobile .glass-card:hover {
    transform: none;
}

html.is-mobile .pulse-btn {
    animation: fadeInUp 1s ease 0.8s both !important;
}

html.is-mobile * {
    -webkit-tap-highlight-color: transparent;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

html.is-mobile .event-details,
html.is-mobile .footer-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

html.is-mobile .cosmic-orbs .orb-3 {
    display: none;
}

/* Dispositivos con CPU/RAM limitada */
html.is-lite .hero-effects-bg,
html.is-lite .hero-starfield,
html.is-lite .carousel-shine,
html.is-lite .carousel-frame-glow,
html.is-lite .carousel-photo-shadow,
html.is-lite .ambient-orb-3,
html.is-lite .ambient-orb-4,
html.is-lite .ambient-orb-5 {
    display: none !important;
}

html.is-lite .carousel-media-3d {
    animation: none !important;
    will-change: auto;
}

html.is-lite .ambient-orb {
    filter: blur(45px);
    animation-duration: 14s;
}

html.is-lite .hero-effects-bg {
    animation: none;
}

.event-details,
.footer-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.results-list::-webkit-scrollbar { width: 4px; }
.results-list::-webkit-scrollbar-thumb { background: var(--turquesa); border-radius: 2px; }

.spinner-border { color: var(--turquesa) !important; }
