/* Nystrix Studio - Custom Styles */

:root {
    --ny-blue: #008eef;
    --ny-magenta: #e500e0;
    --ny-yellow: #ffce00;
    --ny-dark: #0a0a0f;
    --ny-gray: #f4f4f4;
    --surface: #fcf8fa;
    --on-surface: #1b1b1d;
    --on-surface-variant: #45464d;
    --outline-variant: #c6c6cd;
    --glass-bg: rgba(252, 248, 250, 0.85);
}

.dark {
    --surface: #0a0a0f;
    --on-surface: #f4f4f4;
    --on-surface-variant: #c6c6cd;
    --outline-variant: #45464d;
    --glass-bg: rgba(10, 10, 15, 0.85);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(198, 198, 205, 0.1);
}

.soft-shadow {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* Parallax Infinite Background */
@keyframes parallax-bg {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.bg-parallax-elegant {
    background-size: 200% 200%;
    animation: parallax-bg 30s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes bounce-custom {
    0%, 100% { 
        transform: translateY(-20px); 
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1); 
    }
    50% { 
        transform: translateY(0); 
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 
    }
}

.animate-bounce {
    animation: bounce-custom 1s infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

@keyframes float-horizontal {
    from { transform: translateX(-100%) translateY(0); }
    to { transform: translateX(100vw) translateY(10px); }
}

.hero-elevation {
    transform: translateY(-20px);
}

/* Newsletter Glow */
#newsletter form input {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transition: box-shadow 0.3s ease;
}

#newsletter form input:focus {
    box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.1);
}

.btn-notify-pulse {
    animation: pulse-blue-soft 2s infinite;
}

@keyframes pulse-blue-soft {
    0% { box-shadow: 0 0 0 0 rgba(0, 142, 239, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 142, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 142, 239, 0); }
}

.soft-shadow-lg {
    box-shadow: 0 25px 80px -20px rgba(0, 142, 239, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, var(--ny-blue), var(--ny-magenta), var(--ny-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-outline-white {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    color: transparent;
}

.italic-outline {
    -webkit-text-stroke: 2px currentColor;
    color: transparent;
    font-style: italic;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Infinite Scroll Carousel */
@keyframes infinite-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% / 2)); }
}

.animate-infinite-scroll {
    animation: infinite-scroll 40s linear infinite;
    width: max-content;
}

.animate-infinite-scroll-fast {
    animation: infinite-scroll 20s linear infinite;
    width: max-content;
}

/* Floating Interactive Bubbles */
.floating-bubble {
    animation: bubble-float 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.floating-bubble:hover {
    transform: scale(1.1) translateY(-10px) rotate(-5deg) !important;
    z-index: 50;
}

/* Glass Metallic Cards */
.card-metallic {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.dark .card-metallic {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.05);
}

/* Animated Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--ny-blue), var(--ny-magenta), var(--ny-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding-right: 0.1em;
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Loader Styles */
.loader-ball {
}

#nystrix-loader {
    pointer-events: none;
    user-select: none;
}

#nystrix-loader.opacity-0 {
    display: none;
}

/* Counter styles */
.counter {
    display: inline-block;
}

/* Reveal refinement */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-float-up {
    animation: floatUp 4s ease-in-out infinite;
}

/* Glass panel refinement */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(198, 198, 205, 0.1);
    transition: background 0.3s ease;
}

/* Hero Section Adjustments */
.bg-parallax-elegant {
    background: radial-gradient(circle at top right, rgba(0, 142, 239, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(229, 0, 224, 0.1), transparent);
    background-size: 200% 200%;
}

/* 3D Card Flip Effect */
.card-flip-container {
    perspective: 2000px;
    height: 360px; /* Reducido para formato 4:5 más compacto */
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efecto elástico premium */
    transform-style: preserve-3d;
}

.card-flip-container:hover .card-flip-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    inset: 0; /* Asegura que cubran exactamente el mismo espacio */
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
    box-shadow: 0 15px 35px -12px rgba(0,0,0,0.12);
}

.card-front {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(240,242,245,1) 100%);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    z-index: 2;
    transition: all 0.5s ease;
}

.dark .card-front {
    background: linear-gradient(135deg, rgba(20,20,25,1) 0%, rgba(10,10,15,1) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}

.card-back {
    background: #000;
    transform: rotateY(180deg);
    z-index: 1;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    transition: transform 1.5s ease;
}

.card-flip-container:hover .card-back img {
    transform: scale(1.1);
}

.card-back-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

/* Premium Metallic Card Effect (Refined for Exact Alignment) */
.card-metallic {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem; /* rounded-3xl fallback */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .card-metallic {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-metallic::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, 
                rgba(255,255,255,0.15) 0%, 
                transparent 50%, 
                rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-flip-container:hover .card-metallic {
    border-color: transparent;
}

/* Typography Overrides */
h1, h2, h3, h4, .font-display {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

body, .font-body {
    font-family: 'Inter', sans-serif;
}
