/* Estilos específicos para Semana 15 - Introducción a Flask */

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

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

.flask-overview::before {
    content: "🧪";
    position: absolute;
    top: -50%;
    right: -50%;
    font-size: 150px;
    opacity: 0.1;
    animation: float 20s linear infinite;
}

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

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

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

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

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

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

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

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

.flask-example {
    margin-top: 2rem;
}

.flask-example h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.routing-templates-content {
    margin: 2rem 0;
}

.routing-section, .templates-section {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-top: 5px solid #4299e1;
}

.templates-section {
    border-top-color: #ed8936;
}

.routing-section h3, .templates-section h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.routing-section p, .templates-section p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.routing-examples, .templates-examples {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.example-block {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

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

.databases-deployment-content {
    margin: 2rem 0;
}

.databases-section, .deployment-section {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-top: 5px solid #48bb78;
}

.deployment-section {
    border-top-color: #9f7aea;
}

.databases-section h3, .deployment-section h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.databases-section p, .deployment-section p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.database-examples, .deployment-examples {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

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

.deployment-flow h4 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #2d3748;
}

.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 #9f7aea;
}

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

.step-number {
    background: #9f7aea;
    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: #9f7aea;
    font-weight: bold;
}

.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) {
    .flask-overview, .routing-section, .templates-section, .databases-section, .deployment-section, .project-showcase {
        padding: 2rem;
    }
    
    .flask-features .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .routing-examples, .templates-examples, .database-examples, .deployment-examples {
        grid-template-columns: 1fr;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .project-features .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .flask-overview h3 {
        font-size: 1.5rem;
    }
    
    .flask-features .feature-card {
        padding: 1rem;
    }
    
    .flask-features .feature-card i {
        font-size: 2rem;
    }
    
    .example-block {
        padding: 1.5rem;
    }
    
    .code-example pre {
        padding: 1rem;
    }
    
    .code-example code {
        font-size: 0.8rem;
    }
    
    .github-btn {
        padding: 0.8rem 1.5rem;
    }
}


/* 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;
}

/* 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);
}