body{
    margin: 0;
    padding-bottom: 50px;
    background-color: #0c0f0c;
    color: #d4efdf;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.pantalla-carga{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #050705;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: #2ecc71;
}

.oculto{
    display: none;
}

.spinner{
    width: 50px;
    height: 50px;
    border: 6px solid #142814;
    border-top: 6px solid #2ecc71;
    border-radius: 50%;
    animation: girar 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-principal{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111e14;
    padding: 12px 30px;
    border-bottom: 2px solid #1a3c20;
}

.logo-area{
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area i{
    color: #2ecc71;
    font-size: 22px;
}

.logo-area h1{
    margin: 0;
    font-size: 18px;
    letter-spacing: 1px;
    color: #2ecc71;
}

.stats-area{
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #a3e4d7;
    font-weight: bold;
}

.menu-superior{
    display: flex;
    justify-content: center;
    gap: 40px;
    background-color: #0e1710;
    padding: 10px;
    border-bottom: 1px solid #142814;
    font-size: 13px;
    color: #8fa996;
}

.menu-superior i{
    color: #2ecc71;
}

.hero{
    text-align: center;
    padding: 30px 20px;
    background-color: #0c0f0c;
}

.sub-hero{
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #58d68d;
    font-weight: bold;
}

.hero h2{
    margin: 8px 0;
    font-size: 28px;
    color: #2ecc71;
}

.hero p{
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #8fa996;
}

.filtros-container{
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-filtro{
    background-color: #142814;
    color: #a3e4d7;
    border: 1px solid #1e3f20;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}

.btn-filtro:hover{
    background-color: #1e3f20;
}

.btn-filtro.activo{
    background-color: #2ecc71;
    color: #0c0f0c;
}

.seccion-titulo{
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px 15px 20px;
}

.seccion-titulo h3{
    margin: 0;
    font-size: 18px;
    color: #2ecc71;
}

.seccion-titulo p{
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #58d68d;
}

.principal{
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

.listado{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tarjeta{
    background-color: #111913;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1a3520;
    display: flex;
    flex-direction: column;
    transition: border 0.2s ease, transform 0.2s ease;
}

.tarjeta:hover{
    border: 2px solid #8e44ad;
    transform: translateY(-3px);
}

.completada{
    border: 2px solid #27ae60;
    background-color: #122417;
}

.banner{
    height: 100px;
    background-color: #16261a;
    position: relative;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
}

.banner i.icono-fondo{
    position: absolute;
    right: 15px;
    bottom: 8px;
    font-size: 50px;
    opacity: 0.25;
    color: #2ecc71;
}

.banner-Algoritmos{ background: linear-gradient(135deg, #1b4d29, #0e1710); }
.banner-Web{ background: linear-gradient(135deg, #234e52, #0e1710); }
.banner-Datos{ background: linear-gradient(135deg, #195138, #0e1710); }
.banner-Ciberseguridad{ background: linear-gradient(135deg, #511919, #0e1710); }

.tag-cat{
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #a3e4d7;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-pts{
    font-size: 12px;
    background-color: #142814;
    color: #f1c40f;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #1e3f20;
}

.contenido{
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cabecera-tarjeta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cabecera-tarjeta h4{
    margin: 0;
    font-size: 16px;
    color: #e8f8f5;
}

.badge{
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.Facil{ background-color: #d4efdf; color: #196f3d; }
.Medio{ background-color: #fcf3cf; color: #b7950b; }
.Dificil{ background-color: #fadbd8; color: #b03a2e; }

.descripcion{
    font-size: 12px;
    color: #8fa996;
    margin-bottom: 15px;
    line-height: 1.4;
}

.chips{
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    margin-top: auto;
}

.chip{
    background-color: #16261a;
    color: #58d68d;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
}

.btns{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-resolver{
    background-color: #1e3f20;
    color: #2ecc71;
    border: 1px solid #2ecc71;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.btn-resolver:hover{
    background-color: #2ecc71;
    color: #0c0f0c;
}

.btn-resuelto{
    background-color: #27ae60;
    color: white;
    border: none;
    animation: pulso 0.3s ease;
}

@keyframes pulso {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-favorito{
    background-color: #142814;
    color: #8fa996;
    border: 1px solid #1e3f20;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}

.btn-favorito:hover{
    background-color: #1e3f20;
    color: #a3e4d7;
}

.fav-activo{
    color: #f1c40f;
    border-color: #f1c40f;
    font-weight: bold;
}

@media (max-width: 750px) {
    .listado{
        grid-template-columns: 1fr;
    }
}