﻿/* Estilos especÃ­ficos para el mÃ³dulo de introducciÃ³n a Java */

.tutorial-article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
    position: relative;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 300;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.module-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 8px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
}

.badge-number {
    font-size: 1.5rem;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* QuÃ© es Java */
.java-overview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.overview-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.overview-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.overview-text {
    flex: 1;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.java-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Arquitectura de Java */
.architecture-explainer {
    margin: 2rem 0;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #3498db;
}

.architecture-layer {
    width: 80%;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.layer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.layer-title h4 {
    margin: 0;
    color: #2c3e50;
}

.layer-number {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.layer-code {
    background: #2c3e50;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

.layer-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.layer-os {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.os-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.os-icon.windows {
    color: #0078d7;
}

.os-icon.mac {
    color: #000000;
}

.os-icon.linux {
    color: #f1502f;
}

.architecture-arrow {
    font-size: 1.5rem;
    color: #3498db;
}

.architecture-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-item {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
}

.comparison-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-item ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.comparison-item li {
    margin-bottom: 0.5rem;
    color: #666;
}

html.dark-theme .comparison-item {
    background: var(--dark-bg-card, #2a2a3e) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
    border-color: var(--dark-border, #45475a) !important;
}

html.dark-theme .comparison-item h4 {
    color: var(--dark-text-primary, #cdd6f4) !important;
}

html.dark-theme .comparison-item li {
    color: var(--dark-text-secondary, #a6adc8) !important;
}

html.dark-theme .architecture-layer {
    background: var(--dark-bg-card, #2a2a3e) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4) !important;
}

html.dark-theme .architecture-layer h4 {
    color: var(--dark-text-primary, #cdd6f4) !important;
}

html.dark-theme .architecture-layer p,
html.dark-theme .architecture-layer li {
    color: var(--dark-text-secondary, #a6adc8) !important;
}

html.dark-theme .architecture-diagram {
    background: var(--dark-bg-tertiary, #181825) !important;
    border-color: var(--dark-border, #45475a) !important;
}

/* InstalaciÃ³n Interactiva */
.installation-wizard {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wizard-steps {
    display: flex;
    background: #2c3e50;
    color: white;
}

.step {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.step.active {
    background: #3498db;
}

.step-number {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active .step-number {
    color: #3498db;
}

.step-text {
    font-size: 0.9rem;
}

.wizard-content {
    padding: 2rem;
    min-height: 400px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.download-option {
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid #ecf0f1;
    text-align: center;
}

.download-btn {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin: 0.5rem 0;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #219653;
}

.download-note {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
}

.version-selector {
    margin-top: 2rem;
}

.os-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.os-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.os-btn.active {
    background: #3498db;
    color: white;
}

.os-instructions {
    display: none;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.installation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.install-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.step-icon {
    font-size: 1.5rem;
    color: #3498db;
}

.step-details h5 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.step-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.terminal-demo {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.terminal-header {
    background: #3c3c3c;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-btn.close { background: #ff5f57; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #28ca42; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    line-height: 1.5;
}

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

.prompt {
    color: #3498db;
}

.command {
    color: #f1c40f;
}

.terminal-output {
    color: #95a5a6;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.env-vars-config {
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.verification-tool {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verification-input {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.test-btn {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.test-btn:hover {
    background: #2980b9;
}

.verification-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.result-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #95a5a6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid #ecf0f1;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #95a5a6;
    color: white;
}

.next-btn {
    background: #27ae60;
    color: white;
}

/* Editor de CÃ³digo */
.interactive-editor {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.editor-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.compile-btn {
    background: #27ae60;
    color: white;
}

.reset-btn {
    background: #e74c3c;
    color: white;
}

.editor-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #1e1e1e;
    min-height: 300px;
}

.code-editor {
    display: flex;
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.line-numbers {
    background: #2d2d2d;
    color: #858585;
    padding: 1rem 0.5rem;
    font-family: 'Courier New', monospace;
    text-align: right;
    user-select: none;
}

.code-input {
    flex: 1;
    background: none;
    border: none;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 1rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.output-panel {
    background: #2d2d2d;
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.output-panel h5 {
    color: #ccc;
    margin: 0 0 1rem 0;
}

.output-content {
    flex: 1;
    background: #1e1e1e;
    border-radius: 4px;
    padding: 1rem;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    overflow-y: auto;
}

.output-placeholder {
    color: #666;
    font-style: italic;
}

.output-info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #95a5a6;
    font-size: 0.8rem;
}

.code-explanation {
    padding: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.explanation-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.explain-item {
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.keyword {
    font-family: 'Courier New', monospace;
    color: #3498db;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

/* AnatomÃ­a del Programa */
.code-anatomy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.anatomy-diagram {
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #3498db;
}

.code-block {
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.code-block:hover {
    transform: translateX(5px);
}

.block-header {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.code-block pre {
    margin: 0;
    background: #2c3e50;
    border-radius: 4px;
    padding: 1.5rem 1rem 1rem;
}

.anatomy-explanation {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.explanation-panel {
    padding: 1.5rem;
}

.anatomy-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.anatomy-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.anatomy-btn.active {
    background: #3498db;
    color: white;
}

.anatomy-content {
    border-radius: 6px;
    padding: 1rem;
    min-height: 200px;
}

.explanation {
    display: none;
}

.explanation.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Herramientas de Desarrollo */
.tools-comparison {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tool-selector {
    background: #2c3e50;
    padding: 1.5rem;
}

.tool-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.tool-btn {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.tool-btn.active {
    background: #3498db;
}

.tool-details {
    padding: 2rem;
}

.tool-detail {
    display: none;
}

.tool-detail.active {
    display: block;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.tool-icon {
    font-size: 3rem;
    color: #3498db;
}

.tool-info h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.tool-tag {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-block;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pros h6, .cons h6 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.pros ul, .cons ul {
    margin: 0;
    padding-left: 1.5rem;
}

.pros li {
    color: #27ae60;
}

.cons li {
    color: #e74c3c;
}

/* Juego de PrÃ¡ctica */
.practice-game {
    border-radius: 8px;
    padding: 2rem;
    border: 2px solid #3498db;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.code-pieces, .game-target {
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pieces-title, .target-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.pieces-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.piece {
    background: #3498db;
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: move;
    text-align: center;
    font-family: 'Courier New', monospace;
    user-select: none;
    transition: transform 0.3s ease;
}

.piece.wrong {
    background: #e74c3c;
}

.piece:hover {
    transform: translateY(-2px);
}

.target-area {
    min-height: 200px;
    border: 2px dashed #3498db;
    border-radius: 6px;
    padding: 1rem;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 0.5rem;
}

.drop-zone {
    border-radius: 4px;
    min-height: 50px;
    transition: background 0.3s ease;
}

.drop-zone.hover {
    background: #3498db;
    border: 2px dashed white;
}

.game-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.score, .timer {
    font-weight: bold;
    color: #2c3e50;
}

.game-feedback {
    margin-top: 1rem;
    text-align: center;
}

.game-message {
    padding: 1rem;
    border-radius: 6px;
    font-weight: bold;
}

/* Resumen */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.summary-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
}

.summary-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-card ul {
    margin: 0;
    padding-left: 1.5rem;
}

.summary-card li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.4;
}

.next-module {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.next-module-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498db;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.next-module-btn:hover {
    transform: translateY(-2px);
}

/* Quiz */
.quiz-container {
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #3498db;
    width: 20%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.quiz-question h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.option {
    position: relative;
}

.option input {
    display: none;
}

.option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option input:checked + label {
    background: #e3f2fd;
    border-color: #3498db;
}

.option-letter {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quiz-feedback {
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Recursos Adicionales */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.resource {

    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.resource h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource ul {
    margin: 0;
    padding-left: 1.5rem;
}

.resource li {
    margin-bottom: 0.5rem;
}

.resource a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1s ease;
}

/* Clases para resultados del quiz */
.correct {
    color: #27ae60;
    background: #d4edda;
    border-color: #c3e6cb;
}

.incorrect {
    color: #e74c3c;
    background: #f8d7da;
    border-color: #f5c6cb;
}

.warning {
    color: #f39c12;
    background: #fff3cd;
    border-color: #ffeaa7;
}

