/* ==========================================================================
   PORTAFOLIO TECNOLÓGICO Y DE IA - LUIS CARRERA ZÚÑIGA
   Diseño de Alta Fidelidad - Estética Cyberpunk Minimalista & Moderna
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO & DE RESET
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: #08090d;
    --bg-card: #12141c;
    --bg-card-hover: #161a26;
    --color-primary: #6366f1; /* Indigo */
    --color-secondary: #00ffcc; /* Cyan Neón */
    --color-text-main: #e2e8f0; /* Slate-200 */
    --color-text-sub: #94a3b8; /* Slate-400 */
    --color-border: rgba(99, 102, 241, 0.15);
    --color-border-hover: rgba(0, 255, 204, 0.35);
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    --glow-shadow-hover: 0 0 30px rgba(0, 255, 204, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* 1.1 ANIMACIÓN DE NAVEGACIÓN Y SCROLLBARS PERSONALIZADOS */
@view-transition {
    navigation: auto;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border: 2px solid var(--bg-dark);
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(99, 102, 241, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

body.tech-theme {
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ocultar elementos de los otros idiomas */
body.lang-es :is(.lang-en, .lang-pt) { display: none !important; }
body.lang-en :is(.lang-es, .lang-pt) { display: none !important; }
body.lang-pt :is(.lang-es, .lang-en) { display: none !important; }

/* --------------------------------------------------------------------------
   2. CANVAS DE RED NEURONAL DINÁMICA
   -------------------------------------------------------------------------- */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
}

/* Fondo de luz suave para mejorar contraste del texto */
body.tech-theme::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(8, 9, 13, 0.4) 0%, rgba(8, 9, 13, 0.95) 75%);
    z-index: -1;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. CABECERA (TECH NAV)
   -------------------------------------------------------------------------- */
.tech-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background-color: rgba(8, 9, 13, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.tech-header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
}

.logo-code {
    font-family: var(--font-mono);
    color: var(--color-secondary);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.logo-text {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--color-text-sub);
    font-weight: 500;
}

.tech-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.tech-nav-link {
    text-decoration: none;
    color: var(--color-text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.tech-nav-link:hover {
    color: var(--color-text-main);
}

.tech-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--color-secondary);
}

.tech-nav-link:hover::after {
    width: 100%;
}

.tech-nav-link.art-link {
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.1);
}

.tech-nav-link.art-link:hover {
    background-color: rgba(0, 255, 204, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.25);
    color: #fff;
}

.tech-nav-link.art-link::after {
    display: none;
}

/* Selector de Idiomas de 3 Estados */
.lang-selector-group {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2px 4px;
}

.lang-select-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-sub);
    background: transparent;
    border: none;
    border-radius: 2px;
    padding: 3px 7px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.lang-select-btn:hover {
    color: var(--color-text-main);
    opacity: 0.8;
}

.lang-select-btn.active {
    color: var(--color-secondary);
    opacity: 1;
    background-color: rgba(0, 255, 204, 0.05);
    border-bottom: 2px solid var(--color-secondary);
    border-radius: 2px 2px 0 0;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.tech-hero {
    min-height: 80vh;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.tech-hero-container {
    max-width: 850px;
    padding: 0 2rem;
    display: flex;
    flex-column: column;
    flex-direction: column;
    align-items: center;
}

.terminal-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-secondary);
    background-color: rgba(0, 255, 204, 0.06);
    border: 1px solid rgba(0, 255, 204, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    display: inline-block;
    letter-spacing: 0.05em;
    position: relative;
}

.terminal-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--color-secondary);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.tech-hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-hero-profile {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--color-secondary);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.25);
    font-weight: 500;
}

.profile-separator {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    font-weight: 300;
}

.tech-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-sub);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.tech-hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.tech-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tech-btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.tech-btn-primary:hover {
    background-color: rgba(99, 102, 241, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.tech-btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.tech-btn-secondary:hover {
    border-color: var(--color-text-main);
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. CONTENEDORES Y ESTRUCTURA DE SECCIÓN
   -------------------------------------------------------------------------- */
.tech-main {
    position: relative;
    z-index: 10;
}

.tech-section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.tech-section-alt {
    background-color: rgba(12, 14, 22, 0.65);
    backdrop-filter: blur(10px);
}

.tech-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tech-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.title-code {
    font-family: var(--font-mono);
    color: var(--color-secondary);
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   6. INVESTIGACIÓN EN IA (TARJETAS DE PAPERS)
   -------------------------------------------------------------------------- */
.paper-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
}

.paper-card.highlight-card {
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.paper-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: var(--glow-shadow-hover);
}

.paper-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.badge-year {
    background-color: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-publisher {
    background-color: rgba(0, 255, 204, 0.08);
    color: var(--color-secondary);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.paper-title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #fff;
}

.paper-authors {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-sub);
    margin-bottom: 1.75rem;
}

.paper-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.paper-summary h4, .paper-tech h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
    margin-bottom: 0.75rem;
}

.paper-summary p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--color-text-sub);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    transition: var(--transition);
}

.tag:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.tag-ai {
    background-color: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.tag-ai:hover {
    background-color: rgba(99, 102, 241, 0.15);
}

.paper-link-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    gap: 0.5rem;
    transition: var(--transition);
}

.paper-link-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. CV GRID (TRAYECTORIA & STACK)
   -------------------------------------------------------------------------- */
.cv-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

/* Línea de tiempo interactiva */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--color-border);
}

.timeline::after {
    content: '';
    position: absolute;
    left: -1px;
    bottom: 0;
    width: 1px;
    height: 10%;
    background: linear-gradient(to bottom, var(--color-border), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 0.3rem;
    width: 11px;
    height: 11px;
    background-color: var(--bg-dark);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px var(--color-secondary);
    transform: scale(1.3);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.1);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* Tarjetas de Habilidades y Filosofía */
.skills-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.skills-card:hover {
    border-color: var(--color-border-hover);
    background-color: var(--bg-card-hover);
}

.skills-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}

.skills-card h3:not(:first-child) {
    margin-top: 2rem;
}

.skills-card .tech-tags {
    gap: 0.6rem;
}

.ai-philosophy-card {
    border-left: 2px solid var(--color-secondary);
    background-color: rgba(0, 255, 204, 0.02);
    padding: 1.75rem;
    border-radius: 0 8px 8px 0;
}

.ai-philosophy-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
    margin-bottom: 0.75rem;
}

.ai-philosophy-card p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-main);
    line-height: 1.7;
}

/* Clases especiales para adaptabilidad y cotítulos de tarjetas */
.lead-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-secondary) !important;
    line-height: 1.5;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.15);
}

.card-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--color-border), transparent);
    margin: 1.25rem 0;
}

.sub-card-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-sub);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Tarjeta de Soluciones Desarrolladas */
.solutions-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    transition: var(--transition);
}

.solutions-card:hover {
    border-color: var(--color-border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: var(--glow-shadow-hover);
}

.solutions-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.solutions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.solutions-list li {
    border-left: 2px solid var(--color-secondary);
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.solutions-list li strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.solutions-list li span {
    color: var(--color-text-sub);
}

/* Tarjeta de Educación */
.education-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    transition: var(--transition);
}

.education-card:hover {
    border-color: var(--color-border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: var(--glow-shadow-hover);
}

.education-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.education-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-list li {
    border-left: 2px solid var(--color-primary);
    padding-left: 1rem;
    position: relative;
}

.edu-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.edu-inst {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    display: block;
}

.edu-title {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    margin-top: 0.1rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.tech-footer {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
    background-color: #050609;
}

.tech-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-sub);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-footer-links {
    display: flex;
    gap: 2rem;
}

.tech-footer-link {
    color: var(--color-text-sub);
    text-decoration: none;
    transition: var(--transition);
}

.tech-footer-link:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.25);
}

/* --------------------------------------------------------------------------
   9. MEDIA QUERIES (DISEÑO RESPONSIVO)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .paper-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tech-header-container {
        padding: 0 1.5rem;
    }
    
    .tech-nav ul {
        gap: 1.25rem;
    }
    
    .tech-nav-link {
        font-size: 0.85rem;
    }
    
    .tech-nav-link.art-link {
        padding: 0.3rem 0.8rem;
    }
    
    .tech-hero {
        min-height: 70vh;
        padding-top: 120px;
    }
    
    .tech-hero-title {
        font-size: 2.75rem;
    }
    
    .tech-hero-profile {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-separator {
        display: none;
    }
    
    .tech-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .tech-section {
        padding: 60px 0;
    }
    
    .tech-section-title {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }
    
    .paper-card {
        padding: 1.75rem;
    }
    
    .paper-title {
        font-size: 1.35rem;
    }
    
    .tech-footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .tech-footer-links {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tech-header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .tech-header {
        height: auto;
    }
    
    .tech-nav ul {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }
    
    .tech-nav-link {
        font-size: 0.8rem;
    }
    
    .tech-nav-link.art-link {
        padding: 0.25rem 0.6rem;
    }
    
    .tech-hero {
        padding-top: 160px;
    }
    
    .tech-hero-title {
        font-size: 2.25rem;
    }
    
    .tech-hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 280px;
    }
    
    .tech-btn {
        width: 100%;
    }
}

/* ==========================================================================
   10. FORMULARIO DE CONTACTO ESTILO EDITOR JSON
   ========================================================================== */
.json-form-container {
    background-color: #0b0d16;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    max-width: 750px;
    margin: 2rem auto 0;
    box-shadow: var(--glow-shadow);
    transition: var(--transition);
}

.json-form-container:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--glow-shadow-hover);
}

/* Cabecera de Ventana tipo IDE */
.json-window-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.json-window-dots {
    display: flex;
    gap: 6px;
}

.json-window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.json-window-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-sub);
    letter-spacing: 0.05em;
}

/* Cuerpo del Editor JSON */
.json-form-body {
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #f8f8f2;
}

.code-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.code-line.align-top {
    align-items: flex-start;
}

.code-line.indent {
    padding-left: 2.25rem;
}

/* Resaltado de Sintaxis JSON (Neon) */
.json-bracket {
    color: #e2e8f0;
}

.json-key {
    color: #f87171;
}

.json-colon {
    color: #e2e8f0;
    margin-right: 0.5rem;
}

.json-quote {
    color: #00ffcc;
}

.json-comma {
    color: #e2e8f0;
}

/* Inputs incrustados en la sintaxis de código */
.json-input {
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(0, 255, 204, 0.3);
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #00ffcc;
    padding: 0 0.25rem;
    flex: 1;
    min-width: 150px;
    transition: var(--transition);
}

.json-input::placeholder {
    color: rgba(0, 255, 204, 0.25);
    font-size: 0.85rem;
}

.json-input:focus {
    border-bottom-style: solid;
    border-bottom-color: var(--color-secondary);
    background-color: rgba(0, 255, 204, 0.03);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.json-textarea {
    height: 90px;
    resize: none;
    line-height: 1.4;
    padding-top: 0.25rem;
}

.json-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2300ffcc' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    background-size: 1rem;
    padding-right: 1.5rem;
}

.json-select option {
    background-color: #0b0d16;
    color: #00ffcc;
}

/* Botón Boolean como Enviar */
.json-boolean-btn {
    background: transparent;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.15rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: var(--transition);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.4);
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.15);
}

.json-boolean-btn:hover {
    background-color: var(--color-secondary);
    color: #08090d;
    box-shadow: 0 0 15px var(--color-secondary);
    transform: scale(1.05);
}

/* Terminal de Respuesta de Consola */
.console-response {
    background-color: #05060b;
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    animation: fadeIn 0.4s ease-out;
}

.console-line {
    margin-bottom: 0.5rem;
}

.line-info {
    color: #6366f1;
}

.line-success {
    color: var(--color-secondary);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Adaptación móvil del editor */
@media (max-width: 768px) {
    .json-form-body {
        padding: 1.25rem;
        font-size: 0.85rem;
    }
    .code-line.indent {
        padding-left: 1rem;
    }
    .json-input {
        width: 100%;
        margin-top: 0.25rem;
        border-bottom-style: solid;
    }
}

