/* Estilos específicos para la página del Modelo */
.modelo-article {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    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.2rem;
    color: #e67e22;
    margin-bottom: 1rem;
    font-weight: 300;
}

.article-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.navigation-buttons.bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.nav-btn {
    background: #e67e22;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

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

.content-section h2 {
    color: #e67e22;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

/* Estilos para código */
.code-example {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.code-example.small {
    margin: 0.5rem 0;
}

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

.file-name {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.3);
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

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

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    margin: 0.5rem 0;
    display: inline-block;
}

/* Grid para análisis */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.analysis-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.analysis-card h3 {
    color: #e67e22;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

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

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

.properties-table tr:hover {
    background: #f8f9fa;
}

/* Grid para métodos */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.method-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.method-card h3 {
    color: #e67e22;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Ejemplos de uso */
.usage-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.example-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.example-card h3 {
    color: #e67e22;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

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

/* Grid para mejoras */
.improvements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.improvement {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.improvement h3 {
    color: #27ae60;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Sección de troubleshooting */
.troubleshooting {
    background: #fef5e7;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

/* Responsive */
@media (max-width: 768px) {
    .modelo-article {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .analysis-grid,
    .methods-grid,
    .usage-examples,
    .problems-grid,
    .improvements-grid {
        grid-template-columns: 1fr;
    }
    
    .properties-table {
        font-size: 0.9rem;
    }
    
    .code-example pre {
        padding: 1rem;
    }
    
    .code-header {
        padding: 0.5rem;
    }
}

/* Resaltado de sintaxis PHP */
.php-tag { color: #e74c3c; font-weight: bold; }
.php-keyword { color: #9b59b6; font-weight: bold; }
.php-comment { color: #27ae60; font-style: italic; }
.php-string { color: #e67e22; }
.php-variable { color: #3498db; }
.php-function { color: #2980b9; }
.php-class { color: #8e44ad; font-weight: bold; }