:root {
    --bg-dark: #0a0a0c;
    --card-bg: #131316;
    --cyan: #00f0ff;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #0a0a0c;
    background-image: url('imagenes/fondo-portatil.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(to bottom, rgba(10,10,12,0.8), rgba(10,10,12,0));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}
.logo {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.2rem;
}
.logo .highlight {
    color: var(--cyan);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}
.nav-item:hover {
    color: var(--text-main);
}
.btn-primary {
    background-color: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-primary:hover {
    background-color: var(--cyan);
    color: #000;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr; 
    align-items: center;
    padding: 0 50px;
    min-height: 100dvh; 
    padding-top: 40px; 
    gap: 20px;
}
.hero-text-side {
    z-index: 10;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--cyan);
    margin-bottom: 20px;
}
.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
}
.hero-text-side h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}
.gradient-text {
    background: linear-gradient(45deg, #ffffff, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
    display: inline-block; 
}
.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.mini-console {
    background-color: var(--card-bg);
    border: 1px solid #222;
    border-radius: 6px;
    overflow: hidden;
    max-width: 320px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.console-header {
    background-color: #1a1a1e;
    padding: 8px;
    display: flex;
    gap: 5px;
}
.c-dot { width: 8px; height: 8px; border-radius: 50%; }
.r { background-color: #ff5f56; }
.y { background-color: #ffbd2e; }
.g { background-color: #27c93f; }
.console-body {
    padding: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #00ff66;
    min-height: 70px;
    line-height: 1.4;
}
.interactive-viewer {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none; 
    touch-action: pan-y;
    background: transparent;
}
.reveal-layer {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    clip-path: circle(0px at 0px 0px);
    transition: clip-path 0.04s ease-out;
    background: transparent;
}
.ripple-ring {
    position: absolute;
    width: 180px;   
    height: 180px;
    border: none;
    background: radial-gradient(circle closest-side,
        rgba(0,240,255,0) 65%,
        rgba(0,240,255,0.2) 72%,
        rgba(0,240,255,0.6) 82%,
        rgba(0,240,255,0.9) 90%,
        rgba(0,240,255,1) 96%,
        rgba(0,240,255,0) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.12s ease-out, opacity 0.3s;
    opacity: 0;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.4);
}
.interactive-viewer.active .ripple-ring {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.hero-info-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 60vh;
    z-index: 10;
}
.contenedor-logo-flotante {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
    align-self: center;
    transform: translate(-40px, -60px);
}
.logo-recortado {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255, 51, 68, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.info-card {
    background-color: rgba(19, 19, 22, 0.6);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}
.info-card h3 {
    color: var(--cyan);
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}
.arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    color: var(--cyan);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}
@media (max-width: 1024px) {
    .navbar { 
        padding: 16px 20px; 
    }
    .nav-links {
        gap: 15px; 
    }
    .hero-container { 
        grid-template-columns: 1fr; 
        height: auto; 
        padding: 100px 20px; 
    }
    .interactive-viewer { 
        height: 40vh; 
    }
    .hero-info-side { 
        height: auto; 
        gap: 40px; 
    }
    .contenedor-logo-flotante {
        align-self: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .arrow {
        animation: none;
    }
    .reveal-layer {
        transition: none;
    }
    .ripple-ring {
        transition: none;
    }
}
@media (max-width: 1024px) {
    .navbar { 
        padding: 16px 20px; 
    }
    .nav-links {
        gap: 15px; 
    }
    .hero-container { 
        display: flex;
        flex-direction: column;
        padding: 100px 20px; 
        gap: 30px;
    }
    .hero-info-side { 
        order: 1;
        height: auto; 
        gap: 20px;
        display: flex;
        flex-direction: column;
    }
    .contenedor-logo-flotante {
        align-self: center;
        transform: none !important;
        max-width: 200px;
        margin-bottom: 10px;
    }
    .hero-text-side {
        order: 2;
    }
    .info-card {
        order: 3;
    }
    .interactive-viewer { 
        order: 4;
        height: 35vh; 
        margin-top: 20px;
    }
    .mini-console {
        max-width: 100%;
    }
}