/* ============================================
   HEARTHINGX - Frontend Styles
   Tema Oscuro Científico Profesional
   ============================================ */

:root {
    /* Colores primarios - Acento científico cyan/turquesa */
    --primary-color: #00d4ff;
    --primary-dark: #00b8e6;
    --primary-darker: #0099cc;
    --primary-glow: rgba(0, 212, 255, 0.3);
    
    /* Colores de estado */
    --success-color: #00ff88;
    --error-color: #ff4444;
    --warning-color: #ffaa00;
    --info-color: #00d4ff;
    
    /* Fondos oscuros */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #151515;
    --bg-hover: #1f1f1f;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --text-muted: #606060;
    
    /* Bordes y separadores */
    --border-color: #2a2a2a;
    --border-light: #333333;
    --border-accent: #00d4ff;
    
    /* Sombras oscuras con glow científico */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.2);
    --shadow-glow: 0 0 20px var(--primary-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Auth Section (reCAPTCHA)
   ============================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.auth-box h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 0.5px;
}

.info-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.status-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.status-message.success {
    background-color: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.status-message.error {
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff6666;
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.status-message.info {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ============================================
   Main Container
   ============================================ */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: block;
}

/* Para páginas sin sidebar, usar solo una columna */
/* Grid del main-container ya no incluye sidebar/footer - ahora es footer */

header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px var(--primary-glow);
}

header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
}

.status-badge.success {
    background-color: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* ============================================
   Mic Controls
   ============================================ */

.mic-controls {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.mic-toggle-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000000;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    letter-spacing: 0.3px;
}

.btn-toggle:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 25px var(--primary-glow);
}

.btn-toggle:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.mic-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mic-info {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.mic-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   Input Method Section
   ============================================ */

.input-method-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.input-method-section h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-tertiary);
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* ============================================
   Recording Section
   ============================================ */

.recording-section,
.upload-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.info-box {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.info-box p {
    color: var(--text-secondary);
    margin: 0;
}

#recording-controls {
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000000;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    min-height: 50px;
    transition: all 0.3s;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-color: var(--border-color);
    box-shadow: none;
}

.countdown {
    margin-top: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
    letter-spacing: 1px;
}

#recording-status {
    margin-top: 15px;
}

#audio-preview {
    margin-top: 20px;
    text-align: center;
}

#audio-preview audio {
    width: 100%;
    margin-bottom: 10px;
    filter: invert(1) hue-rotate(180deg);
    background: var(--bg-tertiary);
    border-radius: 4px;
}

#upload-audio-playback {
    filter: invert(1) hue-rotate(180deg);
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.success-text {
    color: var(--success-color);
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* ============================================
   File Upload
   ============================================ */

.file-upload-area {
    text-align: center;
}

.btn-file-upload {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000000;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    letter-spacing: 0.5px;
}

.btn-file-upload:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--primary-glow);
}

.file-name {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* ============================================
   Process Section
   ============================================ */

.process-section {
    text-align: center;
    margin-bottom: 30px;
}

.btn-process {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000000;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    letter-spacing: 0.5px;
}

.btn-process:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 40px var(--primary-glow);
}

.btn-process:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-color: var(--border-color);
    box-shadow: none;
}

/* ============================================
   Results Section
   ============================================ */

.results-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.results-section h2 {
    color: var(--primary-color);
    margin: 30px 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 0.5px;
}

.results-section h2:first-child {
    margin-top: 0;
}

.emg-labels {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.emg-labels li {
    padding: 10px 15px;
    background: var(--bg-tertiary);
    border-left: 3px solid var(--primary-color);
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.emg-labels li:hover {
    background: var(--bg-hover);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.metric-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 212, 255, 0.2);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Estilos para mostrar valores brutos y normalizados (RF-002.1) */
.value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.value-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.value-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-raw {
    font-size: 1rem;
    font-weight: 600;
    color: #ff6b6b;
    font-family: 'Courier New', monospace;
    text-align: right;
}

.value-norm {
    font-size: 1rem;
    font-weight: 600;
    color: #51cf66;
    font-family: 'Courier New', monospace;
    text-align: right;
    text-shadow: 0 0 8px rgba(81, 207, 102, 0.3);
}

.hash-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.hash-code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
    word-break: break-all;
    text-shadow: 0 0 8px var(--primary-glow);
    letter-spacing: 1px;
}

/* Estilos para el Vector Latente B* (RF-002.2) */
.latent-vector-container {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(81, 207, 102, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.B-star-display {
    margin: 15px 0;
}

.vector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vector-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.vector-values {
    font-size: 1.1rem;
    font-weight: 600;
    color: #51cf66;
    font-family: 'Courier New', monospace;
    background: rgba(81, 207, 102, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.vector-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.vector-component {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.vector-component-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vector-component-value {
    font-size: 1.1rem;
    color: #51cf66;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.hash-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hash-info p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hash-code-small {
    font-size: 0.85rem;
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    display: block;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.geo-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.geo-info p {
    color: var(--text-primary);
    margin: 0;
}

.interpretation-section {
    margin-top: 30px;
}

.interpretation-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 0.3px;
}

.interpretation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.interpretation-table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #000000;
    font-weight: 600;
}

.interpretation-table th,
.interpretation-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.interpretation-table tbody tr:nth-child(even) {
    background: var(--bg-tertiary);
}

.interpretation-table tbody tr:hover {
    background: var(--bg-hover);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.success-message {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.success-message p {
    color: var(--success-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.1);
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 0.3px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.version {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.footer-section ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 5px;
}

.security-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Mantener compatibilidad con clases legacy para otras páginas */
.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 0.3px;
}

.info-section,
.contact-section {
    margin-bottom: 25px;
}

.info-section h4,
.contact-section h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.info-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 5px;
}

.contact-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .nav-btn-primary {
        min-width: 100%;
    }

    .description-section {
        padding: 30px 20px;
    }

    .main-description {
        font-size: 1.1rem;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .main-container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .mic-toggle-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* ============================================
   Description Section
   ============================================ */

.description-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.main-description {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 0 20px;
}

.main-description strong {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 0 8px var(--primary-glow);
    letter-spacing: 0.3px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Navigation Section
   ============================================ */

.navigation-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    text-align: center;
}

.navigation-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.navigation-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.navigation-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.nav-btn-primary {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000000;
    padding: 25px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.3px;
}

.nav-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 35px var(--primary-glow);
}

.nav-btn-primary:active {
    transform: translateY(-1px);
}

.nav-btn-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

.nav-btn-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-btn-text strong {
    font-size: 1.2rem;
    display: block;
}

.nav-btn-text small {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 400;
}

/* ============================================
   Demo Navigation Buttons (Legacy - mantener compatibilidad)
   ============================================ */

.demo-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 25px var(--primary-glow);
}

.demo-nav-btn:active {
    transform: translateY(0);
}

/* ============================================
   Loading States
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

