/* 
 * Transcripción Inteligente CSS - CRM Dentistas iA
 * Estilos específicos para la landing de transcripción inteligente
 */

/* Transcription Demo Styles - Hero Section */
.transcription-demo {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.recording-interface {
    padding: 0;
    border-bottom: 1px solid #e9ecef;
}

.interface-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interface-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.patient-info {
    display: flex;
    gap: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.recording-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    position: relative;
}

.voice-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 60px;
    margin-bottom: 20px;
}

.voice-visualizer .wave-bar {
    width: 5px;
    background-color: #007bff;
    height: 5px;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.voice-visualizer.active .wave-bar:nth-child(1) { height: 15px; animation: wave 1s infinite ease-in-out; animation-delay: 0s; }
.voice-visualizer.active .wave-bar:nth-child(2) { height: 25px; animation: wave 1s infinite ease-in-out; animation-delay: 0.1s; }
.voice-visualizer.active .wave-bar:nth-child(3) { height: 35px; animation: wave 1s infinite ease-in-out; animation-delay: 0.2s; }
.voice-visualizer.active .wave-bar:nth-child(4) { height: 45px; animation: wave 1s infinite ease-in-out; animation-delay: 0.3s; }
.voice-visualizer.active .wave-bar:nth-child(5) { height: 35px; animation: wave 1s infinite ease-in-out; animation-delay: 0.4s; }
.voice-visualizer.active .wave-bar:nth-child(6) { height: 25px; animation: wave 1s infinite ease-in-out; animation-delay: 0.5s; }
.voice-visualizer.active .wave-bar:nth-child(7) { height: 15px; animation: wave 1s infinite ease-in-out; animation-delay: 0.6s; }
.voice-visualizer.active .wave-bar:nth-child(8) { height: 10px; animation: wave 1s infinite ease-in-out; animation-delay: 0.7s; }

@keyframes wave {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.6); }
    100% { transform: scaleY(1); }
}

.recording-counter {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 20px;
}

.recording-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-record, .btn-stop, .btn-pause {
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    color: #6c757d;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn-record {
    width: auto;
    border-radius: 30px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-record.active {
    background-color: #dc3545;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.btn-stop {
    background-color: #6c757d;
    color: white;
}

.btn-pause:hover, .btn-stop:hover {
    transform: scale(1.05);
}

.transcription-result {
    padding: 0;
    background-color: #fff;
}

.result-header {
    padding: 15px 20px;
    background: #e9f5ff;
    border-bottom: 1px solid #d0e6f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #0056b3;
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #cce5ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #0056b3;
}

.result-body {
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.result-body p {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

.ai-insights {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    background-color: #f8f9fa;
}

.insight-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #007bff;
    font-size: 0.9rem;
}

.insight-content p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #495057;
}

/* Dictation Flow Demo Styles */
.dictation-flow-demo {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 100%;
}

.flow-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.flow-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.flow-body {
    padding: 30px 20px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.flow-step.active {
    background-color: #e9f5ff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #212529;
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: 5px 0;
    color: #adb5bd;
    font-size: 1rem;
}

.flow-metrics {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
}

.metric {
    text-align: center;
    background-color: #e9f5ff;
    padding: 10px 20px;
    border-radius: 8px;
}

.metric-value {
    display: block;
    font-weight: 700;
    color: #007bff;
    font-size: 1.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* AI Analysis Demo Styles */
.ai-analysis-demo {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 100%;
}

.analysis-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.analysis-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.analysis-body {
    padding: 0;
}

.transcript-text {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.transcript-text p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #495057;
}

.transcript-text p.highlighted {
    background-color: rgba(0, 123, 255, 0.1);
    padding: 8px;
    border-left: 3px solid #007bff;
    border-radius: 0 4px 4px 0;
}

.ai-extraction {
    padding: 0;
}

.extraction-header {
    padding: 12px 20px;
    background-color: #e9f5ff;
    border-bottom: 1px solid #d0e6f7;
}

.extraction-header h5 {
    margin: 0;
    font-size: 1rem;
    color: #0056b3;
}

.extraction-list {
    padding: 15px 20px;
}

.extraction-item {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.extraction-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.extraction-item.highlight {
    background-color: rgba(0, 123, 255, 0.05);
    padding: 10px;
    margin: 0 -20px 10px;
    border-radius: 4px;
}

.item-label {
    flex: 0 0 30%;
    font-weight: 600;
    color: #495057;
}

.item-value {
    flex: 1;
    color: #212529;
}

/* Integration Demo Styles */
.integration-demo {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 100%;
}

.integration-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #6c757d;
}

.tab.active {
    background-color: #fff;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.integration-content {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .transcription-demo {
        margin-top: 30px;
    }
    
    .dictation-flow-demo, 
    .ai-analysis-demo {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .recording-interface {
        border-bottom: none;
    }
    
    .interface-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .patient-info {
        margin-top: 10px;
    }
    
    .recording-controls {
        flex-direction: column;
    }
    
    .extraction-item {
        flex-direction: column;
    }
    
    .item-label {
        margin-bottom: 5px;
    }
}
