
/* 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 12 - Django Avanzado */

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

.forms-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.forms-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="40" fill="rgba(255,255,255,0.1)">📝</text></svg>') repeat;
    animation: float 15s linear infinite;
}

.forms-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;
}

.forms-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;
}

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

.form-type-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);
}

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

.form-type-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

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

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

.forms-examples {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

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

.example-section h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-section h4::before {
    content: "📝";
    font-size: 1.5rem;
}

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

.admin-overview {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.admin-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="40" fill="rgba(255,255,255,0.1)">🛡️</text></svg>') repeat;
    animation: float 18s linear infinite;
}

.admin-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;
}

.admin-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;
}

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

.admin-feature {
    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);
}

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

.admin-feature i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

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

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

.admin-examples {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.admin-examples .example-section {
    border-left-color: #ff6b6b;
}

.admin-examples .example-section h4::before {
    content: "🛡️";
}

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

.middleware-explanation {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.middleware-explanation h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.middleware-flow {
    margin-top: 2rem;
}

.middleware-flow h4 {
    color: #4a5568;
    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: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #4299e1;
}

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

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

.flow-step h5 {
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 1.1rem;
}

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

.flow-arrow {
    font-size: 1.5rem;
    color: #4299e1;
    font-weight: bold;
}

.middleware-examples {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.middleware-examples .example-section {
    border-left-color: #4299e1;
}

.middleware-examples .example-section h4::before {
    content: "⚙️";
}

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

.jwt-overview {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(72, 187, 120, 0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.jwt-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="40" fill="rgba(255,255,255,0.1)">🔐</text></svg>') repeat;
    animation: float 20s linear infinite;
}

.jwt-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;
}

.jwt-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;
}

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

.benefit-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);
}

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

.benefit-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

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

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

.jwt-implementation {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.jwt-implementation .example-section {
    border-left-color: #48bb78;
}

.jwt-implementation .example-section h4::before {
    content: "🔐";
}

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

.project-showcase {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(45, 55, 72, 0.3);
    text-align: center;
}

.project-showcase h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #fff;
}

.project-showcase p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

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

.project-features .feature-item:hover {
    transform: translateY(-5px);
}

.project-features .feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4299e1;
}

.project-features .feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-features .feature-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.github-link {
    margin-top: 2rem;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4299e1;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.github-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
}

.github-btn i {
    font-size: 1.2rem;
}

.github-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.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;
}

.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 #667eea;
    transition: transform 0.3s ease;
}

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

.summary-card h3 {
    color: #667eea;
    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;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .forms-overview, .admin-overview, .jwt-overview, .project-showcase {
        padding: 2rem;
    }
    
    .form-type-grid, .admin-feature-grid, .benefit-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .project-features .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .forms-overview h3, .admin-overview h3, .jwt-overview h3 {
        font-size: 1.5rem;
    }
    
    .form-type-card, .admin-feature, .benefit-card {
        padding: 1rem;
    }
    
    .form-type-card i, .admin-feature i, .benefit-card i {
        font-size: 2rem;
    }
    
    .example-section {
        padding: 1.5rem;
    }
    
    .code-example pre {
        padding: 1rem;
    }
    
    .code-example code {
        font-size: 0.8rem;
    }
    
    .github-btn {
        padding: 0.8rem 1.5rem;
    }
}

