/* ============================================
   BYRE MEDIA - Rediseño Premium 2026
   Agencia de Producción Audiovisual Aérea
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    --bg-deep: #030305;
    --bg-surface: #0a0a0f;
    --bg-surface-elevated: #111116;
    
    --accent-blue: #0070F3;
    --accent-cyan: #00F0FF;
    --accent-purple: #8A2BE2;
    --accent-glow: rgba(0, 112, 243, 0.4);

    --text-primary: #ededed;
    --text-secondary: #888888;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.02);
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

::selection {
    background: var(--accent-blue);
    color: white;
}

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { 
    background: #222; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ---------- UTILITIES: NOISE & GLASS ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glass-nav {
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

/* ---------- BENTO BOX (GLASS CARDS) ---------- */
.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 112, 243, 0.1);
}

/* Glow line effect inside bento box */
.bento-glow-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    z-index: 10;
}

/* ---------- AMBIENT GLOW ORBS ---------- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}
.glow-blue { background: var(--accent-blue); }
.glow-purple { background: var(--accent-purple); }
.glow-cyan { background: var(--accent-cyan); }

/* ---------- ANIMATIONS ---------- */
.gradient-text {
    background: linear-gradient(135deg, white 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-animated {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out infinite 3s; }

/* ---------- BUTTONS ---------- */
.btn-premium {
    position: relative;
    background: linear-gradient(135deg, #111, #000);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
}
.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.btn-premium:hover {
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.3);
}
.btn-premium:hover::before { opacity: 1; }

.btn-primary {
    background: white;
    color: black;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ---------- CUSTOM PHONE MOCKUP (ULTRA MINIMAL) ---------- */
.phone-frame {
    border: 12px solid #1a1a1a;
    border-radius: 40px;
    background: #000;
    box-shadow: 
        inset 0 0 0 2px #000, 
        0 0 0 1px rgba(255,255,255,0.1), 
        0 25px 50px -12px rgba(0,0,0,0.8),
        0 0 40px rgba(0, 112, 243, 0.1);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s var(--ease-out-expo);
}
.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* Hero Image Fade */
.hero-mask {
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}