/* /home/hardiner/public_html/astromambo/css/sonificacion.css */
/* ASTROMAMBO - Estilos Sonificacion v3.0 */
/* Arquitectura 3 Niveles: Modo Base + Capas Sonoras + Capa Xul Solar */

/* ============================================
   1. LAYOUT PRINCIPAL
   ============================================ */
body.sonif-page {
    background: url('../images/sonificacion.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sonif-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.sonif-title {
    text-align: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(138, 43, 226, 0.2) 100%);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    backdrop-filter: blur(10px);
}

/* ============================================
   2. PANELES BASE
   ============================================ */
.panel {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.panel h2 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3b82f6;
    margin: -20px -20px 15px -20px;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
}

.panel-desc {
    color: #888;
    font-size: 0.85rem;
    margin: -10px 0 15px 0;
}

.warning-panel {
    background: rgba(231, 76, 60, 0.85);
    border-color: rgba(231, 76, 60, 0.5);
}

.warning-panel p { color: #fff; margin: 0; }
.warning-panel a { color: #ffd700; font-weight: 600; }

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.7rem;
    color: #fff;
    cursor: help;
    margin-left: 5px;
}

/* ============================================
   3. HEADER NAV
   ============================================ */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,215,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.menu-logo img { height: 40px; width: auto; }

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.back-home-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.back-home-btn svg { width: 22px; height: 22px; fill: #ffffff; }

/* ============================================
   4. FOOTER
   ============================================ */
.main-footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,215,0,0.2);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content p { margin: 5px 0; color: #888; font-size: 0.85rem; }
.footer-content p:first-child { color: #64b5f6; font-weight: 500; }

/* ============================================
   5. INFO CARTA
   ============================================ */
.chart-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.chart-name { font-weight: bold; color: #ffd700; }

/* ============================================
   6. SELECTOR DE MODO (Nivel 1)
   ============================================ */
.mode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.mode-btn {
    padding: 12px 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 0.85rem;
    font-family: inherit;
}

.mode-btn:hover {
    background: rgba(255,215,0,0.15);
    border-color: #ffd700;
    color: #ffd700;
}

.mode-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    font-weight: bold;
}

.mode-btn small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============================================
   7. OPCIONES FUSION
   ============================================ */
.fusion-options {
    background: rgba(255,215,0,0.1);
    border: 1px dashed rgba(255,215,0,0.5);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: none;
}

.fusion-options.visible { display: block; }

.fusion-title {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.fusion-choice {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fusion-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(30, 30, 50, 0.8);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
    color: #e8e8e8;
}

.fusion-radio:hover {
    border-color: rgba(255,215,0,0.5);
    background: rgba(50, 50, 70, 0.9);
}

.fusion-radio.selected {
    border-color: #ffd700;
    background: rgba(255,215,0,0.15);
    color: #fff;
}

.fusion-radio strong {
    color: #ffd700;
    display: block;
}

.fusion-radio.selected strong {
    color: #ffd700;
}

.fusion-radio small {
    display: block;
    color: #aaa;
    font-size: 0.75rem;
    margin-top: 2px;
}

.fusion-radio.selected small {
    color: #ccc;
}

/* ============================================
   8. CAPAS SONORAS (Nivel 2)
   ============================================ */
.layers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.layer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.layer-info { display: flex; flex-direction: column; }
.layer-name { font-weight: 500; font-size: 0.9rem; color: #e8e8e8; }
.layer-desc { font-size: 0.75rem; color: #888; margin-top: 2px; }

/* Switch toggle */
.switch { position: relative; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider { background-color: #3b82f6; }
input:checked + .slider:before { transform: translateX(24px); background-color: #fff; }

/* ============================================
   9. PANEL XUL SOLAR (Nivel 3)
   ============================================ */
.xul-panel {
    border: 2px solid rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(45, 31, 78, 0.9) 100%);
}

.xul-header {
    margin-bottom: 15px;
}

.xul-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xul-title-row h2 {
    margin-bottom: 0;
}

.xul-content {
    transition: opacity 0.3s, filter 0.3s;
}

.xul-content.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Selector Overlay/Override */
.xul-behavior {
    margin-bottom: 20px;
}

.behavior-title {
    color: #ffd700;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.behavior-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.behavior-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex: 1;
    min-width: 180px;
}

.behavior-radio:hover { border-color: rgba(138, 43, 226, 0.5); }

.behavior-radio.selected {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.2);
}

.behavior-radio input { display: none; }
.behavior-radio small { display: block; color: #888; font-size: 0.7rem; margin-top: 2px; }

.behavior-radio .radio-dot {
    border-color: #8a2be2;
}

.behavior-radio.selected .radio-dot::after {
    background: #8a2be2;
}

/* Espectro Xul */
.xul-spectrum-section {
    margin-bottom: 20px;
}

.spectrum-label {
    font-size: 0.8rem;
    color: #ffd700;
    margin-bottom: 8px;
}

.spectrum-bar {
    display: flex;
    height: 35px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.spectrum-segment {
    flex: 1;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: help;
}

.spectrum-segment:hover {
    transform: scaleY(1.15);
    z-index: 1;
}

.spectrum-segment.active {
    box-shadow: inset 0 0 0 2px #fff, 0 0 10px currentColor;
    transform: scaleY(1.2);
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 2px;
}

.spectrum-labels span {
    font-size: 0.65rem;
    color: #888;
    text-align: center;
    flex: 1;
}

/* Balance Polar */
.xul-polarity-section {
    margin-bottom: 15px;
}

.polarity-label {
    font-size: 0.8rem;
    color: #ffd700;
    margin-bottom: 8px;
}

.polarity-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.pol-chip {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pol-chip.neutral {
    background: rgba(102, 102, 102, 0.4);
    color: #ccc;
    border: 1px solid #666;
}

.pol-chip.plus {
    background: rgba(46, 204, 113, 0.3);
    color: #5eff9e;
    border: 1px solid #2ecc71;
}

.pol-chip.minus {
    background: rgba(231, 76, 60, 0.3);
    color: #ff8a7a;
    border: 1px solid #e74c3c;
}

.pol-tendency {
    margin-left: auto;
    font-size: 0.8rem;
    color: #ffd700;
    font-style: italic;
}

/* Link documentacion */
.xul-info-link {
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.xul-info-link a {
    color: #8a2be2;
    font-size: 0.8rem;
    text-decoration: none;
}

.xul-info-link a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* ============================================
   10. OUTPUT TABS Y CONTENT
   ============================================ */
.output-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.output-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-family: inherit;
}

.output-tab:hover { color: #ffd700; }
.output-tab.active { 
    background: #3b82f6; 
    color: #fff; 
}

.output-content {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    min-height: 200px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================
   11. TABLAS OUTPUT
   ============================================ */
.output-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.output-table th {
    text-align: left;
    color: #ffd700;
    padding: 10px;
    border-bottom: 1px solid rgba(255,215,0,0.3);
    font-size: 0.75rem;
    font-weight: 600;
}

.output-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e8e8e8;
}

.output-table tbody tr:hover { background: rgba(255,215,0,0.05); }

.color-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid rgba(255,255,255,0.3);
}

.polarity-plus { color: #00ff88; }
.polarity-minus { color: #ff6b6b; }
.polarity-neutral { color: #888; }

.notes-reference {
    margin: 12px 0 0 0;
    padding: 8px 12px;
    background: rgba(255,215,0,0.1);
    border-left: 3px solid #ffd700;
    border-radius: 0 6px 6px 0;
    font-size: 0.75rem;
    color: #aaa;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ============================================
   12. SUMMARY Y PROMPT
   ============================================ */
.summary-content { font-size: 0.9rem; line-height: 1.6; color: #ccc; }
.summary-content h3 { color: #ffd700; font-size: 0.95rem; margin: 15px 0 10px; }
.summary-content h3:first-child { margin-top: 0; }

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-item:last-child { border-bottom: none; }
.summary-label { color: #888; }
.summary-value { color: #ffd700; font-weight: 500; }

.prompt-textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #e8e8e8;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    padding: 12px;
    resize: vertical;
}

.prompt-counter { text-align: right; font-size: 0.75rem; color: #888; margin-top: 8px; }

/* ============================================
   13. BOTONES
   ============================================ */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
    filter: grayscale(0.5);
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    border: 2px solid #3b82f6;
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover:not(:disabled) { 
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ============================================
   14. PANEL INFO COMPACTO
   ============================================ */
.info-panel {
    background: rgba(15, 23, 42, 0.9);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-header h2 {
    margin: 0;
    color: #fff;
}

.info-badge {
    background: #3b82f6;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards de niveles */
.levels-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.level-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.level-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(59, 130, 246, 0.5);
}

.level-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.level-card.level-xul .level-num {
    background: linear-gradient(135deg, #3b82f6, #8a2be2);
    color: #fff;
}

.level-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.level-content strong {
    color: #fff;
    font-size: 0.85rem;
}

.level-content span {
    color: #888;
    font-size: 0.75rem;
}

/* Footer info */
.info-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.info-footer p {
    margin: 0;
    color: #ccc;
    font-size: 0.8rem;
    flex: 1;
}

.info-footer p strong {
    color: #fff;
}

.info-links {
    display: flex;
    gap: 8px;
}

.info-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 6px 12px;
    background: #3b82f6;
    border: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.info-links a:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .levels-row {
        grid-template-columns: 1fr;
    }
    
    .info-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .info-footer p {
        order: 2;
    }
    
    .info-links {
        order: 1;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   15. ESTILOS ABOUT/SONIFICA.PHP
   ============================================ */
.sonifica-content { color: #2c3e50; line-height: 1.7; }
.sonifica-content h3 { color: #1a365d; font-size: 1.4em; margin: 30px 0 15px 0; padding-bottom: 8px; border-bottom: 2px solid #34A7C1; }
.sonifica-content h4 { color: #34A7C1; font-size: 1.15em; margin: 20px 0 10px 0; }
.sonifica-content a { color: #34A7C1; text-decoration: none; }
.sonifica-content a:hover { text-decoration: underline; }

.teoria-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #34A7C1;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 25px;
    color: #1a365d;
}

.teoria-intro p { color: #2c3e50; margin: 0; }
.teoria-intro strong { color: #1a365d; font-weight: 700; }

/* Timeline */
.sonifica-content .timeline { position: relative; padding-left: 30px; margin: 25px 0; }
.sonifica-content .timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #34A7C1, #1a365d);
    border-radius: 3px;
}

.sonifica-content .timeline-item {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sonifica-content .timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: #34A7C1;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.sonifica-content .timeline-item .year { font-weight: 700; color: #34A7C1; }
.sonifica-content .timeline-item .title { color: #1a365d; font-weight: 600; margin: 4px 0; }
.sonifica-content .timeline-item .title a { color: #1a365d; }
.sonifica-content .timeline-item .title a:hover { color: #34A7C1; }
.sonifica-content .timeline-item .desc { color: #666; font-size: 0.92em; }

/* Modo sections */
.modo-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #34A7C1;
}

.modo-section h4 { margin-top: 0; color: #1a365d; font-size: 1.2em; }
.modo-section h4 a { color: #1a365d; }
.modo-section h4 a:hover { color: #34A7C1; }
.modo-section > p { color: #555; margin: 10px 0 20px 0; }

.modo-section.xul {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    color: #e0e8f0;
}

.modo-section.xul h4,
.modo-section.xul h4 a { color: #ffd700; }
.modo-section.xul p { color: #c0d0e0; }
.modo-section.xul .nota-pie { color: #a0b8d0; }

/* Tablas de modos */
.tabla-wrapper { overflow-x: auto; margin: 15px 0; }

.tabla-modo {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    background: #fff;
}

.tabla-modo th {
    background: linear-gradient(135deg, #1a365d, #2d4a6f);
    color: #fff;
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
}

.tabla-modo td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-modo tr:nth-child(even) { background: #f8f9fa; }
.tabla-modo tr:hover { background: #e8f4f8; }
.tabla-modo .nota { font-weight: 600; color: #1a365d; }
.tabla-modo .hz { font-family: monospace; font-size: 0.9em; color: #666; }
.nota-pie { font-size: 0.85em; color: #888; margin-top: 12px; }

/* Tabla Xul (fondo oscuro) */
.modo-section.xul .tabla-modo { background: rgba(255,255,255,0.08); }
.modo-section.xul .tabla-modo th { background: rgba(255,215,0,0.25); color: #ffd700; }
.modo-section.xul .tabla-modo td { color: #e0e8f0; border-bottom-color: rgba(255,255,255,0.1); }
.modo-section.xul .tabla-modo tr:nth-child(even) { background: rgba(255,255,255,0.04); }
.modo-section.xul .tabla-modo tr:hover { background: rgba(52,167,193,0.15); }
.modo-section.xul .tabla-modo .nota { color: #5dd8f0; }

/* Galeria imagenes */
.img-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.img-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.img-card img { width: 100%; height: auto; display: block; border-bottom: 1px solid #eee; }
.img-card .caption { padding: 12px 15px; font-size: 0.9em; color: #555; text-align: center; }
.img-card .caption strong { color: #1a365d; display: block; margin-bottom: 4px; }

/* Referencias */
.ref-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.ref-section h4 { color: #1a365d; margin-top: 0; }
.ref-list { list-style: none; padding: 0; margin: 0; }
.ref-list li { padding: 6px 0; border-bottom: 1px solid #e0e0e0; font-size: 0.92em; }
.ref-list li:last-child { border-bottom: none; }
.ref-list li::before { display: none; }
.ref-list .book { color: #555; font-style: italic; }

/* ============================================
   16. ESTILOS ABOUT/SONIFICA2.PHP
   ============================================ */
.sonifica2-content { color: #2c3e50; line-height: 1.7; }
.sonifica2-content h3 { color: #1a365d; font-size: 1.4em; margin: 30px 0 15px 0; padding-bottom: 8px; border-bottom: 2px solid #9b59b6; }
.sonifica2-content h4 { color: #9b59b6; font-size: 1.15em; margin: 20px 0 10px 0; }
.sonifica2-content a { color: #9b59b6; text-decoration: none; }
.sonifica2-content a:hover { text-decoration: underline; }

.sonifica2-content > p { color: #2c3e50; }
.sonifica2-content > p strong { color: #1a365d; }

.intro-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #9b59b6;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 25px;
    color: #2c3e50;
}

.intro-box p { color: #2c3e50; margin: 0; }
.intro-box strong { color: #1a365d; font-weight: 700; }

/* Secciones tecnicas */
.tech-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #9b59b6;
}

.tech-section h4 { margin-top: 0; color: #1a365d; font-size: 1.15em; }
.tech-section > p { color: #555; margin: 10px 0 20px 0; }

.tech-section.fusion {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fef9e7 0%, #fdebd0 100%);
}

.tech-section.xul {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    color: #e0e8f0;
}

.tech-section.xul h4 { color: #ffd700; }
.tech-section.xul p,
.tech-section.xul li { color: #c0d0e0; }

/* Tablas tecnicas */
.tabla-tech {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    background: #fff;
}

.tabla-tech th {
    background: linear-gradient(135deg, #6c3483, #9b59b6);
    color: #fff;
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
}

.tabla-tech td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-tech tr:nth-child(even) { background: #faf5ff; }
.tabla-tech tr:hover { background: #f0e6fa; }
.tabla-tech .destacado { font-weight: 600; color: #6c3483; }
.tabla-tech .code { font-family: monospace; font-size: 0.9em; background: #f0f0f0; padding: 2px 6px; border-radius: 3px; }

/* Colores aspectos */
.tabla-tech .armonico { background: rgba(46, 204, 113, 0.15); }
.tabla-tech .tensional { background: rgba(231, 76, 60, 0.15); }
.tabla-tech .neutro { background: rgba(241, 196, 15, 0.15); }

/* Tabla Xul tech (fondo oscuro) */
.tech-section.xul .tabla-tech { background: rgba(255,255,255,0.08); }
.tech-section.xul .tabla-tech th { background: rgba(255,215,0,0.25); color: #ffd700; }
.tech-section.xul .tabla-tech td { color: #e0e8f0; border-bottom-color: rgba(255,255,255,0.1); }
.tech-section.xul .tabla-tech tr:nth-child(even) { background: rgba(255,255,255,0.04); }
.tech-section.xul .tabla-tech .destacado { color: #5dd8f0; }

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 3px solid #9b59b6;
}

.info-card h5 { margin: 0 0 10px 0; color: #1a365d; font-size: 1em; }
.info-card p { margin: 0; color: #666; font-size: 0.9em; }

/* Output ejemplo terminal */
.output-box {
    background: #1a1a2e;
    color: #a0ffa0;
    font-family: 'Courier New', monospace;
    font-size: 0.78em;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.4;
    white-space: pre;
    word-wrap: normal;
}

.output-box .header { color: #ffd700; }
.output-box .section { color: #5dade2; }
.output-box .value { color: #f39c12; }
.output-box .note { color: #bb8fce; }

.sonifica2-content .nota-pie {
    font-size: 0.85em;
    color: #888;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

/* ============================================
   17. NOTAS TECNICAS XUL SOLAR (sonifica.php)
   ============================================ */
.tech-notes.xul {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f4e 100%);
    border-radius: 12px;
    border: 2px solid #8a2be2;
}

.tech-notes.xul h4 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.logic-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logic-box h5 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.logic-box.highlight {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.logic-box.interpretation {
    background: rgba(52, 167, 193, 0.15);
    border: 1px solid rgba(52, 167, 193, 0.4);
}

.logic-box.interpretation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.logic-box.interpretation li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8e8e8;
}

.logic-box.interpretation li:last-child { border-bottom: none; }

.logic-box.philosophy {
    background: rgba(75, 0, 130, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
}


.logic-desc {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Scale/Zodiac display */
.scale-display,
.zodiac-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.note-box {
    background: linear-gradient(135deg, #3a4a5a 0%, #2a3a4a 100%);
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #5a6a7a;
}

.sign-box {
    background: linear-gradient(135deg, #2a3a5a 0%, #1a2a4a 100%);
    color: #5dd8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    border: 1px solid #4a6a9a;
}

.sign-box.cancer {
    background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%);
    color: #ffd700;
    border-color: #ffd700;
}

.arrow {
    color: #888;
    font-size: 0.8rem;
}

/* Spectrum display (about) */
.spectrum-display {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.color-chip {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: help;
}

/* Tabla compacta */
.tech-notes.xul .tabla-modo.compact {
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
}

.tech-notes.xul .tabla-modo.compact th {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.tech-notes.xul .tabla-modo.compact td {
    color: #e0e0e0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
}

.tech-notes.xul .tabla-modo.compact tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.tech-notes.xul .tabla-modo.compact tr:hover {
    background: rgba(52, 167, 193, 0.2);
}

/* ============================================
   18. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sonif-container { padding: 15px; }
    .sonif-title { font-size: 1.4rem; }
    .mode-selector { grid-template-columns: repeat(2, 1fr); }
    .fusion-choice,
    .behavior-options { flex-direction: column; }
    .fusion-radio,
    .behavior-radio { min-width: 100%; }
    .layers-grid { grid-template-columns: 1fr; }
    .output-table { font-size: 0.75rem; }
    .output-table th,
    .output-table td { padding: 8px 5px; }
    .actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    
    /* Panel Xul */
    .xul-title-row { flex-wrap: wrap; gap: 10px; }
    .spectrum-labels span { font-size: 0.55rem; }
    .polarity-display { justify-content: center; }
    .pol-tendency { width: 100%; text-align: center; margin-left: 0; margin-top: 8px; }
    
    /* About pages */
    .img-gallery,
    .cards-grid { grid-template-columns: 1fr; }
    .tabla-modo,
    .tabla-tech { font-size: 0.78em; }
    .tabla-modo th, .tabla-modo td,
    .tabla-tech th, .tabla-tech td { padding: 5px 3px; }
    .modo-section,
    .tech-section { padding: 15px; }
    .output-box { font-size: 0.72em; padding: 12px; }
    
    /* Tech notes */
    .tech-notes.xul { padding: 15px; }
    .logic-box { padding: 15px; }
    .scale-display,
    .zodiac-display { justify-content: center; }
    .note-box,
    .sign-box { padding: 6px 8px; font-size: 0.8rem; }
    .arrow { display: none; }
    .color-chip { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
    .mode-selector { grid-template-columns: 1fr; }
    .output-tabs { justify-content: center; }
    .output-tab { padding: 6px 12px; font-size: 0.8rem; }
    .spectrum-bar { height: 28px; }
    .pol-chip { padding: 4px 8px; font-size: 0.75rem; }
}

/* Alineacion superior de imagenes en galeria */
.img-gallery {
    align-items: flex-start;
}

.img-gallery .img-card {
    vertical-align: top;
}

.img-gallery .img-card img {
    object-position: top;
}