.tema-item {
    margin-bottom: 0;
    padding: 1.25rem 1.4rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(55, 95, 122, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    animation: fadeInUp 0.45s ease both;
}

.tema-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(38, 186, 165, 0.4);
}

.tema-nombre {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(55, 95, 122);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.tema-nombre::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    left: 0;
    bottom: -5px;
    background-color: rgb(38, 186, 165);
    transition: width 0.4s ease;
    border-radius: 5px;
}

.tema-nombre:hover {
    color: rgb(38, 186, 165);
    transform: translateX(4px);
}

.tema-nombre:hover::after {
    width: 100%;
}

.tema-descripcion {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 0.25rem;
    margin-left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tema-item:hover .tema-descripcion {
    opacity: 1;
    transform: translateX(4px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .tema-item {
        padding: 1.1rem 1.2rem;
    }

    .tema-nombre {
        font-size: 1.1rem;
    }

    .tema-descripcion {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tema-item {
        padding: 1rem;
    }

    .tema-nombre {
        font-size: 1rem;
    }
}
