:root {
    --color-principal: #1e5631;      
    --color-texto: #333;
    --color-fondo: #f4f7f6;
    --color-blanco: #ffffff;
    --borde-radio: 12px;
    --fuente-principal: 'Poppins', sans-serif;
    
    --color-dwes: #777BB4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
    HEADER
   ========================================= */
.cabecera-principal {
    background: var(--color-principal);
    color: white;
    padding: 0.6rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contenido-cabecera {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.identidad {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-iniciales {
    background-color: #ffffff;
    color: var(--color-principal);
    width: 42px;
    height: 42px;
    border-radius: 12px 0 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.5px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.identidad:hover .logo-iniciales {
    border-radius: 0 12px 0 12px;
    transform: scale(1.1);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.cabecera-principal h1 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.curso-badge {
    background: white;
    color: var(--color-principal);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================================
    ESTRUCTURA PRINCIPAL (Main)
   ========================================= */
.contenedor-principal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    width: 100%;
    flex: 1;
}

.titulo-pagina {
    text-align: center;
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
    GRID Y TARJETAS PRINCIPALES
   ========================================= */
.rejilla-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.tarjeta {
    background: var(--color-blanco);
    border-radius: var(--borde-radio);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid transparent;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--color-principal);
}

.tarjeta-imagen {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
}

/* Colores de Fondo */
.fondo-morado { background-color: #777BB4; }
.fondo-amarillo { background-color: #F7DF1E; color: #333; }
.fondo-naranja { background-color: #E34F26; }
.fondo-azul { background-color: #007ACC; }
.fondo-oscuro { background-color: #2C3E50; }
.fondo-verde { background-color: #27ae60; }
.fondo-hoja { background-color: #4CAF50; }
.fondo-digital { background-color: #00BCD4; }

.tarjeta-contenido {
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.siglas {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-principal);
    margin-bottom: 5px;
}

.nombre {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
}

/* =========================================
    FOOTER
   ========================================= */
.pie-pagina {
    background-color: #222;
    color: #bbb;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    margin-top: auto;
    border-top: 4px solid var(--color-principal);
}

.contenido-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.texto-legal p { margin: 2px 0; }
.autor { color: #888; font-style: italic; }

.iconos-footer a {
    color: white;
    font-size: 1.2rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.iconos-footer a:hover { color: var(--color-principal); }

@media (max-width: 768px) {
    .contenido-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .titulo-pagina { font-size: 1.1rem; }
}

.tarjeta-tema {
    cursor: default !important;      
    transform: none !important;      
    transition: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0 !important; 
}

.tarjeta-tema:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    border-color: #f0f0f0 !important;
}

.nombre-tema {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.lista-ejercicios {
    list-style: none !important;
    padding: 0;
    margin: 0;
    width: 100%;
}

.lista-ejercicios li {
    margin: 0;
    padding: 0;
    border: none;
}


.lista-ejercicios a {
    display: flex;
    align-items: center;
    gap: 12px;
    
    background-color: #f8fafc;  
    border: 1px solid #e2e8f0;  
    border-radius: 8px;         
    padding: 10px 14px;         
    margin-bottom: 8px;        
    width: 100%;
    
    text-decoration: none !important;
    color: #475569;            
    font-size: 0.9rem;
    font-weight: 500;
    
    transition: all 0.2s ease;
    cursor: pointer;           
}

.lista-ejercicios a:hover {
    background-color: #ffffff;  
    border-color: #777BB4;     
    color: #777BB4;            
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(119, 123, 180, 0.15);
}

.lista-ejercicios i {
    color: #777BB4;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.lista-ejercicios a:hover i {
    transform: scale(1.1);
}

.sin-enlace {
    display: block;
    color: #94a3b8;
    padding: 8px;
    font-size: 0.85rem;
    font-style: italic;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}

.contenedor {

}
