/* --- CONFIGURACIÓN DE INTERFAZ TELEVISORES VIRTUAL --- */
:root {
    --bg-black: #050507;          /* Negro OLED absoluto */
    --surface-dark: #0f1015;      /* Gris de laboratorio técnico */
    --neon-cyan: #00f0ff;         /* Cian eléctrico de frecuencia */
    --text-pure: #ffffff;
    --text-dim: #626875;          /* Gris de datos de telemetría */
    --border-cyan: rgba(0, 240, 255, 0.2);
    --font-mono: 'Share Tech Mono', monospace;
    --font-tech: 'Orbitron', sans-serif;
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-pure);
    font-family: var(--font-tech);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- MARCOS ESTRUCTURALES DE LA PANTALLA --- */
.frame-border {
    position: fixed;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--neon-cyan);
    z-index: 1001;
    opacity: 0.7;
}
.frame-border.top { top: 0; }
.frame-border.bottom { bottom: 0; }

/* --- NAVEGACIÓN DE INTERFAZ (CYBER-NAV) --- */
.cyber-nav {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.9);
    border-bottom: 1px solid var(--border-cyan);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 6%;
    z-index: 1000;
}

.nav-brand-code {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.nav-brand-code span {
    color: var(--neon-cyan);
}

.nav-control-panel {
    display: flex;
    gap: 25px;
}

.control-trigger {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-trigger:hover {
    color: var(--text-pure);
}

.action-trigger {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 18px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-trigger:hover {
    background: var(--neon-cyan);
    color: var(--bg-black);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* --- CONTENEDOR DE PANELES --- */
.viewport-wrapper {
    padding-top: 84px;
}

.screen-panel {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 60px 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- HERO --- */
.hero-fluid {
    background: radial-gradient(circle at 80% 50%, #0d1e2b 0%, var(--bg-black) 70%);
}

.matrix-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.matrix-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.matrix-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-pure);
}

.matrix-description {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 40px;
}

.terminal-btn {
    background: var(--text-pure);
    color: var(--bg-black);
    border: none;
    padding: 15px 35px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.terminal-btn:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* --- GRID DE MATRIZ --- */
.catalog-fluid {
    background: white;
    color: var(--bg-black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.catalog-header-clean {
    margin-bottom: 50px;
}

.catalog-header-clean h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.catalog-header-clean p {
    font-family: var(--font-mono);
    color: #555c66;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.tech-card {
    height: 460px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #e1e4e8;
    display: flex;
    align-items: flex-end;
    transition: var(--transition-fast);
}

.card-glass-overlay {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e1e4e8;
    padding: 35px;
    transform: translateY(75px);
    transition: var(--transition-fast);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--bg-black);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.tech-card:hover .card-glass-overlay {
    transform: translateY(0);
}

.card-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #707580;
    display: block;
    margin-bottom: 5px;
}

.card-glass-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-glass-overlay p {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: #484f5c;
    line-height: 1.6;
    margin-bottom: 25px;
}

.card-btn-link {
    background: transparent;
    border: none;
    color: var(--bg-black);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
}

/* --- HISTORIA DE TELEMETRÍA --- */
.history-fluid {
    background: var(--surface-dark);
}

.history-grid-split {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.history-visual-frame {
    flex: 1;
    border: 1px solid var(--border-cyan);
    padding: 10px;
    background: var(--bg-black);
}

.history-visual-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(30%);
}

.history-data-log {
    flex: 1.2;
}

.log-line {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 15px;
}

.history-data-log h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.history-data-log p {
    font-family: var(--font-mono);
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}

.telemetry-row {
    display: flex;
    gap: 50px;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.data-num {
    font-size: 1.8rem;
    color: var(--text-pure);
    display: block;
}

.data-lbl {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* --- MODAL DE TERMINAL TÉCNICA --- */
.terminal-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
}

.terminal-box-inner {
    background: var(--bg-black);
    max-width: 500px;
    margin: 10% auto;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.terminal-header {
    background: #0f1015;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-cyan);
    display: flex;
    align-items: center;
}

.terminal-header .dot {
    width: 8px;
    height: 8px;
    background: #272935;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.terminal-title-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    margin-left: 10px;
    flex-grow: 1;
}

.close-terminal {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-dim);
}

.close-terminal:hover { color: var(--text-pure); }

.terminal-body {
    padding: 35px;
    font-family: var(--font-mono);
}

.status-msg {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.status-sub {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1a1c24;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.prompt {
    color: var(--neon-cyan);
    margin-right: 10px;
    font-size: 0.9rem;
}

.terminal-input-row input {
    background: transparent;
    border: none;
    color: var(--text-pure);
    font-family: var(--font-mono);
    width: 100%;
    font-size: 0.9rem;
}

.terminal-input-row input:focus { outline: none; }

.terminal-submit-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--text-pure);
    color: var(--text-pure);
    padding: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 10px;
}

.terminal-submit-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.02);
}

@media (max-width: 900px) {
    .matrix-title { font-size: 2.3rem; }
    .history-grid-split { flex-direction: column; gap: 40px; }
    .cyber-nav { padding: 15px 5%; }
}