

/* Variables de color y tipografía */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    
    --font-main: 'Roboto', sans-serif;
    --font-code: 'Source Code Pro', monospace;
    
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
/* Reset adicional */
.sem-header, .sem-footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos del encabezado */
.sem-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: rgb(255, 255, 255);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sem-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    opacity: 0.5;
}

.sem-header .container {
    position: relative;
    z-index: 1;
}

.sem-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
}

.sem-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.7;
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Estilos de secciones */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
}

.content-section h2 i {
    color: var(--secondary-color);
}
/* Footer */
.sem-footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-copy {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Estilos específicos para Semana 11 - Introducción a Django */

.intro-content {
    margin: 2rem 0;
}

.django-overview {
    background: linear-gradient(135deg, #092e20 0%, #0c4b33 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(9, 46, 32, 0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.django-overview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50" fill="rgba(255,255,255,0.1)">🐍</text></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.django-overview h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.django-overview p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #44b78b;
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.django-philosophy {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.django-philosophy h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #44b78b;
}

.philosophy-points {
    display: grid;
    gap: 1rem;
}

.philosophy-point {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #44b78b;
}

.philosophy-point strong {
    color: #44b78b;
}

.patterns-content {
    margin: 2rem 0;
}

.pattern-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.pattern-section h3 {
    color: #092e20;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.mvc-diagram, .mtv-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mvc-layer, .mtv-layer {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid;
}

.mvc-layer:hover, .mtv-layer:hover {
    transform: translateX(10px);
}

.model {
    border-left-color: #e74c3c;
}

.view {
    border-left-color: #3498db;
}

.controller {
    border-left-color: #f39c12;
}

.template {
    border-left-color: #9b59b6;
}

.mvc-layer h4, .mtv-layer h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.model h4 {
    color: #e74c3c;
}

.view h4 {
    color: #3498db;
}

.controller h4 {
    color: #f39c12;
}

.template h4 {
    color: #9b59b6;
}

.layer-details {
    margin-top: 1rem;
}

.layer-details ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #6b7280;
}

.pattern-flow {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.pattern-flow h3 {
    color: #092e20;
    text-align: center;
    margin-bottom: 2rem;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-step {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: scale(1.05);
}

.step-number {
    background: #092e20;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-weight: bold;
    font-size: 1.2rem;
}

.flow-arrow {
    font-size: 2rem;
    color: #092e20;
    font-weight: bold;
}

.installation-content {
    margin: 2rem 0;
}

.step-by-step {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.install-step {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #092e20;
}

.install-step h4 {
    color: #092e20;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-step h4::before {
    content: "⚙️";
    font-size: 1.5rem;
}

.code-example {
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

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

.code-example code {
    color: #e2e8f0;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.structure-explanation {
    margin-top: 2rem;
}

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

.file-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #44b78b;
}

.file-item strong {
    color: #092e20;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.file-item p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.apache-content {
    margin: 2rem 0;
}

.apache-steps {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.apache-step {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d32f2f;
}

.apache-step h4 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apache-step h4::before {
    content: "🔧";
    font-size: 1.5rem;
}

.command-content {
    margin: 2rem 0;
}

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

.command-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #092e20;
}

.command-card h4 {
    color: #092e20;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.uvt-content {
    margin: 2rem 0;
}

.uvt-tabs {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.tab-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    background: #e2e8f0;
}

.tab-btn.active {
    background: #092e20;
    color: #fff;
    border-bottom-color: #44b78b;
}

.tab-btn.active::after {
    content: "🚀";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

.tab-content h3 {
    color: #092e20;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.url-examples, .view-examples, .template-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.example-block {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #44b78b;
}

.example-block h4 {
    color: #092e20;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.models-content {
    margin: 2rem 0;
}

.model-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.lab-content {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.lab-objectives {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.lab-objectives h3 {
    color: #5b21b6;
    margin-bottom: 1rem;
}

.lab-objectives ul {
    color: #6b21a8;
}

.lab-project {
    margin-top: 2rem;
}

.lab-project h3 {
    color: #092e20;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-features {
    margin: 2rem 0;
}

.feature-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #092e20;
}

.feature-item h4 {
    color: #092e20;
    margin-bottom: 1rem;
}

.feature-item ul {
    color: #6b7280;
    margin-left: 1rem;
}

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

.summary-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #092e20;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
}

.summary-card h3 {
    color: #092e20;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-card h3::before {
    content: "🚀";
    font-size: 1.2rem;
}

.summary-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .django-overview {
        padding: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .pattern-comparison {
        grid-template-columns: 1fr;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .command-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .url-examples, .view-examples, .template-examples {
        grid-template-columns: 1fr;
    }
    
    .model-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .django-overview {
        padding: 1.5rem;
    }
    
    .django-overview h3 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card i {
        font-size: 2rem;
    }
    
    .install-step {
        padding: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .code-example pre {
        padding: 1rem;
    }
    
    .code-example code {
        font-size: 0.8rem;
    }
    
    .command-card {
        padding: 1.5rem;
    }
    
    .apache-step {
        padding: 1.5rem;
    }
}

