/* Variables CSS */
:root {
    --primary-font: 'Inter', sans-serif;
    --mono-font: 'Space Mono', monospace;
    --font-weight-black: 900;
    --letter-spacing: -0.04em;
    
    --color-black: #000000;
    --color-gray: #666666;
    --color-gray-dark: #444444;
    --color-gray-light: #999999;
    --color-white: #ffffff;
    --color-bg: #f5f5f5;
    --color-yellow: #96918c;
    
    --mobile-padding: 16px;
    --tablet-padding: 24px;
    --desktop-padding: 32px;
    
    --baseline-position: 20px;
    
    /* NUEVAS VARIABLES PARA TIPOGRAFÍA DESKTOP */
    --desktop-line-height: 1.1;
    --desktop-paragraph-spacing: 8px;
    --menu-baseline: 1.1;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #efefef;
}

body {
    font-family: var(--primary-font);
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    background: #efefef;
    color: var(--color-black);
    line-height: 1.2;
}

/* CLASES DE VISIBILIDAD RESPONSIVA */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* NAVBAR MÓVIL */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #efefef;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--mobile-padding);
}

.navbar-title {
    font-size: 18px;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.11;
    text-transform: lowercase;
    cursor: pointer;
}

.navbar-menu {
    font-size: 18px;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.11;
    text-transform: lowercase;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* LAYOUT PRINCIPAL */
.main-layout {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* SIDEBAR - CONFIGURACIÓN BASE */
.sidebar {
    background: var(--color-yellow);
    padding: var(--mobile-padding);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 60px;
}

/* SIDEBAR HEADER - SOLO DESKTOP */
.sidebar-header {
    display: none;
}

.site-title {
    font-size: 18px;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.11;
    text-transform: lowercase;
    cursor: pointer;
    margin-bottom: 40px;
}

.sidebar-nav {
    margin-top: var(--baseline-position);
    text-align: left;
}

.sidebar-item {
    display: block;
    background: none;
    border: none;
    font-family: var(--primary-font);
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.1;
    text-transform: lowercase;
    text-align: left;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    transition: opacity 0.6s ease-out;
    width: 100%;
    opacity: 0;
}

.sidebar-item.active {
    opacity: 1;
}

.sidebar-gap {
    height: 20px;
}

.sidebar-item.visible {
    opacity: 1;
}

/* MICRODATOS UNIFICADOS */
.microdata-container {
    margin-bottom: 20px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.microdata-container.visible {
    opacity: 1;
}

.microdata-technical {
    font-family: var(--primary-font);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.microdata-readings {
    margin-top: 2px;
}

.microdata-line {
    margin-bottom: 0px;
    font-weight: 600;
    text-align: left;
}

.microdata-line span {
    font-weight: 600;
}

/* ÁREA DE CONTENIDO */
.content-area {
    background: #efefef;
    padding: var(--mobile-padding);
    padding-top: 60px;
    overflow-y: auto;
    position: relative;
}

/* CONTENT BLOCKS - ESTRUCTURA DESKTOP */
.content-block {
    max-width: none;
    margin: 0;
}

.text-block {
    margin-bottom: 40px;
}

.image-full {
    margin-bottom: 40px;
}

.image-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* MICRODATOS EN HOME - SOLO MÓVIL */
.home-microdata {
    position: fixed;
    bottom: var(--mobile-padding);
    right: var(--mobile-padding);
    opacity: 1;
    z-index: 100;
}

.section {
    display: none;
    padding-top: 0;
}

.section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.1;
    text-transform: lowercase;
    text-align: left;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: var(--font-weight-black);
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    text-transform: none;
    margin-bottom: 0;
    margin-top: -16px;
}

.section-tagline {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    text-transform: none;
    opacity: 0.6;
    margin-top: 2px;
    margin-bottom: 24px;
}

/* Pie de foto */
.photo-caption {
    font-family: var(--primary-font);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
    margin-top: 6px;
}

/* Imágenes */
.section-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-image:hover {
    transform: scale(1.02);
}

/* Contenido de texto */
.text-content {
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.3;
    margin-top: calc(var(--baseline-position) + 40px);
    padding-bottom: 40px;
}

.text-content p,
.text-block p {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.4;
}

/* EMAIL EN CONTACTO */
.email-contact {
    font-size: 24px !important;
    font-weight: var(--font-weight-black) !important;
    text-transform: lowercase !important;
    margin-bottom: 32px !important;
}

.call-to-action p {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

/* =================================
   DRONE DEL RÍO — TE STYLE
   ================================= */

/* Sección radio fija, sin scroll */
#radio.active {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#radio .content-block {
    overflow: hidden;
    padding-bottom: 0;
}

.drone-te {
    background: #efefef;
    border-radius: 0;
    padding: 20px 16px 24px;
    position: relative;
}

/* Header */
.te-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.te-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.te-title {
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #000;
    text-transform: uppercase;
}

.te-status {
    font-family: var(--mono-font);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #aaa;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.te-status.active {
    color: #000;
}

.te-led {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.3s, box-shadow 0.3s;
}

.te-status.active .te-led {
    background: #000;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.te-master-btn {
    font-family: var(--mono-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #aaa;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 6px 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.te-master-btn:hover {
    border-color: #000;
    color: #000;
}

.te-master-btn.active {
    background: #000;
    border-color: #000;
    color: #efefef;
}

/* Faders row */
.te-faders-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 0;
    padding: 0 4px;
}

.te-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 10px;
}

/* Fader wrap — contenedor redondeado, sin línea vertical */
.te-fader-wrap {
    height: 150px;
    width: 44px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(150, 145, 140, 0.1);
    border: 1px solid rgba(150, 145, 140, 0.18);
}

/* Fill sube desde abajo proporcional al valor */
.te-track-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: var(--ch-color, #96918c);
    opacity: 0.35;
    transition: height 0.05s linear;
}

/* Range input — invisible, cubre todo el contenedor */
.te-fader {
    position: absolute;
    width: 150px;
    height: 44px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    z-index: 2;
}

.te-fader::-webkit-slider-runnable-track {
    background: transparent;
    height: 44px;
    border: none;
}

.te-fader::-moz-range-track {
    background: transparent;
    height: 44px;
    border: none;
}

/* Thumb — línea horizontal solamente, sin vertical */
.te-fader::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 3px;
    height: 36px;
    background: var(--ch-color, #96918c);
    border: none;
    border-radius: 2px;
    margin-top: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.te-fader::-webkit-slider-thumb:hover {
    opacity: 0.7;
}

.te-fader::-moz-range-thumb {
    width: 3px;
    height: 36px;
    background: var(--ch-color, #96918c);
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.te-freq {
    font-family: var(--mono-font);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #bbb;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s;
}

.te-channel.active .te-freq {
    color: var(--ch-color, #000);
}

/* Circles row */
.te-circles-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 20px 4px 0;
    gap: 8px;
}

.te-circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* Staggered offsets */
.te-offset-0 { margin-top: 0px; }
.te-offset-1 { margin-top: 18px; }
.te-offset-2 { margin-top: 6px; }
.te-offset-3 { margin-top: 26px; }

.te-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.te-circle::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #e8e8e8;
    transition: background 0.25s, box-shadow 0.25s;
}

.te-circle:hover {
    border-color: var(--ch-color, #000);
}

.te-circle:hover::after {
    background: #ddd;
}

.te-circle.active {
    border-color: var(--ch-color, #000);
}

.te-circle.active::after {
    background: var(--ch-color, #000);
    box-shadow: 0 0 12px color-mix(in srgb, var(--ch-color, #000) 40%, transparent);
}

@keyframes tePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.te-circle.active {
    animation: tePulse 3s ease-in-out infinite;
}

.te-circle-label {
    font-family: var(--mono-font);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #bbb;
    text-transform: uppercase;
    transition: color 0.3s;
}

.te-circle-wrap:has(.te-circle.active) .te-circle-label {
    color: var(--ch-color, #000);
}

/* =================================
   HARMONY SYNTHESIZER STYLES - NORDIC MINIMAL (legacy, hidden)
   ================================= */

.drone-synthesizer.harmony {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.synth-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-direction: column;
    gap: 8px;
}

.harmony .synth-title {
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.harmony .synth-status {
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 400;
    color: #6c757d;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    background: #e9ecef;
    border-radius: 12px;
}

.harmony .synth-status.active {
    color: #28a745;
    background: #d4edda;
}

.harmony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Módulos Armónicos */
.harmony-module {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.harmony-module.active {
    border-color: #28a745;
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.module-label {
    font-family: var(--primary-font);
    font-size: 10px;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.harmony-power {
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    color: #adb5bd;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: var(--mono-font);
    padding: 0;
}

.harmony-power:hover {
    border-color: #28a745;
    color: #28a745;
    transform: scale(1.1);
}

.harmony-power.active {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff;
    animation: harmonyGlow 3s ease-in-out infinite;
}

@keyframes harmonyGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 0 16px rgba(40, 167, 69, 0.6); }
}

/* Perillas Circulares Nórdicas */
.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.circular-knob {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #ffffff, #f1f3f4);
    border: 1px solid #e9ecef;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.circular-knob:hover {
    transform: scale(1.05);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.knob-indicator {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 2px;
    height: 16px;
    background: #495057;
    border-radius: 1px;
    transform: translateX(-50%);
    transform-origin: center 26px;
    transition: all 0.3s ease;
}

.harmony-module.active .knob-indicator {
    background: #28a745;
}

.knob-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #6c757d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.harmony-module.active .knob-center {
    background: #28a745;
}

.knob-label {
    font-family: var(--mono-font);
    font-size: 9px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.knob-value {
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 400;
    color: #495057;
    letter-spacing: 0.02em;
}

.frequency-display {
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 600;
    color: #28a745;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Sección Master */
.master-section {
    grid-column: span 2;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    position: relative;
}

.master-section.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff, #f8fff9);
}

.master-header {
    font-family: var(--primary-font);
    font-size: 12px;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.master-toggle {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffffff, #f1f3f4);
    border: 2px solid #dee2e6;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
    margin-bottom: 12px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.7);
}

.master-toggle:hover {
    transform: scale(1.05);
    border-color: #28a745;
}

.master-toggle.active {
    background: linear-gradient(145deg, #28a745, #20c997);
    border-color: #28a745;
    box-shadow: 
        0 6px 20px rgba(40, 167, 69, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.master-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #adb5bd;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.master-toggle.active .master-indicator {
    background: #ffffff;
    animation: masterPulse 2s ease-in-out infinite;
}

@keyframes masterPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.master-label {
    font-family: var(--mono-font);
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Visualizador de Acordes */
.chord-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.chord-name {
    font-family: var(--primary-font);
    font-size: 18px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.chord-notes {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.note {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: var(--mono-font);
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.05em;
}

.note.active {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

/* Panel de Información */
.info-panel {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
}

.info-header {
    font-family: var(--primary-font);
    font-size: 10px;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.mapping-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mapping-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono-font);
    font-size: 8px;
    color: #6c757d;
    letter-spacing: 0.02em;
}

.data-type {
    color: #495057;
    font-weight: 600;
}

.arrow {
    color: #adb5bd;
}

.music-param {
    color: #28a745;
    font-weight: 600;
}

/* Stream de Datos Armónico */
.data-stream-harmony {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.stream-title {
    font-family: var(--primary-font);
    font-size: 11px;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.stream-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.stream-item.time-item {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-color: #90caf9;
}

.stream-label {
    font-family: var(--mono-font);
    font-size: 9px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stream-value {
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.02em;
}

.time-item .stream-value {
    color: #1976d2;
    animation: timeGlow 2s ease-in-out infinite;
}

@keyframes timeGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design para Sintetizador Armónico */
@media (max-width: 767px) {
    .harmony-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .master-section {
        grid-column: span 1;
    }
    
    .drone-synthesizer.harmony {
        padding: 20px;
        margin-bottom: 32px;
    }
    
    .stream-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .circular-knob {
        width: 56px;
        height: 56px;
    }
    
    .master-toggle {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 768px) {
    .harmony-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .master-section {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    .info-panel {
        grid-column: span 2;
    }
    
    .drone-synthesizer.harmony {
        width: 50%;
        float: left;
        clear: left;
    }
}
.osc-module {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.osc-module.active {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.osc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.osc-label {
    font-family: var(--mono-font);
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.osc-power {
    width: 24px;
    height: 24px;
    background: #222222;
    border: 1px solid #444444;
    border-radius: 50%;
    color: #666666;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: var(--mono-font);
    padding: 0;
}

.osc-power:hover {
    border-color: #888888;
    color: #ffffff;
}

.osc-power.active {
    background: #00ff00;
    border-color: #00ff00;
    color: #000000;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.8); }
}

.osc-visual {
    height: 80px;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 4px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.waveform-display {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 0, 0.1) 25%, 
        rgba(0, 255, 0, 0.2) 50%, 
        rgba(0, 255, 0, 0.1) 75%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.osc-module.active .waveform-display {
    opacity: 1;
    animation: waveform 3s ease-in-out infinite;
}

@keyframes waveform {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.osc-params {
    font-family: var(--mono-font);
    font-size: 9px;
    color: #cccccc;
}

.param-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.param-line span {
    color: #00ff00;
    font-weight: 700;
}

/* Mixer Module */
.mixer-module {
    background: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 16px;
    grid-column: span 2;
    position: relative;
}

.mixer-header {
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.master-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.master-power {
    background: #222222;
    border: 2px solid #444444;
    border-radius: 8px;
    color: #cccccc;
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.master-power:hover {
    border-color: #666666;
    color: #ffffff;
}

.master-power.active {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
    animation: masterGlow 2s ease-in-out infinite;
}

@keyframes masterGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

.master-level {
    width: 8px;
    height: 60px;
    background: #222222;
    border: 1px solid #333333;
    border-radius: 4px;
    position: relative;
}

.level-bar {
    width: 100%;
    background: linear-gradient(to top, #ff0000, #ffff00, #00ff00);
    border-radius: 3px;
    transition: height 0.1s ease;
    position: absolute;
    bottom: 0;
    height: 0%;
}

.spectrum-display {
    height: 60px;
    background: #000000;
    border: 1px solid #333333;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.spectrum-bars {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 2px;
    padding: 4px;
}

/* Data Module */
.data-module {
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
}

.data-header {
    font-family: var(--mono-font);
    font-size: 10px;
    font-weight: 700;
    color: #00ffff;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.mapping-display {
    font-family: var(--mono-font);
    font-size: 8px;
    color: #999999;
}

.mapping-line {
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: 0.05em;
    border-bottom: 1px dotted #333333;
    padding-bottom: 4px;
}

.mapping-line:last-child {
    border-bottom: none;
}

/* Real-time Data Stream */
.realtime-data {
    background: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.data-stream {
    font-family: var(--mono-font);
    font-size: 10px;
    color: #cccccc;
    line-height: 1.6;
}

.stream-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.stream-line span {
    color: #00ff00;
    font-weight: 700;
}

/* MICRODATOS DEL RÍO */
.river-data {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-black);
}

.river-data-title {
    font-size: 14px;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    margin-bottom: 16px;
    line-height: 1.15;
}

.river-data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.river-data-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid var(--color-black);
}

.river-data-item:last-child {
    border-bottom: none;
}

.river-data-label {
    font-size: 12px;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-gray-dark);
    line-height: 1.15;
}

.river-data-value {
    font-size: 12px;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    color: var(--color-black);
    line-height: 1.15;
    text-align: right;
}

.river-data-value#liveClock {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#homeClock {
    animation: pulse 2s ease-in-out infinite;
    display: inline !important;
    visibility: visible !important;
}

/* SCROLL BAR FIJO */
.scroll-bar-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: var(--color-yellow);
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0;
    padding: 8px 0;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
}

.scroll-bar-fixed.hidden {
    transform: translateY(100%);
}

.scroll-content-fixed {
    white-space: nowrap;
    color: var(--color-black);
    font-size: 11px;
    line-height: 1.15;
    font-weight: var(--font-weight-black);
    font-style: normal;
    letter-spacing: var(--letter-spacing);
    text-transform: uppercase;
    animation: scroll-left 45s linear infinite;
    padding-left: 100%;
    font-family: var(--primary-font);
    flex: 1;
    animation-delay: 0.1s;
}

.scroll-close-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-black);
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
    font-style: normal;
    font-family: var(--primary-font);
}

.scroll-close-btn:hover {
    color: var(--color-gray-dark);
    transform: translateY(-50%) scale(1.1);
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =================================
   DESKTOP STYLES - 768px and up
   ================================= */

@media (min-width: 768px) {
    /* CAMBIAR VISIBILIDAD */
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block;
    }
    
    /* LAYOUT PRINCIPAL DESKTOP */
    .main-layout {
        margin-top: 0;
        min-height: 100vh;
    }
    
    /* SIDEBAR DESKTOP - 1/8 DE PANTALLA + 10% */
    .sidebar {
        width: 13.75%; /* 12.5% + 10% = 13.75% */
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        padding: 12px 20px 40px 8px; /* SOLO EL TÍTULO A 12PX DEL TOP */
        justify-content: flex-start; /* CAMBIO: flex-start en lugar de space-between */
        overflow-y: auto;
        background: #efefef; /* Mismo color que el panel derecho */
    }
    
    /* HEADER DEL SIDEBAR */
    .sidebar-header {
        display: block;
        margin-bottom: 40px; /* RESTAURADO MARGIN BOTTOM ORIGINAL */
    }
    
    .site-title {
        font-size: 15px; /* MISMO TAMAÑO QUE MENÚ */
        margin-bottom: 0;
        line-height: 1.11; /* Misma proporción que navbar móvil */
    }
    
    /* NAVEGACIÓN SIDEBAR */
    .sidebar-nav {
        margin-top: 12px; /* SUBIDO 3PX PARA ALINEAR BASELINE - de 15px a 12px */
        flex-grow: 1;
    }
    
    .sidebar-item {
        font-size: 15px; /* TAMAÑO UNIFICADO CON CONTENIDO */
        margin-bottom: 5px; /* COMPACTO */
        opacity: 1;
        cursor: pointer;
        transition: all 0.3s ease;
        line-height: 0.97; /* ALTURA DE LÍNEA AJUSTADA */
        position: relative;
        padding-left: 0;
    }
    
    /* HOVER - CAMBIAR COLOR AL NUEVO TONO */
    .sidebar-item:hover {
        color: #6a45f4;
    }
    
    /* ESTADO ACTIVO - CÍRCULO CON ANIMACIÓN */
    .sidebar-item.active::before {
        content: "●";
        position: absolute;
        left: -12px;
        top: 0;
        color: var(--color-black);
        animation: pulseCircle 2s ease-in-out infinite;
        font-size: 8px;
        line-height: 1.1; /* ALTURA DE LÍNEA SINCRONIZADA CON MENÚ */
    }
    
    /* ANIMACIÓN SUTIL PERO MEMORABLE DEL CÍRCULO */
    @keyframes pulseCircle {
        0%, 100% { 
            opacity: 1; 
            transform: scale(1);
        }
        50% { 
            opacity: 0.6; 
            transform: scale(1.2);
        }
    }
    
    .sidebar-item.active {
        opacity: 1;
        font-weight: var(--font-weight-black);
    }
    
    /* MICRODATOS SIDEBAR DESKTOP */
    .sidebar .microdata-container {
        opacity: 1;
        margin-top: auto; /* MANTENER EN LA PARTE INFERIOR */
        margin-bottom: 0;
        position: absolute;
        bottom: 40px;
        left: 8px;
        right: 20px;
    }
    
    .sidebar .microdata-technical {
        font-size: 9px;
    }
    
    /* ÁREA DE CONTENIDO DESKTOP - 7/8 DE PANTALLA AJUSTADO */
    .content-area {
        width: 86.25%; /* 100% - 13.75% = 86.25% */
        margin-left: 13.75%; /* Mismo ancho que sidebar */
        padding: 90px 80px 60px 60px; /* BAJADO 3PX MÁS PARA ALINEAR BASELINE - de 87px a 90px */
        height: 100vh;
        overflow-y: auto;
    }
    
    /* CONTENT BLOCKS DESKTOP - FOTOGRAFÍA PRIMERO, TEXTO DESPUÉS */
    .content-block {
        max-width: none;
        margin: 0 0 80px 0;
    }
    
    /* IMAGEN 4/8 DE PANTALLA ALINEADA A LA IZQUIERDA */
    .image-full {
        margin-bottom: 40px;
        width: 50%; /* 4/8 de pantalla */
        float: left;
        clear: left;
    }
    
    .image-full img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    /* TEXTO CORRIDO CON EL MISMO ANCHO QUE LA FOTOGRAFÍA - TIPOGRAFÍA MEJORADA */
    .text-block {
        margin-bottom: 60px;
        width: 50%; /* Mismo ancho que la fotografía (4/8) */
        max-width: none;
        clear: left;
        float: left;
    }
    
    /* **TIPOGRAFÍA UNIFICADA PARA DESKTOP** */
    .text-block p {
        font-size: 15px; /* TAMAÑO UNIFICADO CON MENÚ */
        line-height: 1.1; /* BASELINE EXACTO SINCRONIZADO */
        margin-bottom: var(--desktop-paragraph-spacing); /* ESPACIADO REDUCIDO */
        width: 100%; /* Párrafos con el ancho completo igual a la fotografía */
        max-width: none;
        
        /* TIPOGRAFÍA SINCRONIZADA */
        font-weight: 600; /* Peso menor para mejor legibilidad en párrafos largos */
        letter-spacing: var(--letter-spacing);
        color: var(--color-black);
    }
    
    /* SEPARACIÓN VISUAL ENTRE PÁRRAFOS REDUCIDA */
    .text-block p:not(:last-child) {
        margin-bottom: var(--desktop-paragraph-spacing);
        padding-bottom: 0; /* Sin padding adicional para mantenerlo apretado */
    }
    
    /* PÁRRAFOS CON ÉNFASIS (strong) MANTIENEN EL PESO ORIGINAL */
    .text-block p strong {
        font-weight: var(--font-weight-black);
        line-height: 1.1; /* BASELINE SINCRONIZADO */
    }
    
    /* CLEARFIX PARA FLOTANTES */
    .content-block::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* TÍTULOS DE SECCIÓN DESKTOP - OCULTOS */
    .section-title {
        display: none; /* Ocultar títulos ya que están en el menú */
    }
    
    /* EMAIL CONTACTO DESKTOP - TIPOGRAFÍA UNIFICADA */
    .email-contact {
        font-size: 15px !important; /* TAMAÑO UNIFICADO */
        line-height: 1.1 !important; /* BASELINE SINCRONIZADO */
        width: 100%;
        font-weight: var(--font-weight-black) !important;
        margin-bottom: var(--desktop-paragraph-spacing) !important;
    }
    
    /* CALL TO ACTION UNIFICADO */
    .call-to-action p {
        font-size: 15px !important; /* TAMAÑO UNIFICADO */
        line-height: 1.1 !important; /* BASELINE SINCRONIZADO */
        font-weight: 600 !important;
        width: 100%;
        margin-bottom: var(--desktop-paragraph-spacing) !important;
    }
    
    /* PIE DE FOTO DESKTOP */
    .photo-caption {
        font-size: 9px;
        margin-top: 6px;
    }
    
    /* SINTETIZADOR Y DATOS AJUSTADOS AL NUEVO LAYOUT */
    .drone-synthesizer {
        margin-bottom: 60px;
        width: 50%; /* Mismo ancho que fotografías */
        float: left;
        clear: left;
    }
    
    /* RIVER DATA DESKTOP */
    .river-data {
        width: 50%; /* Mismo ancho que fotografías */
        max-width: none;
        margin-top: 40px;
        float: left;
        clear: left;
    }
    
    /* Responsive Design para Synth */
    .synth-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mixer-module {
        grid-column: span 1;
        grid-row: span 2;
    }
    
    /* SCROLL BAR - AJUSTE PARA DESKTOP */
    .scroll-bar-fixed {
        left: 0; /* Cubrir todo el ancho de pantalla */
        width: 100vw; /* Todo el ancho de pantalla */
    }
}

/* Responsive Design para Sintetizador */
@media (max-width: 767px) {
    .synth-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mixer-module {
        grid-column: span 1;
    }
    
    .drone-synthesizer {
        padding: 16px;
        margin-bottom: 32px;
    }
    
    .synth-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =================================
   LARGE DESKTOP - 1200px and up
   ================================= */

@media (min-width: 1200px) {
    .content-area {
        padding: 80px 120px 80px 80px;
    }
    
    /* TIPOGRAFÍA UNIFICADA PARA LARGE DESKTOP */
    .text-block p {
        font-size: 15px; /* TAMAÑO UNIFICADO */
        line-height: 1.1; /* BASELINE SINCRONIZADO */
        width: 100%; /* Mantener el ancho completo igual a la fotografía */
        margin-bottom: var(--desktop-paragraph-spacing); /* ESPACIADO REDUCIDO */
        font-weight: 600; /* Peso óptimo para legibilidad */
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 50px;
    }
    
    .email-contact {
        font-size: 15px !important; /* TAMAÑO UNIFICADO */
        line-height: 1.1 !important; /* BASELINE SINCRONIZADO */
    }
    
    .call-to-action p {
        font-size: 15px !important; /* TAMAÑO UNIFICADO */
        line-height: 1.1 !important; /* BASELINE SINCRONIZADO */
        margin-bottom: var(--desktop-paragraph-spacing) !important;
    }
    
    .content-block {
        max-width: none; /* Sin restricción de ancho máximo */
        margin: 0 0 100px 0;
    }
}

/* =================================
   MOBILE OVERLAY - MANTENER ORIGINAL
   ================================= */

@media (max-width: 767px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 50%;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 60px);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        justify-content: space-between;
        min-height: calc(100vh - 60px);
    }
    
    .sidebar.active {
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar.active .sidebar-item,
    .sidebar.active .microdata-container {
        opacity: 1;
    }
    
    .content-area {
        width: 100%;
        min-height: calc(100vh - 60px);
    }
    
    /* En móvil, los microdatos de home ocupan todo el ancho */
    .home-microdata {
        left: var(--mobile-padding);
        right: var(--mobile-padding);
    }
    
    /* MOBILE - SIDEBAR ITEMS */
    .sidebar-item {
        font-size: 30px;
        margin-bottom: 0;
    }
    
    /* MOBILE - SECTION TITLE */
    .section-title {
        position: absolute;
        top: calc(var(--baseline-position) - 3px);
        left: var(--mobile-padding);
        font-size: 30px;
        margin-bottom: 0;
    }
    
    /* MOBILE - TEXT CONTENT */
    .text-content {
        margin-top: calc(var(--baseline-position) + 40px);
    }
    
    /* MOBILE - GRID LAYOUT SE CONVIERTE EN COLUMNA */
    .content-grid {
        display: block;
    }
    
    .text-column,
    .image-column {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .intro-section {
        margin-bottom: 30px;
    }
    
    .subtitle {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}