/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.menu-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    font-size: 1rem;
}

h1 {
    font-size: 1.5rem;
}

.sidebar {
    width: 250px;
    background: #34495e;
    position: fixed;
    top: 0;
    left: -250px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 100;
    padding-top: 60px;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #2c3e50;
    transition: background 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background: #2c3e50;
}

main {
    padding: 1rem;
    margin-top: 60px;
}

.lesson {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}

.lesson.active {
    display: block;
}

.lesson h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.carousel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.slides {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.controls {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #ecf0f1;
}

.controls button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.controls button:hover {
    background: #2980b9;
}

.dots {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #3498db;
}

/* Estilos para la imagen de portada */
.cover-image-container {
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}

.cover-link {
    display: inline-block;
    border: 2px solid #3498db;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-link:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cover-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.cover-caption {
    margin-top: 1rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .slides {
        height: 300px;
    }
    
    .controls button {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .cover-image {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .controls button {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .cover-caption {
        font-size: 0.9rem;
    }
}
/* ===== PIE DE PÁGINA ===== */
footer {
  background-color: white;
  color: #2c3e50;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  border-top: 1px solid var(--medium-gray);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}