/* Estilos específicos para la página de Flutter AppBar */

.tutorial-article {
    max-width: 900px;
    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;
}

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

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

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0175C2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #02569B;
    transform: translateY(-2px);
}

.content-section {
    margin-bottom: 3rem;
}

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

.content-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
}

.content-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

/* Vista previa del teléfono */
.flutter-preview {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.phone-mockup {
    width: 300px;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 2px solid #ddd;
}

.phone-header {
    background: #2196F3;
    color: white;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
}

.phone-content {
    padding: 20px;
    border-radius: 0 0 12px 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AppBar demo */
.appbar-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

.appbar-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.appbar-actions {
    display: flex;
    gap: 12px;
}

.back-btn {
    margin-right: 8px;
}

/* AppBar personalizado demo */
.demo-appbar {
    margin: 1.5rem 0;
}

.appbar-preview.personalized {
    background: #9C27B0;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Demo interactivo */
.interactive-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #2196F3;
    outline: none;
}

#elevationValue {
    font-weight: 600;
    color: #2196F3;
}

/* Tabla de propiedades */
.properties-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.properties-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.properties-table th {
    background: #2196F3;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.properties-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.properties-table tr:nth-child(even) {
}

/* Estilos para pasos */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.step h3 {
    color: #2c3e50;
    margin-top: 0;
}

/* Estilos para código */
.code-block {
    display: inline-block;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    margin: 0.5rem 0;
}

.code-example {
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-example h4, .code-example h5 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.code-example pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-example code {
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    line-height: 1.5;
}

/* Cajas de explicación */
.explanation-box {
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
    margin: 1.5rem 0;
}

.explanation-box h4 {
    color: #2c3e50;
    margin-top: 0;
}

.explanation-box ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.explanation-box li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Estilos para sección de problemas */
.troubleshooting {
    background: #fffaf0;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #FF9800;
}

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

.problem {
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.problem h3 {
    color: #FF9800;
    margin-top: 0;
}

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

.problem li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
