/* Importar fuente */
@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #0c0c0c 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Botón de retroceso */
.back-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Encabezado principal */
.header {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Metal Mania', cursive;
    color: #ff0000;
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    transform: scaleX(1.4);
    -webkit-text-stroke: 0.01px white;
}

.header-subtitle {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    padding-bottom: 10px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Secciones principales */
.section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fad5 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.section h2 {
    color: #c0392b;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(192, 57, 43, 0.3);
}

/* Botones de temas */
.topics-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.topic-button {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.topic-button:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Descripción de temas */
.topics-description {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Texto de reflexión */
.reflection-text {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

.reflection-question {
    color: #000000;
    font-size: 1rem;
    margin-bottom: 8px;
    margin-top: 15px;
}

.reflection-answer {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 15px;
}

/* Contenedor de ejercicios */
.exercises-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

/* Tarjetas de ejercicio */
.exercise-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fad5 100%);
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid #c0392b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.exercise-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.15);
    border-left-color: #e74c3c;
}

.exercise-card h3 {
    color: #c0392b;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Contenedor de código */
.code-container {
    background: linear-gradient(135deg, #333 0%, #636262 100%);
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.code-container::before {
    content: attr(data-lang);
    position: absolute;
    top: 5px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Contenedor de demo */
.demo-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fad5 100%);
    border: 2px dashed #c0392b;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-container:hover {
    border-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.15);
}

/* Formulario de demo */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.demo-form input, 
.demo-form select, 
.demo-form textarea {
    padding: 10px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-form input:focus, 
.demo-form select:focus, 
.demo-form textarea:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
    outline: none;
}

.demo-form button {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.demo-form button:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Mostrar resultado */
.result-display {
    background: linear-gradient(135deg, #d5f4e6 0%, #f8f9fad5 100%);
    border: 1px solid #27ae60;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    min-height: 50px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.1);
}

/* Sección de reflexión */
.reflection {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fad5 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.reflection h2 {
    color: #c0392b;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(192, 57, 43, 0.3);
}

/* Demo de Django */
.django-demo {
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fad5 100%);
    color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border: 1px solid #c0392b;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.django-demo:hover {
    border-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.15);
}

/* Sección de demo */
.demo-section {
    margin-bottom: 15px;
    padding: 15px;
    border-left: 4px solid #c0392b;
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fad5 100%);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.1);
    transition: border-left-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-section:hover {
    border-left-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

/* Título de demo */
.demo-title {
    font-size: 1.2rem;
    color: #c0392b;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Patrón de URL */
.url-pattern {
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    padding: 8px;
    border-radius: 5px;
    font-family: monospace;
    margin: 5px 0;
    border: 1px solid #bdc3c7;
}

/* Campo de modelo */
.model-field {
    background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
    padding: 8px;
    border-radius: 5px;
    margin: 5px 0;
    border-left: 3px solid #f39c12;
    border: 1px solid #f7dc6f;
}

/* Tags */
.tag {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 3px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.tag:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.tag.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.tag.active:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .exercises-container {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 20px;
    }
}


/* Header estilo Iron Maiden */
.iron-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-bottom: 3px solid #ff0000;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.iron-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
    min-height: 60px;
}

.nav-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.iron-logo {
    font-family: 'Metal Mania', cursive;
    font-size: 2.5rem;
    color: #ff0000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        2px 2px 4px rgba(0,0,0,0.8);
    -webkit-text-stroke: 0.1px #ffffff;
    transform: scaleX(1.2);
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    margin: 0 20px;
    pointer-events: none; /* Agregar esta línea */
}

.iron-loco {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;

    transform: scaleX(1.2);
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    margin: 0 20px;
    pointer-events: none; /* Agregar esta línea */
}
.nav-arrow {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.5),
        0 2px 8px rgba(0,0,0,0.3);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #ff0000;
    border-color: #ff0000;
    transform: scale(1.1);
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 4px 15px rgba(0,0,0,0.4);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* Contenedor central para logo y navegación */
.nav-center {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

/* Navegación izquierda y derecha */
.nav-left,
.nav-right {
    display: flex;
    gap: 20px;
}

/* Estilos para los enlaces de navegación */
.nav-left a,
.nav-right a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.nav-left a::before,
.nav-right a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-left a:hover::before,
.nav-right a:hover::before {
    left: 100%;
}

.nav-left a:hover,
.nav-right a:hover {
    color: #ff0000;
    border-color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-2px);
}

.iron-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.iron-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.2), transparent);
    transition: left 0.5s ease;
}

.iron-nav-links a:hover::before {
    left: 100%;
}

.iron-nav-links a:hover {
    color: #ff0000;
    border-color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Ajuste del body para header fijo */
body {
    padding-top: 120px;
}

/* Responsive para el header */
@media (max-width: 768px) {
    .iron-nav {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .iron-logo {
        font-size: 2rem;
        order: 2;
        margin: 10px 0;
    }
    
    .nav-section {
        order: 1;
        gap: 30px;
    }
    
    .nav-section:first-child,
    .nav-section:last-child {
        display: flex;
        justify-content: center;
    }
    
    .iron-nav-links {
        position: static;
        order: 3;
        gap: 20px;
        padding: 15px 0;
        flex-wrap: wrap;
    }
    
    .iron-nav-links a {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    body {
        padding-top: 160px;
    }
}

@media (max-width: 480px) {
    .iron-logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .iron-nav-links {
        gap: 15px;
    }
    
    .iron-nav-links a {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    body {
        padding-top: 180px;
    }
}

/* Centrado mejorado para pantallas grandes */
@media (min-width: 1200px) {
    .iron-nav {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .iron-nav-links {
        gap: 50px;
    }
    
    .iron-nav-links a {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

/* Efecto de glow en hover para todo el header */
.iron-header:hover {
    box-shadow: 
        0 2px 10px rgba(255, 0, 0, 0.5),
        0 0 30px rgba(255, 0, 0, 0.2);
}

/* Animación sutil para el logo */
@keyframes glow {
    0%, 100% { 
        filter: brightness(1); 
    }
    50% { 
        filter: brightness(1.2); 
    }
}

.iron-logo {
    animation: glow 3s ease-in-out infinite;
}
/* Ajustar el padding del body para dar más espacio */
body {
    padding-top: 100px;
}

/* Posicionar correctamente la navegación de semanas */
.week-navigation {
    display: flex;
    justify-content: space-between; /* Cambiar de gap a space-between */
    margin: 20px 0;
    padding: 0 20px;
}

/* Mejorar el diseño de los botones de semana */
.week-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Ajustar el header para que sea más compacto */
.iron-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-bottom: 3px solid #ff0000;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

.iron-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    position: relative;
    min-height: 50px;
}
/* Contenedor principal del chat */
#chat-container {
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #fff;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Mensajes del chat */
.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    line-height: 1.4;
}

.bot-message {
    background-color: #f0f8ff;
    color: #333;
}

.user-message {
    background-color: #dff0d8;
    text-align: right;
    color: #000;
}

/* Contenedor del textarea + botón */
.input-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-direction: column;
}

#prompt {
    width: 100%;
    resize: vertical;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Botón enviar */
#send-btn {
    padding: 10px 20px;
    font-weight: bold;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#send-btn:hover {
    background-color: #0056b3;
}

/* Contenedor de todo el demo */
.demo-container {
    margin-top: 20px;
}
