@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;900&display=swap');

:root {
    --primary: #000000;
    --accent: #e11d48; 
    --menu-bg: #e11d48;
    --menu-text: #ffffff;
}

body {
    background-color: var(--primary);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* Loader Estilo Jaeco */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5vw;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

#loader-progress {
    font-size: clamp(8rem, 25vw, 30rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: #fff;
    margin-bottom: -2vw;
    margin-left: -1vw;
}

.loader-status {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.loader-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.2);
    position: absolute;
    bottom: 0;
    left: 0;
}
#loader-fill {
    width: 0%;
    height: 100%;
    background: #fff;
}

/* Navegación */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 90px;
    mix-blend-mode: difference;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

nav.nav-scrolled {
    mix-blend-mode: normal;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 75px;
}

@media (min-width: 768px) {
    nav { padding: 0 40px; }
}

.logo-nortency {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1.5px;
    text-transform: lowercase;
    color: white;
}
.logo-nortency span { color: var(--accent); }

/* Hamburguesa */
.menu-toggle {
    cursor: pointer;
    z-index: 2100;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    width: 40px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.close-btn {
    display: none;
    background: white;
    color: var(--accent);
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 2px;
}

body.menu-open .hamburger { display: none; }
body.menu-open .close-btn { display: block; }

/* Audio Visualizer - RESTAURADO */
.wave-container {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    width: 16px;
}

.wave-bar {
    width: 2px;
    height: 100%;
    background: white;
    transform-origin: bottom;
}

.wave-active .wave-bar {
    animation: wave-animation 0.6s infinite ease-in-out alternate;
}

@keyframes wave-animation {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* Menu Overlay */
#menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--menu-bg);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    clip-path: circle(0% at 95% 5%);
    transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}

#menu-overlay.active {
    clip-path: circle(150% at 95% 5%);
}

.menu-scroll-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 140px 5vw 60px;
}

.menu-link {
    font-size: clamp(3rem, 10vw, 12rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.85;
    color: #ffffff !important;
    letter-spacing: -0.05em;
    transition: transform 0.4s ease, opacity 0.3s ease;
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
}

.menu-link:hover {
    opacity: 0.5;
    transform: skewX(-4deg) translateX(30px);
}

/* Secciones */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 20px 10vh;
}

.hero-title {
    font-size: clamp(3.5rem, 16vw, 18rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.75;
    text-transform: uppercase;
}

/* Proyectos con Efecto */
.project-card {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.project-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), filter 1s ease;
}

.project-card:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px;
    background: rgba(255,255,255,0.1);
}

.service-item {
    background: #000;
    padding: 60px 40px;
    transition: background 0.4s ease;
}

.service-item:hover { background: var(--accent); }

.service-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
}

/* Planes */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--accent);
}

.plan-price { font-size: 3.5rem; font-weight: 900; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-live { background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.status-off { background: #555; }

#cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}