
/* 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 10 - Lenguaje Python */

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

.python-overview {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(55, 118, 171, 0.3);
    margin-bottom: 2rem;
}

.python-overview h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

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

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

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

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

.rule-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3776ab;
    transition: transform 0.3s ease;
}

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

.rule-card h4 {
    color: #3776ab;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-card h4::before {
    content: "🐍";
    font-size: 1.5rem;
}

.rule-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 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;
}

.data-types-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: #3776ab;
    color: #fff;
    border-bottom-color: #ffd43b;
}

.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: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

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

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

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

.structure-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #3776ab;
}

.structure-card:hover {
    transform: translateY(-5px);
}

.structure-card h3 {
    color: #3776ab;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.structure-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.control-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

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

.control-section h3 {
    color: #10b981;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

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

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

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

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

.oop-section h4 {
    color: #8b5cf6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.exceptions-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

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

.exception-section h3, .modules-section h3 {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.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: #3776ab;
    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 #3776ab;
}

.feature-item h4 {
    color: #3776ab;
    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 #3776ab;
    transition: transform 0.3s ease;
}

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

.summary-card h3 {
    color: #3776ab;
    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) {
    .python-overview {
        padding: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .variable-examples, .string-examples, .number-examples {
        grid-template-columns: 1fr;
    }
    
    .structure-grid {
        grid-template-columns: 1fr;
    }
    
    .control-sections {
        grid-template-columns: 1fr;
    }
    
    .function-examples {
        grid-template-columns: 1fr;
    }
    
    .oop-sections {
        grid-template-columns: 1fr;
    }
    
    .exceptions-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .python-overview {
        padding: 1.5rem;
    }
    
    .python-overview h3 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card i {
        font-size: 2rem;
    }
    
    .rule-card {
        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;
    }
    
    .structure-card {
        padding: 1.5rem;
    }
    
    .control-section {
        padding: 1.5rem;
    }
    
    .oop-section {
        padding: 1.5rem;
    }
}

